__HAL_IRDA_GET_FLAG macro
Check whether the specified IRDA flag is set or not.
Syntax
#define __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__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 one of the following values: @arg IRDA_FLAG_TXE: Transmit data register empty flag @arg IRDA_FLAG_TC: Transmission Complete flag @arg IRDA_FLAG_RXNE: Receive data register not empty flag @arg IRDA_FLAG_IDLE: Idle Line detection flag @arg IRDA_FLAG_ORE: OverRun Error flag @arg IRDA_FLAG_NE: Noise Error flag @arg IRDA_FLAG_FE: Framing Error flag @arg IRDA_FLAG_PE: Parity Error flag
Return value
The new state of __FLAG__ (TRUE or FALSE).