__HAL_I2C_GET_FLAG macro
Checks whether the specified I2C flag is set or not.
Arguments
__HANDLE__
specifies the I2C Handle.
__FLAG__
specifies the flag to check. This parameter can be one of the following values: @arg I2C_FLAG_OVR: Overrun/Underrun flag @arg I2C_FLAG_AF: Acknowledge failure flag @arg I2C_FLAG_ARLO: Arbitration lost flag @arg I2C_FLAG_BERR: Bus error flag @arg I2C_FLAG_TXE: Data register empty flag @arg I2C_FLAG_RXNE: Data register not empty flag @arg I2C_FLAG_STOPF: Stop detection flag @arg I2C_FLAG_ADD10: 10-bit header sent flag @arg I2C_FLAG_BTF: Byte transfer finished flag @arg I2C_FLAG_ADDR: Address sent flag Address matched flag @arg I2C_FLAG_SB: Start bit flag @arg I2C_FLAG_DUALF: Dual flag @arg I2C_FLAG_GENCALL: General call header flag @arg I2C_FLAG_TRA: Transmitter/Receiver flag @arg I2C_FLAG_BUSY: Bus busy flag @arg I2C_FLAG_MSL: Master/Slave flag
Return value
The new state of __FLAG__ (TRUE or FALSE).