STM32L443xx HAL User Manual
Defines
UART State Code Definition
UART Exported Constants

Defines

#define HAL_UART_STATE_RESET   0x00000000U
#define HAL_UART_STATE_READY   0x00000020U
#define HAL_UART_STATE_BUSY   0x00000024U
#define HAL_UART_STATE_BUSY_TX   0x00000021U
#define HAL_UART_STATE_BUSY_RX   0x00000022U
#define HAL_UART_STATE_BUSY_TX_RX   0x00000023U
#define HAL_UART_STATE_TIMEOUT   0x000000A0U
#define HAL_UART_STATE_ERROR   0x000000E0U

Define Documentation

#define HAL_UART_STATE_BUSY   0x00000024U
#define HAL_UART_STATE_BUSY_RX   0x00000022U
#define HAL_UART_STATE_BUSY_TX   0x00000021U

Data Transmission process is ongoing Value is allowed for gState only

Definition at line 338 of file stm32l4xx_hal_uart.h.

Referenced by HAL_UART_DMAPause(), HAL_UART_DMAResume(), HAL_UART_DMAStop(), HAL_UART_Transmit(), HAL_UART_Transmit_DMA(), HAL_UART_Transmit_IT(), UART_DMAError(), UART_TxISR_16BIT(), and UART_TxISR_8BIT().

#define HAL_UART_STATE_BUSY_TX_RX   0x00000023U

Data Transmission and Reception process is ongoing Not to be used for neither gState nor RxState.Value is result of combination (Or) between gState and RxState values

Definition at line 342 of file stm32l4xx_hal_uart.h.

#define HAL_UART_STATE_ERROR   0x000000E0U

Error Value is allowed for gState only

Definition at line 347 of file stm32l4xx_hal_uart.h.

#define HAL_UART_STATE_READY   0x00000020U
#define HAL_UART_STATE_RESET   0x00000000U

Peripheral is not initialized Value is allowed for gState and RxState

Definition at line 332 of file stm32l4xx_hal_uart.h.

Referenced by HAL_HalfDuplex_Init(), HAL_LIN_Init(), HAL_MultiProcessor_Init(), HAL_RS485Ex_Init(), HAL_UART_DeInit(), HAL_UART_Init(), HAL_UART_RegisterCallback(), and HAL_UART_UnRegisterCallback().

#define HAL_UART_STATE_TIMEOUT   0x000000A0U

Timeout state Value is allowed for gState only

Definition at line 345 of file stm32l4xx_hal_uart.h.