STM32F439xx HAL User Manual
Data Fields
USART_InitTypeDef Struct Reference

USART Init Structure definition. More...

#include <stm32f4xx_hal_usart.h>

Data Fields

uint32_t BaudRate
uint32_t WordLength
uint32_t StopBits
uint32_t Parity
uint32_t Mode
uint32_t CLKPolarity
uint32_t CLKPhase
uint32_t CLKLastBit

Detailed Description

USART Init Structure definition.

Definition at line 63 of file stm32f4xx_hal_usart.h.


Field Documentation

This member configures the Usart communication baud rate. The baud rate is computed using the following formula:

  • IntegerDivider = ((PCLKx) / (8 * (husart->Init.BaudRate)))
  • FractionalDivider = ((IntegerDivider - ((uint32_t) IntegerDivider)) * 8) + 0.5

Definition at line 65 of file stm32f4xx_hal_usart.h.

Referenced by USART_SetConfig().

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

Definition at line 92 of file stm32f4xx_hal_usart.h.

Referenced by USART_SetConfig().

Specifies the clock transition on which the bit capture is made. This parameter can be a value of USART Clock Phase

Definition at line 89 of file stm32f4xx_hal_usart.h.

Referenced by USART_SetConfig().

Specifies the steady state of the serial clock. This parameter can be a value of USART Clock Polarity

Definition at line 86 of file stm32f4xx_hal_usart.h.

Referenced by USART_SetConfig().

Specifies whether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of USART Mode

Definition at line 83 of file stm32f4xx_hal_usart.h.

Referenced by USART_SetConfig().

Specifies the parity mode. This parameter can be a value of USART Parity

Note:
When parity is enabled, the computed parity is inserted at the MSB position of the transmitted data (9th bit when the word length is set to 9 data bits; 8th bit when the word length is set to 8 data bits).

Definition at line 76 of file stm32f4xx_hal_usart.h.

Referenced by HAL_USART_Receive(), HAL_USART_Transmit(), HAL_USART_TransmitReceive(), USART_Receive_IT(), USART_SetConfig(), USART_Transmit_IT(), and USART_TransmitReceive_IT().

Specifies the number of stop bits transmitted. This parameter can be a value of USART Number of Stop Bits

Definition at line 73 of file stm32f4xx_hal_usart.h.

Referenced by USART_SetConfig().

Specifies the number of data bits transmitted or received in a frame. This parameter can be a value of USART Word Length

Definition at line 70 of file stm32f4xx_hal_usart.h.

Referenced by HAL_USART_Receive(), HAL_USART_Transmit(), HAL_USART_TransmitReceive(), USART_Receive_IT(), USART_SetConfig(), USART_Transmit_IT(), and USART_TransmitReceive_IT().


The documentation for this struct was generated from the following file: