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

__HAL_IRDA_CLEAR_FLAG macro

Clear the specified IRDA pending flag.

Syntax

#define __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__))

Arguments

__HANDLE__

specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).

__FLAG__

specifies the flag to check. This parameter can be any combination of the following values: @arg IRDA_FLAG_TC: Transmission Complete flag. @arg IRDA_FLAG_RXNE: Receive data register not empty flag.

Return value

None

Notes

PE (Parity error), FE (Framing error), NE (Noise error), ORE (OverRun error) and IDLE (Idle line detected) flags are cleared by software sequence: a read operation to USART_SR register followed by a read operation to USART_DR register. RXNE flag can be also cleared by a read to the USART_DR register. TC flag can be also cleared by software sequence: a read operation to USART_SR register followed by a write operation to USART_DR register. TXE flag is cleared only by a write to the USART_DR register.

References

LocationText
stm32f4xx_hal_irda.h:402
#define __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__))
stm32f4xx_hal_irda.c:1079
__HAL_IRDA_CLEAR_FLAG(hirda, IRDA_FLAG_TC);