My Project
Loading...
Searching...
No Matches
UART State Code Definition

Macros

#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
 

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

◆ HAL_UART_STATE_BUSY_RX

#define HAL_UART_STATE_BUSY_RX   0x00000022U

Data Reception process is ongoing Value is allowed for RxState only

◆ HAL_UART_STATE_BUSY_TX

#define HAL_UART_STATE_BUSY_TX   0x00000021U

Data Transmission process is ongoing Value is allowed for gState only

◆ 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

◆ HAL_UART_STATE_ERROR

#define HAL_UART_STATE_ERROR   0x000000E0U

Error Value is allowed for gState only

◆ HAL_UART_STATE_READY

#define HAL_UART_STATE_READY   0x00000020U

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

◆ HAL_UART_STATE_RESET

#define HAL_UART_STATE_RESET   0x00000000U

Peripheral is not initialized Value is allowed for gState and RxState

◆ HAL_UART_STATE_TIMEOUT

#define HAL_UART_STATE_TIMEOUT   0x000000A0U

Timeout state Value is allowed for gState only