1.2.21.68 1.3.25.68 1.4.21.68 1.5.25.68 1.6.22.68 1.7.23.68 1.9.19.68 1.29.23.68 1.30.18.68 1.31.18.68 1.32.26.68 1.33.16.68 1.37.18.68 1.38.21.68 1.39.18.68 1.40.20.68 SERCOMx_I2C_InterruptFlagsGet Function
C
/* x = SERCOM instance number */
/* I2C slave with interrupt disabled */
SERCOM_I2C_SLAVE_INTFLAG SERCOMx_I2C_InterruptFlagsGet(void)
Summary
Returns the SERCOM I2C slave interrupt flags
Description
This function returns the SERCOM I2C slave interrupt flags
Precondition
SERCOMx_I2C_Initialize must have been called for the associated SERCOM I2C instance
Parameters
None
Returns
Param | Description |
---|---|
SERCOM_I2C_SLAVE_INTFLAG | Enum with possible interrupt flag values |
Example
SERCOM_I2C_SLAVE_INTFLAG intFlags; intFlags = SERCOM0_I2C_InterruptFlagsGet(); if (intFlags & SERCOM_I2C_SLAVE_INTFLAG_AMATCH) { // Address match interrupt flag is set } else if (intFlags & SERCOM_I2C_SLAVE_INTFLAG_DRDY) { // Data ready interrupt flag is set } else if (intFlags & SERCOM_I2C_SLAVE_INTFLAG_PREC) { // Stop bit received interrupt flag is set }
Remarks
This API is available in I2C slave mode