STM32F4xx_HAL_Driver
1.8.3
|
Data Structures | |
struct | UART_InitTypeDef |
UART Init Structure definition. More... | |
struct | __UART_HandleTypeDef |
UART handle Structure definition. More... | |
Typedefs | |
typedef uint32_t | HAL_UART_RxTypeTypeDef |
HAL UART Reception type definition. More... | |
typedef uint32_t | HAL_UART_RxEventTypeTypeDef |
HAL UART Rx Event type definition. More... | |
typedef struct __UART_HandleTypeDef | UART_HandleTypeDef |
UART handle Structure definition. | |
typedef void(* | pUART_CallbackTypeDef) (UART_HandleTypeDef *huart) |
HAL UART Callback pointer definition. More... | |
typedef void(* | pUART_RxEventCallbackTypeDef) (struct __UART_HandleTypeDef *huart, uint16_t Pos) |
Enumerations | |
enum | HAL_UART_StateTypeDef { HAL_UART_STATE_RESET = 0x00U , HAL_UART_STATE_READY = 0x20U , HAL_UART_STATE_BUSY = 0x24U , HAL_UART_STATE_BUSY_TX = 0x21U , HAL_UART_STATE_BUSY_RX = 0x22U , HAL_UART_STATE_BUSY_TX_RX = 0x23U , HAL_UART_STATE_TIMEOUT = 0xA0U , HAL_UART_STATE_ERROR = 0xE0U } |
HAL UART State structures 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... | |
struct UART_InitTypeDef |
UART Init Structure definition.
Definition at line 46 of file stm32f4xx_hal_uart.h.
Data Fields | ||
---|---|---|
uint32_t | BaudRate |
This member configures the UART communication baud rate. The baud rate is computed using the following formula:
|
uint32_t | HwFlowCtl |
Specifies whether the hardware flow control mode is enabled or disabled. This parameter can be a value of UART Hardware Flow Control |
uint32_t | Mode |
Specifies whether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of UART Transfer Mode |
uint32_t | OverSampling |
Specifies whether the Over sampling 8 is enabled or disabled, to achieve higher speed (up to fPCLK/8). This parameter can be a value of UART Over Sampling |
uint32_t | Parity |
Specifies the parity mode. This parameter can be a value of UART Parity
|
uint32_t | StopBits |
Specifies the number of stop bits transmitted. This parameter can be a value of UART Number of Stop Bits |
uint32_t | WordLength |
Specifies the number of data bits transmitted or received in a frame. This parameter can be a value of UART Word Length |
struct __UART_HandleTypeDef |
UART handle Structure definition.
Definition at line 160 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::AbortCpltCallback) (struct __UART_HandleTypeDef *huart) |
UART Abort Complete Callback
Definition at line 203 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::AbortReceiveCpltCallback) (struct __UART_HandleTypeDef *huart) |
UART Abort Receive Complete Callback
Definition at line 205 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::AbortTransmitCpltCallback) (struct __UART_HandleTypeDef *huart) |
UART Abort Transmit Complete Callback
Definition at line 204 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::ErrorCallback) (struct __UART_HandleTypeDef *huart) |
UART Error Callback
Definition at line 202 of file stm32f4xx_hal_uart.h.
__IO uint32_t __UART_HandleTypeDef::ErrorCode |
UART Error code
Definition at line 195 of file stm32f4xx_hal_uart.h.
__IO HAL_UART_StateTypeDef __UART_HandleTypeDef::gState |
UART state information related to global Handle management and also related to Tx operations. This parameter can be a value of HAL_UART_StateTypeDef
Definition at line 188 of file stm32f4xx_hal_uart.h.
DMA_HandleTypeDef* __UART_HandleTypeDef::hdmarx |
UART Rx DMA Handle parameters
Definition at line 184 of file stm32f4xx_hal_uart.h.
DMA_HandleTypeDef* __UART_HandleTypeDef::hdmatx |
UART Tx DMA Handle parameters
Definition at line 182 of file stm32f4xx_hal_uart.h.
UART_InitTypeDef __UART_HandleTypeDef::Init |
UART communication parameters
Definition at line 164 of file stm32f4xx_hal_uart.h.
USART_TypeDef* __UART_HandleTypeDef::Instance |
UART registers base address
Definition at line 162 of file stm32f4xx_hal_uart.h.
HAL_LockTypeDef __UART_HandleTypeDef::Lock |
Locking object
Definition at line 186 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::MspDeInitCallback) (struct __UART_HandleTypeDef *huart) |
UART Msp DeInit callback
Definition at line 210 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::MspInitCallback) (struct __UART_HandleTypeDef *huart) |
UART Msp Init callback
Definition at line 209 of file stm32f4xx_hal_uart.h.
uint8_t* __UART_HandleTypeDef::pRxBuffPtr |
Pointer to UART Rx transfer Buffer
Definition at line 172 of file stm32f4xx_hal_uart.h.
const uint8_t* __UART_HandleTypeDef::pTxBuffPtr |
Pointer to UART Tx transfer Buffer
Definition at line 166 of file stm32f4xx_hal_uart.h.
__IO HAL_UART_RxTypeTypeDef __UART_HandleTypeDef::ReceptionType |
Type of ongoing reception
Definition at line 178 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::RxCpltCallback) (struct __UART_HandleTypeDef *huart) |
UART Rx Complete Callback
Definition at line 201 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::RxEventCallback) (struct __UART_HandleTypeDef *huart, uint16_t Pos) |
UART Reception Event Callback
Definition at line 207 of file stm32f4xx_hal_uart.h.
__IO HAL_UART_RxEventTypeTypeDef __UART_HandleTypeDef::RxEventType |
Type of Rx Event
Definition at line 180 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::RxHalfCpltCallback) (struct __UART_HandleTypeDef *huart) |
UART Rx Half Complete Callback
Definition at line 200 of file stm32f4xx_hal_uart.h.
__IO HAL_UART_StateTypeDef __UART_HandleTypeDef::RxState |
UART state information related to Rx operations. This parameter can be a value of HAL_UART_StateTypeDef
Definition at line 192 of file stm32f4xx_hal_uart.h.
__IO uint16_t __UART_HandleTypeDef::RxXferCount |
UART Rx Transfer Counter
Definition at line 176 of file stm32f4xx_hal_uart.h.
uint16_t __UART_HandleTypeDef::RxXferSize |
UART Rx Transfer size
Definition at line 174 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::TxCpltCallback) (struct __UART_HandleTypeDef *huart) |
UART Tx Complete Callback
Definition at line 199 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::TxHalfCpltCallback) (struct __UART_HandleTypeDef *huart) |
UART Tx Half Complete Callback
Definition at line 198 of file stm32f4xx_hal_uart.h.
__IO uint16_t __UART_HandleTypeDef::TxXferCount |
UART Tx Transfer Counter
Definition at line 170 of file stm32f4xx_hal_uart.h.
uint16_t __UART_HandleTypeDef::TxXferSize |
UART Tx Transfer size
Definition at line 168 of file stm32f4xx_hal_uart.h.
void(* __UART_HandleTypeDef::WakeupCallback) (struct __UART_HandleTypeDef *huart) |
UART Wakeup Callback
Definition at line 206 of file stm32f4xx_hal_uart.h.
typedef uint32_t HAL_UART_RxEventTypeTypeDef |
HAL UART Rx Event type definition.
Definition at line 155 of file stm32f4xx_hal_uart.h.
typedef uint32_t HAL_UART_RxTypeTypeDef |
HAL UART Reception type definition.
Definition at line 144 of file stm32f4xx_hal_uart.h.
typedef void(* pUART_CallbackTypeDef) (UART_HandleTypeDef *huart) |
HAL UART Callback pointer definition.
pointer to an UART callback function
Definition at line 239 of file stm32f4xx_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 240 of file stm32f4xx_hal_uart.h.
HAL UART Callback ID enumeration definition.
Definition at line 219 of file stm32f4xx_hal_uart.h.
HAL UART State structures definition.
Definition at line 116 of file stm32f4xx_hal_uart.h.