Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Two Wire-interface(TWI)

This is the common API for TWIs.

Additional features are available in the documentation of the specific modules.

Platform Dependencies

The twi API is partially chip- or platform-specific. While all platforms provide mostly the same functionality, there are some variations around how different bus types and clock tree structures are handled.

The following functions are available on all platforms, but there may be variations in the function signature (i.e. parameters) and behaviour. These functions are typically called by platform-specific parts of drivers, and applications that aren't intended to be portable:

Additional features are available in the documentation of the specific modules.

See Quickstart guide for Common service TWI.

Platform Dependencies

The TWI API is partially chip- or platform-specific. While all platforms provide mostly the same functionality, there are some variations around how different bus types and clock tree structures are handled.

The following functions are available on all platforms, but there may be variations in the function signature (i.e. parameters) and behaviour. These functions are typically called by platform-specific parts of drivers, and applications that aren't intended to be portable:

Modules

 Quick Start Guide(s)
 In this section you can find a list of all Quick Start guides related to the Two Wire-interface(TWI).
 

Typedefs

typedef Twi * twi_master_t
 This type can be used independently to refer to TWI master module for the architecture used. More...
 
typedef Twi * twi_slave_t
 This type can be used independently to refer to TWI slave module for the architecture used. More...
 

This type can be used independently to refer to TWI master module for the architecture used.

It refers to the correct type definition for the architecture, ie. TWI_t* for XMEGA or avr32_twim_t* for UC3

This type can be used independently to refer to TWI slave module for the architecture used.

It refers to the correct type definition for the architecture, ie. TWI_t* for XMEGA or avr32_twi_t* for UC3