Module usart

Source
Expand description

This module allows for serial communication using the STM32 U[S]ART peripheral It provides APIs to configure, read, and write from U[S]ART, with blocking, nonblocking, and DMA functionality.

Structs§

Usart
Represents the USART peripheral, for serial communications.
UsartConfig
Configuration for Usart. Can be used with default::Default.

Enums§

IrdaMode
OverSampling
Set Oversampling16 or Oversampling8 modes.
Parity
Parity control enable/disable, and even/odd selection (USART_CR1, PCE and PS)
StopBits
The number of stop bits. (USART_CR2, STOP)
UartError
Serial error
UsartInterrupt
The type of USART interrupt to configure. Reference the USART_ISR register.
WordLen
The length of word to transmit and receive. (USART_CR1, M)