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

10 bit data i2C

Hi all. 

I am using the twi_sensor example of the sdk12.3 in a NRF51822

Taking a look on the tx function: 

    err_code = nrf_drv_twi_tx(&m_twi, MXC400_ADDR, reg, sizeof(reg), false);

I see that you can only send group of bytes... (reg) .. 

But some devices like some screens with the ssd1306 driver has this structure: 




As you can see after the ACK there are 2 bits and then the 8 bit command... 

How can i deal with this with the function shared before? 


Thank you so much in advance. 

Best regards. 


Parents Reply Children
No Data
Related