HAL
USART_InitTypeDef is only used within HAL.
 
Symbols
loading...
Files
loading...

USART_InitTypeDef struct

USART Init Structure definition

Syntax

typedef struct {   uint32_t BaudRate;                     uint32_t WordLength;                   uint32_t StopBits;                     uint32_t Parity;                       uint32_t Mode;                         uint32_t CLKPolarity;                  uint32_t CLKPhase;                     uint32_t CLKLastBit;                 } USART_InitTypeDef;

Fields

BaudRate

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. Read more...

WordLength

Specifies the number of data bits transmitted or received in a frame. This parameter can be a value of USART_Word_Length. Read more...

StopBits

Specifies the number of stop bits transmitted. This parameter can be a value of USART_Stop_Bits. Read more...

Parity

Specifies the parity mode. This parameter can be a value of USART_Parity. Read more...

Mode

Specifies whether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of USART_Mode. Read more...

CLKPolarity

Specifies the steady state of the serial clock. This parameter can be a value of USART_Clock_Polarity. Read more...

CLKPhase

Specifies the clock transition on which the bit capture is made. This parameter can be a value of USART_Clock_Phase. Read more...

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. Read more...

Type Use

Variables of USART_InitTypeDef type
all items filtered out
USART_InitTypeDef
all items filtered out
USART_InitTypeDef
all items filtered out