|
STM32L4xx_HAL_Driver
1.14.0
|
Data Structures | |
| struct | USART_InitTypeDef |
| USART Init Structure definition. More... | |
| struct | __USART_HandleTypeDef |
| USART handle Structure definition. More... | |
Typedefs | |
| typedef struct __USART_HandleTypeDef | USART_HandleTypeDef |
| USART handle Structure definition. More... | |
| typedef void(* | pUSART_CallbackTypeDef) (USART_HandleTypeDef *husart) |
| HAL USART Callback pointer definition. More... | |
| struct USART_InitTypeDef |
USART Init Structure definition.
Definition at line 47 of file stm32l4xx_hal_usart.h.
| Data Fields | ||
|---|---|---|
| uint32_t | BaudRate |
This member configures the Usart communication baud rate. The baud rate is computed using the following formula: Baud Rate Register[15:4] = ((2 * fclk_pres) / ((huart->Init.BaudRate)))[15:4] Baud Rate Register[3] = 0 Baud Rate Register[2:0] = (((2 * fclk_pres) / ((huart->Init.BaudRate)))[3:0]) >> 1 where fclk_pres is the USART input clock frequency (fclk) (divided by a prescaler if applicable)
|
| uint32_t | CLKLastBit |
Specifies whether the clock pulse corresponding to the last transmitted data bit (MSB) has to be output on the SCLK pin in synchronous mode. This parameter can be a value of USART Last Bit. |
| uint32_t | CLKPhase |
Specifies the clock transition on which the bit capture is made. This parameter can be a value of USART Clock Phase. |
| uint32_t | CLKPolarity |
Specifies the steady state of the serial clock. This parameter can be a value of USART Clock Polarity. |
| uint32_t | ClockPrescaler |
Specifies the prescaler value used to divide the USART clock source. This parameter can be a value of USART Clock Prescaler. |
| uint32_t | Mode |
Specifies whether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of USART Mode. |
| uint32_t | Parity |
Specifies the parity mode. This parameter can be a value of USART Parity
|
| uint32_t | StopBits |
Specifies the number of stop bits transmitted. This parameter can be a value of USART 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 USARTEx Word Length. |
| struct __USART_HandleTypeDef |
USART handle Structure definition.
Definition at line 120 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::AbortCpltCallback) (struct __USART_HandleTypeDef *husart) |
USART Abort Complete Callback
Definition at line 177 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::ErrorCallback) (struct __USART_HandleTypeDef *husart) |
USART Error Callback
Definition at line 176 of file stm32l4xx_hal_usart.h.
| __IO uint32_t __USART_HandleTypeDef::ErrorCode |
USART Error code
Definition at line 168 of file stm32l4xx_hal_usart.h.
| uint32_t __USART_HandleTypeDef::FifoMode |
Specifies if the FIFO mode will be used. This parameter can be a value of USARTEx FIFO mode.
Definition at line 152 of file stm32l4xx_hal_usart.h.
| DMA_HandleTypeDef* __USART_HandleTypeDef::hdmarx |
USART Rx DMA Handle parameters
Definition at line 162 of file stm32l4xx_hal_usart.h.
| DMA_HandleTypeDef* __USART_HandleTypeDef::hdmatx |
USART Tx DMA Handle parameters
Definition at line 160 of file stm32l4xx_hal_usart.h.
| USART_InitTypeDef __USART_HandleTypeDef::Init |
USART communication parameters
Definition at line 124 of file stm32l4xx_hal_usart.h.
| USART_TypeDef* __USART_HandleTypeDef::Instance |
USART registers base address
Definition at line 122 of file stm32l4xx_hal_usart.h.
| HAL_LockTypeDef __USART_HandleTypeDef::Lock |
Locking object
Definition at line 164 of file stm32l4xx_hal_usart.h.
| uint16_t __USART_HandleTypeDef::Mask |
USART Rx RDR register mask
Definition at line 138 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::MspDeInitCallback) (struct __USART_HandleTypeDef *husart) |
USART Msp DeInit callback
Definition at line 184 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::MspInitCallback) (struct __USART_HandleTypeDef *husart) |
USART Msp Init callback
Definition at line 183 of file stm32l4xx_hal_usart.h.
| uint16_t __USART_HandleTypeDef::NbRxDataToProcess |
Number of data to process during RX ISR execution
Definition at line 141 of file stm32l4xx_hal_usart.h.
| uint16_t __USART_HandleTypeDef::NbTxDataToProcess |
Number of data to process during TX ISR execution
Definition at line 143 of file stm32l4xx_hal_usart.h.
| uint8_t* __USART_HandleTypeDef::pRxBuffPtr |
Pointer to USART Rx transfer Buffer
Definition at line 132 of file stm32l4xx_hal_usart.h.
| uint8_t* __USART_HandleTypeDef::pTxBuffPtr |
Pointer to USART Tx transfer Buffer
Definition at line 126 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::RxCpltCallback) (struct __USART_HandleTypeDef *husart) |
USART Rx Complete Callback
Definition at line 174 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::RxFifoFullCallback) (struct __USART_HandleTypeDef *husart) |
USART Rx Fifo Full Callback
Definition at line 179 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::RxHalfCpltCallback) (struct __USART_HandleTypeDef *husart) |
USART Rx Half Complete Callback
Definition at line 173 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::RxISR) (struct __USART_HandleTypeDef *husart) |
Function pointer on Rx IRQ handler
Definition at line 156 of file stm32l4xx_hal_usart.h.
| __IO uint16_t __USART_HandleTypeDef::RxXferCount |
USART Rx Transfer Counter
Definition at line 136 of file stm32l4xx_hal_usart.h.
| uint16_t __USART_HandleTypeDef::RxXferSize |
USART Rx Transfer size
Definition at line 134 of file stm32l4xx_hal_usart.h.
| uint32_t __USART_HandleTypeDef::SlaveMode |
Enable/Disable UART SPI Slave Mode. This parameter can be a value of USARTEx Synchronous Slave mode enable
Definition at line 147 of file stm32l4xx_hal_usart.h.
| __IO HAL_USART_StateTypeDef __USART_HandleTypeDef::State |
USART communication state
Definition at line 166 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::TxCpltCallback) (struct __USART_HandleTypeDef *husart) |
USART Tx Complete Callback
Definition at line 172 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::TxFifoEmptyCallback) (struct __USART_HandleTypeDef *husart) |
USART Tx Fifo Empty Callback
Definition at line 180 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::TxHalfCpltCallback) (struct __USART_HandleTypeDef *husart) |
USART Tx Half Complete Callback
Definition at line 171 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::TxISR) (struct __USART_HandleTypeDef *husart) |
Function pointer on Tx IRQ handler
Definition at line 158 of file stm32l4xx_hal_usart.h.
| void(* __USART_HandleTypeDef::TxRxCpltCallback) (struct __USART_HandleTypeDef *husart) |
USART Tx Rx Complete Callback
Definition at line 175 of file stm32l4xx_hal_usart.h.
| __IO uint16_t __USART_HandleTypeDef::TxXferCount |
USART Tx Transfer Counter
Definition at line 130 of file stm32l4xx_hal_usart.h.
| uint16_t __USART_HandleTypeDef::TxXferSize |
USART Tx Transfer size
Definition at line 128 of file stm32l4xx_hal_usart.h.
| typedef void(* pUSART_CallbackTypeDef) (USART_HandleTypeDef *husart) |
HAL USART Callback pointer definition.
pointer to an USART callback function
Definition at line 215 of file stm32l4xx_hal_usart.h.
| typedef struct __USART_HandleTypeDef USART_HandleTypeDef |
USART handle Structure definition.
HAL USART Callback ID enumeration definition.
Definition at line 193 of file stm32l4xx_hal_usart.h.
HAL USART State structures definition.
Definition at line 92 of file stm32l4xx_hal_usart.h.
USART clock sources definitions.
Definition at line 107 of file stm32l4xx_hal_usart.h.