Module spi

Source
Expand description

§SPI Driver

Provides a hardware abstraction layer for Serial Peripheral Interface (SPI) communication on STM32 microcontrollers.

This module defines the SPI trait and supporting types for configuring master/slave modes, frame formats, and data transfer operations across different STM32 families.

Modules§

stm32f103
stm32f401
stm32f407
stm32f411

Structs§

Config
Holds the configuration for a SPI peripheral.
Event
Represents SPI communication events.
Status
Represents the status of the SPI peripheral.

Enums§

BitOrder
Defines the bit order for data transfers.
FrameFormat
Defines the SPI frame format.
Mode
Defines the operational mode of the SPI peripheral.
SlaveSelectMode
Defines the slave select mode.

Traits§

Spi
A trait that defines a standard interface for a SPI driver.

Type Aliases§

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