The I2C_1 interrupt function.
56 if(event==ARM_I2C_EVENT_TRANSFER_DONE)
61 if( event & ARM_I2C_EVENT_TRANSFER_INCOMPLETE)
65 if(event==ARM_I2C_EVENT_SLAVE_TRANSMIT)
70 if(event==ARM_I2C_EVENT_SLAVE_RECEIVE)
75 if (event & ARM_I2C_EVENT_ADDRESS_NACK){
78 if (event & ARM_I2C_EVENT_ARBITRATION_LOST){
81 if( event & ARM_I2C_EVENT_BUS_ERROR){
84 if( event & ARM_I2C_EVENT_BUS_CLEAR){
volatile uint32_t Error_bad_operation
exploited to mark the errors
uint32_t evento_I2C
This is the variable which resembles the flags from the communication.
void I2C_1_SignalEvent_t(uint32_t event)
The I2C_1 interrupt function.