STM32L443xx HAL User Manual
Data Structures | Typedefs | Enumerations
UART Exported Types
UART

Data Structures

struct  UART_InitTypeDef
 UART Init Structure definition. More...
struct  UART_AdvFeatureInitTypeDef
 UART Advanced Features initialization structure definition. More...
struct  __UART_HandleTypeDef
 UART handle Structure definition. More...

Typedefs

typedef uint32_t HAL_UART_StateTypeDef
 HAL UART State definition.
typedef uint32_t HAL_UART_RxTypeTypeDef
 HAL UART Reception type definition.
typedef struct __UART_HandleTypeDef UART_HandleTypeDef
 UART handle Structure definition.
typedef void(* pUART_CallbackTypeDef )(UART_HandleTypeDef *huart)
 HAL UART Callback pointer definition.
typedef void(* pUART_RxEventCallbackTypeDef )(struct __UART_HandleTypeDef *huart, uint16_t Pos)

Enumerations

enum  UART_ClockSourceTypeDef {
  UART_CLOCKSOURCE_PCLK1 = 0x00U, UART_CLOCKSOURCE_PCLK2 = 0x01U, UART_CLOCKSOURCE_HSI = 0x02U, UART_CLOCKSOURCE_SYSCLK = 0x04U,
  UART_CLOCKSOURCE_LSE = 0x08U, UART_CLOCKSOURCE_UNDEFINED = 0x10U
}
 UART clock sources definition. More...
enum  HAL_UART_CallbackIDTypeDef {
  HAL_UART_TX_HALFCOMPLETE_CB_ID = 0x00U, HAL_UART_TX_COMPLETE_CB_ID = 0x01U, HAL_UART_RX_HALFCOMPLETE_CB_ID = 0x02U, HAL_UART_RX_COMPLETE_CB_ID = 0x03U,
  HAL_UART_ERROR_CB_ID = 0x04U, HAL_UART_ABORT_COMPLETE_CB_ID = 0x05U, HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID = 0x06U, HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID = 0x07U,
  HAL_UART_WAKEUP_CB_ID = 0x08U, HAL_UART_MSPINIT_CB_ID = 0x0BU, HAL_UART_MSPDEINIT_CB_ID = 0x0CU
}
 HAL UART Callback ID enumeration definition. More...

Typedef Documentation

typedef uint32_t HAL_UART_RxTypeTypeDef

HAL UART Reception type definition.

Note:
HAL UART Reception type value aims to identify which type of Reception is ongoing. It is expected to admit following values : HAL_UART_RECEPTION_STANDARD = 0x00U, HAL_UART_RECEPTION_TOIDLE = 0x01U, HAL_UART_RECEPTION_TORTO = 0x02U, HAL_UART_RECEPTION_TOCHARMATCH = 0x03U,

Definition at line 207 of file stm32l4xx_hal_uart.h.

typedef uint32_t HAL_UART_StateTypeDef

HAL UART State definition.

Note:
HAL UART State value is a combination of 2 different substates: gState and RxState (see UART State Code Definition).
  • gState contains UART state information related to global Handle management and also information related to Tx operations. gState value coding follow below described bitmap : b7-b6 Error information 00 : No Error 01 : (Not Used) 10 : Timeout 11 : Error b5 Peripheral initialization status 0 : Reset (Peripheral not initialized) 1 : Init done (Peripheral initialized. HAL UART Init function already called) b4-b3 (not used) xx : Should be set to 00 b2 Intrinsic process state 0 : Ready 1 : Busy (Peripheral busy with some configuration or internal operations) b1 (not used) x : Should be set to 0 b0 Tx state 0 : Ready (no Tx operation ongoing) 1 : Busy (Tx operation ongoing)
  • RxState contains information related to Rx operations. RxState value coding follow below described bitmap : b7-b6 (not used) xx : Should be set to 00 b5 Peripheral initialization status 0 : Reset (Peripheral not initialized) 1 : Init done (Peripheral initialized) b4-b2 (not used) xxx : Should be set to 000 b1 Rx state 0 : Ready (no Rx operation ongoing) 1 : Busy (Rx operation ongoing) b0 (not used) x : Should be set to 0.

Definition at line 183 of file stm32l4xx_hal_uart.h.

typedef void(* pUART_CallbackTypeDef)(UART_HandleTypeDef *huart)

HAL UART Callback pointer definition.

pointer to an UART callback function

Definition at line 314 of file stm32l4xx_hal_uart.h.

typedef void(* pUART_RxEventCallbackTypeDef)(struct __UART_HandleTypeDef *huart, uint16_t Pos)

pointer to a UART Rx Event specific callback function

Definition at line 316 of file stm32l4xx_hal_uart.h.

UART handle Structure definition.


Enumeration Type Documentation

HAL UART Callback ID enumeration definition.

Enumerator:
HAL_UART_TX_HALFCOMPLETE_CB_ID 

UART Tx Half Complete Callback ID

HAL_UART_TX_COMPLETE_CB_ID 

UART Tx Complete Callback ID

HAL_UART_RX_HALFCOMPLETE_CB_ID 

UART Rx Half Complete Callback ID

HAL_UART_RX_COMPLETE_CB_ID 

UART Rx Complete Callback ID

HAL_UART_ERROR_CB_ID 

UART Error Callback ID

HAL_UART_ABORT_COMPLETE_CB_ID 

UART Abort Complete Callback ID

HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID 

UART Abort Transmit Complete Callback ID

HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID 

UART Abort Receive Complete Callback ID

HAL_UART_WAKEUP_CB_ID 

UART Wakeup Callback ID

HAL_UART_MSPINIT_CB_ID 

UART MspInit callback ID

HAL_UART_MSPDEINIT_CB_ID 

UART MspDeInit callback ID

Definition at line 290 of file stm32l4xx_hal_uart.h.

UART clock sources definition.

Enumerator:
UART_CLOCKSOURCE_PCLK1 

PCLK1 clock source

UART_CLOCKSOURCE_PCLK2 

PCLK2 clock source

UART_CLOCKSOURCE_HSI 

HSI clock source

UART_CLOCKSOURCE_SYSCLK 

SYSCLK clock source

UART_CLOCKSOURCE_LSE 

LSE clock source

UART_CLOCKSOURCE_UNDEFINED 

Undefined clock source

Definition at line 188 of file stm32l4xx_hal_uart.h.