1.39.18.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.