HAL
__HAL_FMPI2C_CLEAR_FLAG
is only used within HAL.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
HAL
__HAL_FMPI2C_CLEAR_FLAG
__HAL_FMPI2C_CLEAR_FLAG macro
Clear the FMPI2C pending flags which are cleared by writing 1 in a specific bit.
Syntax
Show:
Summary
Declaration
from
stm32f4xx_hal_fmpi2c.h:565
#define
__HAL_FMPI2C_CLEAR_FLAG
(
__HANDLE__
,
__FLAG__
)
(
(
(
__FLAG__
)
==
FMPI2C_FLAG_TXE
)
?
\
(
(
__HANDLE__
)
->
Instance
->
ISR
|=
(
__FLAG__
)
)
:
\
(
(
__HANDLE__
)
->
Instance
->
ICR
=
(
__FLAG__
)
)
)
Arguments
Argument
Description
__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
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out