UM1581
Parameters
Return values
Notes
13.2.15.2 I2C_ClearFlag
Function Name
Function Description
Parameters
Return values
Notes
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
I2C_FLAG : specifies the flag to check. This parameter can
be one of the following values:
I2C_FLAG_TXE :
I2C_FLAG_TXIS :
I2C_FLAG_RXNE :
I2C_FLAG_ADDR :
I2C_FLAG_NACKF :
I2C_FLAG_STOPF :
I2C_FLAG_TC :
I2C_FLAG_TCR :
I2C_FLAG_BERR :
I2C_FLAG_ARLO :
I2C_FLAG_OVR :
I2C_FLAG_PECERR :
I2C_FLAG_TIMEOUT :
I2C_FLAG_ALERT :
I2C_FLAG_BUSY :
The new state of I2C_FLAG (SET or RESET).
None.
void I2C_ClearFlag (
Clears the I2Cx's pending flags.
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
I2C_FLAG : specifies the flag to clear. This parameter can
be any combination of the following values:
I2C_FLAG_ADDR :
I2C_FLAG_NACKF :
I2C_FLAG_STOPF :
I2C_FLAG_BERR :
I2C_FLAG_ARLO :
I2C_FLAG_OVR :
I2C_FLAG_PECERR :
I2C_FLAG_TIMEOUT :
I2C_FLAG_ALERT :
The new state of I2C_FLAG (SET or RESET).
None.
DocID023800 Rev 1
Inter-integrated circuit interface (I2C)
Transmit data register empty
Transmit interrupt status
Receive data register not empty
Address matched (slave mode)
NACK received flag
STOP detection flag
Transfer complete (master mode)
Transfer complete reload
Bus error
Arbitration lost
Overrun/Underrun
PEC error in reception
Timeout or Tlow detection flag
SMBus Alert
Bus busy
I2C_TypeDef *
I2Cx, uint32_t I2C_FLAG)
Address matched (slave mode)
NACK received flag
STOP detection flag
Bus error
Arbitration lost
Overrun/Underrun
PEC error in reception
Timeout or Tlow detection flag
SMBus Alert
269/584
Need help?
Do you have a question about the STM32F31xx and is the answer not in the manual?