I wasn't able to find sample code showing how to use the nrfx sdk to perform TWI slave.
Can you point me to some examples ?
I wasn't able to find sample code showing how to use the nrfx sdk to perform TWI slave.
Can you point me to some examples ?
Hi,
Do you mean nRF5 SDK? nrfx is the separate driver package, which is used both in nRF5 SDK and nRF Connect SDK (NCS).
TWI Slave example is available in the SDK. The example is using the legacy driver APIs, but if you want to use nrfx APIs you can follow the migration guide.
Best regards,
Jørgen.
Thanks, looking at both the SDK and the migration guide, I start to see how to use TWI slave, still one question remains, how can I emit a NACK, for example, in case of a write to a read-only i2c register, or requesting a register that doesn't exists
Thanks, looking at both the SDK and the migration guide, I start to see how to use TWI slave, still one question remains, how can I emit a NACK, for example, in case of a write to a read-only i2c register, or requesting a register that doesn't exists