EasyManua.ls Logo

ST STM32F31xx

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...
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

Related product manuals