ï‚· 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