Skip to main content

Module spi

Module spi 

Source
Expand description

Serial Peripheral Interface (SPI) abstraction layer.

  • SpiBus wraps a configured HAL SPI instance with 8-bit words.
  • ChipSelect is an active-low GPIO output wrappr for manual CS control.

Structs§

ChipSelect
Manual chip-select line, active-low, generic over any GPIO pin.
NoChipSelect
Stub chip-select for when no SPI connection is used. Panics if select() or deselect() is ever called.
SpiBus
Wrapper around an enabled HAL SPI instance (8-bit words).

Traits§

CsControl
Trait for chip-select control, allowing real pins or a no-op stub.