STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
UART State Code Definition
Collaboration diagram for UART State Code Definition:

Macros

#define HAL_UART_STATE_RESET   0x00000000U
 Peripheral is not initialized Value is allowed for gState and RxState.
#define HAL_UART_STATE_READY   0x00000020U
 Peripheral Initialized and ready for use Value is allowed for gState and RxState.
#define HAL_UART_STATE_BUSY   0x00000024U
 an internal process is ongoing Value is allowed for gState only
#define HAL_UART_STATE_BUSY_TX   0x00000021U
 Data Transmission process is ongoing Value is allowed for gState only.
#define HAL_UART_STATE_BUSY_RX   0x00000022U
 Data Reception process is ongoing Value is allowed for RxState only.
#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.
#define HAL_UART_STATE_TIMEOUT   0x000000A0U
 Timeout state Value is allowed for gState only.
#define HAL_UART_STATE_ERROR   0x000000E0U
 Error Value is allowed for gState only.

Detailed Description

Macro Definition Documentation

◆ HAL_UART_STATE_BUSY

#define HAL_UART_STATE_BUSY   0x00000024U

an internal process is ongoing Value is allowed for gState only

Definition at line 340 of file stm32h7xx_hal_uart.h.

◆ HAL_UART_STATE_BUSY_RX

#define HAL_UART_STATE_BUSY_RX   0x00000022U

Data Reception process is ongoing Value is allowed for RxState only.

Definition at line 344 of file stm32h7xx_hal_uart.h.

◆ HAL_UART_STATE_BUSY_TX

#define HAL_UART_STATE_BUSY_TX   0x00000021U

Data Transmission process is ongoing Value is allowed for gState only.

Definition at line 342 of file stm32h7xx_hal_uart.h.

◆ HAL_UART_STATE_BUSY_TX_RX

#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 346 of file stm32h7xx_hal_uart.h.

◆ HAL_UART_STATE_ERROR

#define HAL_UART_STATE_ERROR   0x000000E0U

Error Value is allowed for gState only.

Definition at line 351 of file stm32h7xx_hal_uart.h.

◆ HAL_UART_STATE_READY

#define HAL_UART_STATE_READY   0x00000020U

Peripheral Initialized and ready for use Value is allowed for gState and RxState.

Definition at line 338 of file stm32h7xx_hal_uart.h.

Referenced by HAL_UART_ErrorCallback().

◆ HAL_UART_STATE_RESET

#define HAL_UART_STATE_RESET   0x00000000U

Peripheral is not initialized Value is allowed for gState and RxState.

Definition at line 336 of file stm32h7xx_hal_uart.h.

◆ HAL_UART_STATE_TIMEOUT

#define HAL_UART_STATE_TIMEOUT   0x000000A0U

Timeout state Value is allowed for gState only.

Definition at line 349 of file stm32h7xx_hal_uart.h.