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