This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWI interface slave address

Hi,

I need to interface a LED driver (PCA9632) using TWI. In the TWI APIs I can't see any way to pass the slave address to the TWI instance. Speaking about the nrf_drv_twi_init function, there is no field in the parameters structs that accepts a slave address. What's the right way to use the TWI interface ?

Thanks, Paolo.

Parents Reply
  • Sorry ... suppose following scenario. My I2C device has address 0xC4 (for example) and I need to write some bytes to the internal register of this device with address 0x02. As I understood I need to use the nrf_drv_twi_tx function twice ? First time to send the slave address and second time to addressing the internal register for sending data ? First time wihout data ? (p_data = NULL and length = 0) ?

    Thanks, Paolo

Children
No Data
Related