ST STM32F2 User Manual page 662

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

HAL UART Generic Driver
__HAL_UART_FLUSH_DRREGISTER
__HAL_UART_GET_FLAG
662/1371
Parameters:
Return value:
Description:
Parameters:
Description:
Parameters:
DocID028236 Rev 2
RxState.
__HANDLE__: specifies the UART
Handle. This parameter can be
UARTx where x: 1, 2, 3, 4, 5, 6, 7 or
8 to select the USART or UART
peripheral.
None
Flushes the UART DR register.
__HANDLE__: specifies the UART
Handle.
Checks whether the specified UART
flag is set or not.
__HANDLE__: specifies the UART
Handle. This parameter can be
UARTx where x: 1, 2, 3, 4, 5, 6, 7 or
8 to select the USART or UART
peripheral.
__FLAG__: specifies the flag to
check. This parameter can be one of
the following values:
UART_FLAG_CTS: CTS
Change flag (not available for
UART4 and UART5)
UART_FLAG_LBD: LIN Break
detection flag
UART_FLAG_TXE: Transmit
data register empty flag
UART_FLAG_TC:
Transmission Complete flag
UART_FLAG_RXNE: Receive
data register not empty flag
UART_FLAG_IDLE: Idle Line
detection flag
UART_FLAG_ORE: Overrun
Error flag
UART_FLAG_NE: Noise Error
flag
UART_FLAG_FE: Framing
Error flag
UART_FLAG_PE: Parity Error
flag
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF