EasyManuals Logo

ST STM32F31xx User Manual

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
Page #269 background imageLoading...
Page #269 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals