Inter-integrated circuit interface (I2C)
13.2.15.3 I2C_GetITStatus
ITStatus I2C_GetITStatus ( I2C_TypeDef * I2Cx, uint32_t
I2C_IT)
Checks whether the specified I2C interrupt has occurred or not.
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
The new state of I2C_IT (SET or RESET).
13.2.15.4 I2C_ClearITPendingBit
void I2C_ClearITPendingBit ( I2C_TypeDef * I2Cx, uint32_t
I2C_IT)
Clears the I2Cx's interrupt pending bits.
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