nRF51 SDK - S310 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
TWI

Software/Hardware controlled TWI Master driver.

Features supported
  • Repeated start
  • No multi-master
  • Only 7-bit addressing
  • Supports clock stretching (with optional SMBus style slave timeout using software driver)
  • Tries to handle slaves stuck in the middle of transfer
Documentation specific to HW controlled TWI master driver.

Code snippet below illustrates the write sequence of the HW controlled TWI master driver.

Code snippet below illustrates the read sequence of the HW controlled TWI master driver.

Documentation specific to SW controlled TWI master driver.

Code snippet below illustrates the write sequence of the SW controlled TWI master driver.

Code snippet below illustrates the read sequence of the SW controlled TWI master driver.