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.
- Usart
Config - Configuration for Usart. Can be used with default::Default.
Enums§
- Irda
Mode - Over
Sampling - Set Oversampling16 or Oversampling8 modes.
- Parity
- Parity control enable/disable, and even/odd selection (USART_CR1, PCE and PS)
- Stop
Bits - The number of stop bits. (USART_CR2, STOP)
- Uart
Error - Serial error
- Usart
Interrupt - The type of USART interrupt to configure. Reference the USART_ISR register.
- WordLen
- The length of word to transmit and receive. (USART_CR1, M)