I2C API I2C Mode

The i2c_get_status() function returns the current status of the I2C engine. The return codes can be defined as an enum structure:

typedef enum I2C_mode {-->
 IDLE,    -->
 MASTER_SEND,-->
 MASTER_RECEIVE,-->
 SLAVE_SEND,-->
 SLAVE_RECEIVE-->
 } I2C_MODE_T ;-->

-->