Module stm32_hal2::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§
- Represents the USART peripheral, for serial communications.
- Configuration for Usart. Can be used with default::Default.
Enums§
- Set Oversampling16 or Oversampling8 modes.
- Parity control enable/disable, and even/odd selection (USART_CR1, PCE and PS)
- The number of stop bits. (USART_CR2, STOP)
- Serial error
- The type of USART interrupt to configure. Reference the USART_ISR register.
- The length of word to transmit and receive. (USART_CR1, M)