Hi everyone,
I want to read Control() subcommads from BQ27421-G1. According to the Technical reference section 4.1, "Issuing a Control() command requires a subsequent 2-byte subcommand. But I do not understand how to to implemented in terms of software..
This is the function I'm using for standard commands
int8_t Acc_i2c_Read(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data, uint16_t len) { int8_t rslt = 0; rslt = nrf_drv_twi_tx(&m_twi, dev_id, ®_addr, 1, false); APP_ERROR_CHECK(rslt); if (rslt == 0) { rslt = nrf_drv_twi_rx(&m_twi, dev_id, reg_data, len); } return rslt; }
How could I modified this function in order to read Control() subcommands?