CMSIS-Driver  
Peripheral Interface for Middleware and Application Code
 
Loading...
Searching...
No Matches
I2C Events

The I2C driver generates call back events that are notified via the function ARM_I2C_SignalEvent. More...

Macros

#define ARM_I2C_EVENT_TRANSFER_DONE   (1UL << 0)
 Master/Slave Transmit/Receive finished.
 
#define ARM_I2C_EVENT_TRANSFER_INCOMPLETE   (1UL << 1)
 Master/Slave Transmit/Receive incomplete transfer.
 
#define ARM_I2C_EVENT_SLAVE_TRANSMIT   (1UL << 2)
 Addressed as Slave Transmitter but transmit operation is not set.
 
#define ARM_I2C_EVENT_SLAVE_RECEIVE   (1UL << 3)
 Addressed as Slave Receiver but receive operation is not set.
 
#define ARM_I2C_EVENT_ADDRESS_NACK   (1UL << 4)
 Address not acknowledged from Slave.
 
#define ARM_I2C_EVENT_GENERAL_CALL   (1UL << 5)
 Slave addressed with general call address.
 
#define ARM_I2C_EVENT_ARBITRATION_LOST   (1UL << 6)
 Master lost arbitration.
 
#define ARM_I2C_EVENT_BUS_ERROR   (1UL << 7)
 Bus error detected (START/STOP at illegal position)
 
#define ARM_I2C_EVENT_BUS_CLEAR   (1UL << 8)
 Bus clear finished.
 

Description

The I2C driver generates call back events that are notified via the function ARM_I2C_SignalEvent.

This section provides the event values for the ARM_I2C_SignalEvent callback function.

The following call back notification events are generated:

Macro Definition Documentation

◆ ARM_I2C_EVENT_TRANSFER_DONE

#define ARM_I2C_EVENT_TRANSFER_DONE   (1UL << 0)

Master/Slave Transmit/Receive finished.

◆ ARM_I2C_EVENT_TRANSFER_INCOMPLETE

#define ARM_I2C_EVENT_TRANSFER_INCOMPLETE   (1UL << 1)

Master/Slave Transmit/Receive incomplete transfer.

◆ ARM_I2C_EVENT_SLAVE_TRANSMIT

#define ARM_I2C_EVENT_SLAVE_TRANSMIT   (1UL << 2)

Addressed as Slave Transmitter but transmit operation is not set.

◆ ARM_I2C_EVENT_SLAVE_RECEIVE

#define ARM_I2C_EVENT_SLAVE_RECEIVE   (1UL << 3)

Addressed as Slave Receiver but receive operation is not set.

◆ ARM_I2C_EVENT_ADDRESS_NACK

#define ARM_I2C_EVENT_ADDRESS_NACK   (1UL << 4)

Address not acknowledged from Slave.

◆ ARM_I2C_EVENT_GENERAL_CALL

#define ARM_I2C_EVENT_GENERAL_CALL   (1UL << 5)

Slave addressed with general call address.

◆ ARM_I2C_EVENT_ARBITRATION_LOST

#define ARM_I2C_EVENT_ARBITRATION_LOST   (1UL << 6)

Master lost arbitration.

◆ ARM_I2C_EVENT_BUS_ERROR

#define ARM_I2C_EVENT_BUS_ERROR   (1UL << 7)

Bus error detected (START/STOP at illegal position)

◆ ARM_I2C_EVENT_BUS_CLEAR

#define ARM_I2C_EVENT_BUS_CLEAR   (1UL << 8)

Bus clear finished.