MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
I2C Callback Function

Overview

This section describes callback function of the driver. The callback function is called by the driver to notify software interrupt. All interrupt flags are cleared automatically by the driver.

Typedefs

typedef void(* I2C_CALLBACK) (I2C_CALLBACK_SRC module, I2C_CALLBACK_TYPE type)
 I2C_CALLBACK function declaration.
 

Enumerations

enum  I2C_CALLBACK_SRC { I2C0_CALLBACK, I2C1_CALLBACK }
 I2C_CALLBACK type declaration. More...
 
enum  I2C_CALLBACK_TYPE { I2C_MTX_CALLBACK, I2C_MRX_CALLBACK, I2C_STX_CALLBACK, I2C_SRX_CALLBACK, I2C_SIAAS_RX_CALLBACK, I2C_SIAAS_TX_CALLBACK }
 I2C_CALLBACK type declaration. More...
 

Enumeration Type Documentation

Enumerator
I2C0_CALLBACK 

I2C0 interrupt.

I2C1_CALLBACK 

I2C1 interrupt.

Enumerator
I2C_MTX_CALLBACK 

Master (MST=1), data transmitted (TX=1)

I2C_MRX_CALLBACK 

Master (MST=1), data received (TX=0)

I2C_STX_CALLBACK 

Slave (MST=0), data transmitted (TX=1)

I2C_SRX_CALLBACK 

Slave (MST=0), data received (TX=0)

I2C_SIAAS_RX_CALLBACK 

Addressed as a slave (IAAS), master writes (SRW=0)

I2C_SIAAS_TX_CALLBACK 

Addressed as a slave (IAAS), master reads (SRW=1)