SDK16, 52810, nrf_drv_twi_tx,
for the 4th parameter, no_stop, should set to TRUE or FALSE, what are the differences exactly? I am really confused on this, because on 51, I set it to false, but in 52, it seems it should be set to true?
Thanks
SDK16, 52810, nrf_drv_twi_tx,
for the 4th parameter, no_stop, should set to TRUE or FALSE, what are the differences exactly? I am really confused on this, because on 51, I set it to false, but in 52, it seems it should be set to true?
Thanks
Hello,
Have you seen the TWI API Reference for the function? It details the different options.
no_stop is used for repeated transfer, as specified in the TWI protocol.
Is there a particular reason for using the legacy layer? IF there is not, I recommend that you instead use the TWI Driver or TWIM driver(if you are using easyDMA).
Best regards,
Karl
got it, thanks. Well, from the code, I can see that nrf_drv_twi_tx will check the sdk_config.h and figure out which one should be use ( twi / twim) , and I think that's a better way during debug stage.
I would advise you to stick to using one driver for one and the same task - to ease future debugging -, but you are free to explore and utilize the API as you would like.
I am glad I could help!
Best regards,
Karl