1.2.21.69 1.3.25.69 1.4.21.69 1.5.25.69 1.6.22.69 1.7.23.69 1.9.19.69 1.29.23.69 1.30.18.69 1.31.18.69 1.32.26.69 1.33.16.69 1.37.18.69 1.38.21.69 1.39.18.69 1.40.20.69 SERCOMx_I2C_InterruptFlagsClear Function
C
/* x = SERCOM instance number */
/* I2C slave in non-interrupt mode */
void SERCOMx_I2C_InterruptFlagsClear(SERCOM_I2C_SLAVE_INTFLAG intFlags)
Summary
Clears the specified SERCOM I2C slave interrupt flags.
Description
This function clears the specified SERCOM I2C slave interrupt flags.
Precondition
SERCOMx_I2C_Initialize must have been called for the associated SERCOM I2C instance.
Parameters
Param | Description |
---|---|
SERCOM_I2C_SLAVE_INTFLAG | Enum with possible interrupt flag values |
Returns
None.
Example
SERCOM_I2C_SLAVE_INTFLAG intFlags;
// Read the interrupt flags set
intFlags = SERCOM0_I2C_InterruptFlagsGet();
// Add code to handle the set interrupt flags
// Clear all the interrupt flags that were set
SERCOM0_I2C_InterruptFlagsClear(intFlags);
Remarks
I2C slave application would typically use this API when the SERCOM I2C slave PLIB is used in polled mode (interrupt is disabled).