How do you do i2c multiple byte read and multiple byte write using nrf_drv_twi ? Is it possible to help me with some code ? I am using s130 sdk 11.
How do you do i2c multiple byte read and multiple byte write using nrf_drv_twi ? Is it possible to help me with some code ? I am using s130 sdk 11.
Hi, I also have similar confusion about Multi byte I2C write. It seems that TWI_HANDLER is triggered once only means only 1 byte (register address) is transferred and the actual register value which is the 2nd byte is not transferred.
Your help will be appreciated. Thanks
If you are using the TWI master driver (nrf_drv_twi), the available events that is passed to the TWI event handler is described here. NRF_DRV_TWI_EVT_DONE
event will be passed to the event handler when the entire transfer is completed, not for each byte transmitted/received. The legacy TWI (non-EasyDMA) peripheral can generate events for each byte transmitted/received (EVENTS_TXDSENT/EVENTS_RXDREADY), but this is not supported in the driver.
If you are using the TWI master driver (nrf_drv_twi), the available events that is passed to the TWI event handler is described here. NRF_DRV_TWI_EVT_DONE
event will be passed to the event handler when the entire transfer is completed, not for each byte transmitted/received. The legacy TWI (non-EasyDMA) peripheral can generate events for each byte transmitted/received (EVENTS_TXDSENT/EVENTS_RXDREADY), but this is not supported in the driver.