1.2.21.76 1.3.25.76 1.4.21.76 1.5.25.76 1.6.22.76 1.7.23.76 1.9.19.76 1.29.23.76 1.30.18.76 1.31.18.76 1.32.26.76 1.33.16.76 1.37.18.76 1.38.21.76 1.39.18.76 1.40.20.76 SERCOM_I2C_SLAVE_TRANSFER_EVENT Enum

C

/* I2C slave in interrupt mode */

typedef enum
{
    SERCOM_I2C_SLAVE_TRANSFER_EVENT_NONE = 0,
    
    /* Received I2C address matches with the slave's I2C address */
    SERCOM_I2C_SLAVE_TRANSFER_EVENT_ADDR_MATCH,
    
    /* Indicates that data sent by I2C Master is available */
    SERCOM_I2C_SLAVE_TRANSFER_EVENT_RX_READY,
    
    /* Indicates that I2C slave can respond to data read request from I2C Master */
    SERCOM_I2C_SLAVE_TRANSFER_EVENT_TX_READY,
    
    /* Stop bit received */
    SERCOM_I2C_SLAVE_TRANSFER_EVENT_STOP_BIT_RECEIVED,
    
    /* Indicates that an error is detected by the I2C slave */
    SERCOM_I2C_SLAVE_TRANSFER_EVENT_ERROR,
}SERCOM_I2C_SLAVE_TRANSFER_EVENT;

Summary

Defines the enum for the I2C slave transfer event.

Description

Defines the enum for the I2C slave transfer event. An event of this type is returned back in the callback by the SERCOM I2C slave PLIB to indicate the transfer event for which the callback has been called.

Remarks

All the event flags may not be available on SERCOM of the selected device. Refer the header file of the generated code for the event flags available on the device.