Module usart

Source
Expand description

§USART Driver

Provides a hardware abstraction layer for Universal Synchronous/Asynchronous Receiver/Transmitter (USART) communication on STM32 microcontrollers.

This module defines the USART trait and supporting types for serial communication including UART, synchronous modes, and modem control across different STM32 families.

Modules§

stm32f103
stm32f401
stm32f407
stm32f411

Structs§

Config
Holds the configuration for a USART peripheral.
Event
Represents USART communication events.
ModemStatus
Represents the status of the modem signals.
Status
Represents the status of the USART peripheral.

Enums§

ClockPhase
Defines the clock phase for synchronous modes.
ClockPolarity
Defines the clock polarity for synchronous modes.
DataBits
Defines the number of data bits in a frame.
FlowControl
Defines the flow control type.
Mode
Defines the possible modes for USART communication.
ModemControl
Defines the modem control lines.
Parity
Defines the parity generation and checking.
StopBits
Defines the number of stop bits.

Traits§

Usart
A trait that defines a standard interface for a USART driver.

Type Aliases§

Error
A generic error type for the USART driver, using i32 for error codes.
Result
A specialized Result type for USART operations.