HAL
__HAL_FMPI2C_CLEAR_FLAG is only used within HAL.
 
Symbols
loading...
Files
loading...

__HAL_FMPI2C_CLEAR_FLAG macro

Clear the FMPI2C pending flags which are cleared by writing 1 in a specific bit.

Syntax

#define __HAL_FMPI2C_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__FLAG__) == FMPI2C_FLAG_TXE) ? \     ((__HANDLE__)->Instance->ISR |= (__FLAG__)) : \     ((__HANDLE__)->Instance->ICR = (__FLAG__)))

Arguments

__HANDLE__

specifies the FMPI2C Handle.

__FLAG__

specifies the flag to clear. This parameter can be any combination of the following values: @arg FMPI2C_FLAG_TXE Transmit data register empty @arg FMPI2C_FLAG_ADDR Address matched (slave mode) @arg FMPI2C_FLAG_AF Acknowledge failure received flag @arg FMPI2C_FLAG_STOPF STOP detection flag @arg FMPI2C_FLAG_BERR Bus error @arg FMPI2C_FLAG_ARLO Arbitration lost @arg FMPI2C_FLAG_OVR Overrun/Underrun @arg FMPI2C_FLAG_PECERR PEC error in reception @arg FMPI2C_FLAG_TIMEOUT Timeout or Tlow detection flag @arg FMPI2C_FLAG_ALERT SMBus alert

Return value

None

References

LocationText
stm32f4xx_hal_fmpi2c.h:565
#define __HAL_FMPI2C_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__FLAG__) == FMPI2C_FLAG_TXE) ? \
stm32f4xx_hal_fmpi2c.c:1231
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:1351
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:1433
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:1447
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:1505
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:1517
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:1594
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:1647
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:2617
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:2756
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:3320
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:3339
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:3342
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:4012
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:4193
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:4296
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:4477
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:4657
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_BERR);
stm32f4xx_hal_fmpi2c.c:4667
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_OVR);
stm32f4xx_hal_fmpi2c.c:4677
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ARLO);
stm32f4xx_hal_fmpi2c.c:4939
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5098
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5279
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5291
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5298
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5397
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5544
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5759
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5771
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5778
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5809
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:5975
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:6027
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ADDR);
stm32f4xx_hal_fmpi2c.c:6173
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:6201
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:6317
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:6420
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:6432
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:6439
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:6557
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:6622
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:6627
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:6757
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_TXE);
stm32f4xx_hal_fmpi2c.c:7151
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:7155
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:7212
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_AF);
stm32f4xx_hal_fmpi2c.c:7258
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_STOPF);
stm32f4xx_hal_fmpi2c.c:7276
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_BERR);
stm32f4xx_hal_fmpi2c.c:7287
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_OVR);
stm32f4xx_hal_fmpi2c.c:7298
__HAL_FMPI2C_CLEAR_FLAG(hfmpi2c, FMPI2C_FLAG_ARLO);