1.7.23.80 SERCOM_I2C_SLAVE_COMMAND Enum

C

/* I2C slave mode */

typedef enum
{
    /* Send ACK succeeded by reception of next byte */
    SERCOM_I2C_SLAVE_COMMAND_SEND_ACK = 0,
    
    /* Send NAK succeeded by reception of next byte */
    SERCOM_I2C_SLAVE_COMMAND_SEND_NAK,
    
    /* Execute a byte read operation followed by ACK/NACK reception */
    SERCOM_I2C_SLAVE_COMMAND_RECEIVE_ACK_NAK,
    
    /* Wait for any start (S/Sr) condition */
    SERCOM_I2C_SLAVE_COMMAND_WAIT_FOR_START,
}SERCOM_I2C_SLAVE_COMMAND;

Summary

Defines the enum for the I2C slave commands

Description

Defines the enum for the I2C slave commands. The SERCOMx_I2C_CommandSet() function takes the command of this type as the argument.

Remarks

None.