__HAL_USART_GET_FLAG macro
Check whether the specified USART flag is set or not.
Syntax
#define __HAL_USART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) Arguments
__HANDLE__
specifies the USART Handle. USART Handle selects the USARTx peripheral (USART availability and x value depending on device).
__FLAG__
specifies the flag to check. This parameter can be one of the following values: @arg USART_FLAG_TXE: Transmit data register empty flag @arg USART_FLAG_TC: Transmission Complete flag @arg USART_FLAG_RXNE: Receive data register not empty flag @arg USART_FLAG_IDLE: Idle Line detection flag @arg USART_FLAG_ORE: Overrun Error flag @arg USART_FLAG_NE: Noise Error flag @arg USART_FLAG_FE: Framing Error flag @arg USART_FLAG_PE: Parity Error flag
Return value
The new state of __FLAG__ (TRUE or FALSE).