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 #270 background imageLoading...
Page #270 background image
Inter-integrated circuit interface (I2C)
UM1581
270/584
DocID023800 Rev 1
13.2.15.3 I2C_GetITStatus
Function Name
ITStatus I2C_GetITStatus ( I2C_TypeDef * I2Cx, uint32_t
I2C_IT)
Function Description
Checks whether the specified I2C interrupt has occurred or not.
Parameters
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· I2C_IT : specifies the interrupt source to check. This
parameter can be one of the following values:
 I2C_IT_TXIS : Transmit interrupt status
 I2C_IT_RXNE : Receive data register not empty
 I2C_IT_ADDR : Address matched (slave mode)
 I2C_IT_NACKF : NACK received flag
 I2C_IT_STOPF : STOP detection flag
 I2C_IT_TC : Transfer complete (master mode)
 I2C_IT_TCR : Transfer complete reload
 I2C_IT_BERR : Bus error
 I2C_IT_ARLO : Arbitration lost
 I2C_IT_OVR : Overrun/Underrun
 I2C_IT_PECERR : PEC error in reception
 I2C_IT_TIMEOUT : Timeout or Tlow detection flag
 I2C_IT_ALERT : SMBus Alert
Return values
ï‚· The new state of I2C_IT (SET or RESET).
Notes
ï‚· None.
13.2.15.4 I2C_ClearITPendingBit
Function Name
void I2C_ClearITPendingBit ( I2C_TypeDef * I2Cx, uint32_t
I2C_IT)
Function Description
Clears the I2Cx's interrupt pending bits.
Parameters
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· I2C_IT : specifies the interrupt pending bit to clear. This
parameter can be any combination of the following values:
 I2C_IT_ADDR : Address matched (slave mode)
 I2C_IT_NACKF : NACK received flag
 I2C_IT_STOPF : STOP detection flag
 I2C_IT_BERR : Bus error
 I2C_IT_ARLO : Arbitration lost
 I2C_IT_OVR : Overrun/Underrun
 I2C_IT_PECERR : PEC error in reception
 I2C_IT_TIMEOUT : Timeout or Tlow detection flag

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