Hi,
Is it possible to use variable Read/Write twi data length?
I'm using:
nrf_twi_mngr_transfer_t const i2c_write_raw_transfer[1] =
{
//NRF_TWI_MNGR_WRITE(I2C_HUMIDITY_SENSOR_ADDR, default_config, sizeof(default_config), 0)
NRF_TWI_MNGR_WRITE(I2C_EXT_RTC_ADDR, i2c_raw_data, 3, 0)
};
err_code = nrf_twi_mngr_perform(&m_nrf_twi_mngr, &g_i2c_data->i2c_nrf_config, i2c_write_raw_transfer, 1, NULL);
In this case, does i2c_write_raw_transfer - has to be const? if yes, is there any other way to use twi manager and read write different data size on a single transaction?
Regards,
Lior.