1.4.21.79 SERCOM_I2C_SLAVE_ERROR Enum

C

/* I2C slave mode */

/* Bus Error */
#define SERCOM_I2C_SLAVE_ERROR_BUSERR  SERCOM_I2CS_STATUS_BUSERR_Msk
/* Transmit Collision */
#define SERCOM_I2C_SLAVE_ERROR_COLL SERCOM_I2CS_STATUS_COLL_Msk
/* SCL Low Time-out */
#define SERCOM_I2C_SLAVE_ERROR_LOWTOUT SERCOM_I2CS_STATUS_LOWTOUT_Msk
/* Slave SCL Low Extend Time-Out */
#define SERCOM_I2C_SLAVE_ERROR_SEXTTOUT SERCOM_I2CS_STATUS_SEXTTOUT_Msk
/* Indicates that an error has occurred - Either of the SEXTTOUT, LOWTOUT, COLL, and BUSERR */
#define SERCOM_I2C_SLAVE_ERROR_ALL (SERCOM_I2C_SLAVE_ERROR_BUSERR | SERCOM_I2C_SLAVE_ERROR_COLL ${I2CS_LOWTOUT_ERROR_SUPPORT?then(' | SERCOM_I2C_SLAVE_ERROR_LOWTOUT', '')} ${I2CS_SEXTTOOUT_ERROR_SUPPORT?then(' | SERCOM_I2C_SLAVE_ERROR_SEXTTOUT', '')})

/* SERCOM I2C slave error type */
typedef uint32_t SERCOM_I2C_SLAVE_ERROR;

Summary

Defines macros and typedefs associated with I2C slave error

Description

Defines macros and typedefs associated with I2C slave error. An error of this type is returned by the SERCOMx_I2C_ErrorGet() function

Remarks

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