HAL + 0/2 examples
CodeScope will show references to __HAL_UART_GET_FLAG from the following samples and libraries:
Examples
STM32446E-Nucleo
Examples
UART
STM32F429ZI-Nucleo
Examples
UART
 
Symbols
loading...
Files
loading...

__HAL_UART_GET_FLAG macro

Checks whether the specified UART flag is set or not.

Syntax

#define __HAL_UART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))

Arguments

__HANDLE__

specifies the UART Handle. UART 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 UART_FLAG_CTS: CTS Change flag (not available for UART4 and UART5) @arg UART_FLAG_LBD: LIN Break detection flag @arg UART_FLAG_TXE: Transmit data register empty flag @arg UART_FLAG_TC: Transmission Complete flag @arg UART_FLAG_RXNE: Receive data register not empty flag @arg UART_FLAG_IDLE: Idle Line detection flag @arg UART_FLAG_ORE: Overrun Error flag @arg UART_FLAG_NE: Noise Error flag @arg UART_FLAG_FE: Framing Error flag @arg UART_FLAG_PE: Parity Error flag

Return value

The new state of __FLAG__ (TRUE or FALSE).

Examples

__HAL_UART_GET_FLAG is referenced by 2 libraries and example projects.

References

LocationText
stm32f4xx_hal_uart.h:470
#define __HAL_UART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
stm32f4xx_hal_uart.c:1633
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE))
stm32f4xx_hal_uart.c:1650
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RXNE))
stm32f4xx_hal_uart.c:3189
while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
stm32f4xx_hal_uart.c:3202
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
stm32f4xx_hal_uart.c:3653
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE))