EasyManua.ls Logo

ST STM32F31xx - Page 269

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Inter-integrated circuit interface (I2C)
DocID023800 Rev 1
269/584
Parameters
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 : Transmit data register empty
I2C_FLAG_TXIS : Transmit interrupt status
I2C_FLAG_RXNE : Receive data register not empty
I2C_FLAG_ADDR : Address matched (slave mode)
I2C_FLAG_NACKF : NACK received flag
I2C_FLAG_STOPF : STOP detection flag
I2C_FLAG_TC : Transfer complete (master mode)
I2C_FLAG_TCR : Transfer complete reload
I2C_FLAG_BERR : Bus error
I2C_FLAG_ARLO : Arbitration lost
I2C_FLAG_OVR : Overrun/Underrun
I2C_FLAG_PECERR : PEC error in reception
I2C_FLAG_TIMEOUT : Timeout or Tlow detection flag
I2C_FLAG_ALERT : SMBus Alert
I2C_FLAG_BUSY : Bus busy
Return values
The new state of I2C_FLAG (SET or RESET).
Notes
None.
13.2.15.2 I2C_ClearFlag
Function Name
void I2C_ClearFlag ( I2C_TypeDef * I2Cx, uint32_t I2C_FLAG)
Function Description
Clears the I2Cx's pending flags.
Parameters
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 : Address matched (slave mode)
I2C_FLAG_NACKF : NACK received flag
I2C_FLAG_STOPF : STOP detection flag
I2C_FLAG_BERR : Bus error
I2C_FLAG_ARLO : Arbitration lost
I2C_FLAG_OVR : Overrun/Underrun
I2C_FLAG_PECERR : PEC error in reception
I2C_FLAG_TIMEOUT : Timeout or Tlow detection flag
I2C_FLAG_ALERT : SMBus Alert
Return values
The new state of I2C_FLAG (SET or RESET).
Notes
None.

Table of Contents

Related product manuals