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

twi pca10040e example - sdk15.0 SES

Is there at least one twi example available that uses pca10040e? Not seeing one in sdk15.0 for SES.

I can get the code working for pca10040 on s132 but not for nrf52810 s112.

Error of unknown type name 'NRF_TWI_Type'

in definition of macro 'offsetof'

Looking for a sanity check by using a working twi 40e example.

Parents Reply
  • Hi Jakub,

    I am also trying to use TWI with nrf52810. I downloaded and ran the code you posted below and it compiled fine (thank you for posting that by the way), however I noticed it uses TWI functions such as nrf_drv_twi_init() instead of the TWIM nrfx_twim_init(). Should I be using the TWIM peripheral as you said above instead? What are the differences/advantages? I've been having quite a hard time determining which TWI driver(s) to use/which files to include, any advice would be greatly appreciated.

    Thank you,

    Charlie

Children
No Data
Related