ST STM32F2 User Manual page 310

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

HAL I2C Generic Driver
__HAL_I2C_CLEAR_FLAG
__HAL_I2C_CLEAR_ADDRFLAG
310/1371
Return value:
The: new state of __FLAG__ (TRUE or
FALSE).
Description:
Clears the I2C pending flags which are
cleared by writing 0 in a specific bit.
Parameters:
__HANDLE__: specifies the I2C Handle.
This parameter can be I2C where x: 1, 2, or
3 to select the I2C peripheral.
__FLAG__: specifies the flag to clear. This
parameter can be any combination of the
following values:
Return value:
None
Description:
DocID028236 Rev 2
I2C_FLAG_STOPF: Stop detection flag
I2C_FLAG_ADD10: 10-bit header sent
flag
I2C_FLAG_BTF: Byte transfer finished
flag
I2C_FLAG_ADDR: Address sent flag
Address matched flag
I2C_FLAG_SB: Start bit flag
I2C_FLAG_DUALF: Dual flag
I2C_FLAG_SMBHOST: SMBus host
header
I2C_FLAG_SMBDEFAULT: SMBus
default header
I2C_FLAG_GENCALL: General call
header flag
I2C_FLAG_TRA: Transmitter/Receiver
flag
I2C_FLAG_BUSY: Bus busy flag
I2C_FLAG_MSL: Master/Slave flag
I2C_FLAG_SMBALERT: SMBus Alert
flag
I2C_FLAG_TIMEOUT: Timeout or Tlow
error flag
I2C_FLAG_PECERR: PEC error in
reception flag
I2C_FLAG_OVR: Overrun/Underrun
flag (Slave mode)
I2C_FLAG_AF: Acknowledge failure
flag
I2C_FLAG_ARLO: Arbitration lost flag
(Master mode)
I2C_FLAG_BERR: Bus error flag
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF