Skip to main content

Module spi

Module spi 

Source
Expand description

SPI, Serial Peripheral Interface

Capabilities:

Master-mode transfers with software NSS and caller-managed chip select. Supports 8/16-bit words, all four clock modes, blocking and DMA transfers, and MSB/LSB first (MSB first only on CH32V003). The maximum serial clock is half the peripheral bus clock.

Structs§

Config
InterruptHandler
SPI error interrupt handler.
Spi
SPI driver.

Enums§

BitOrder
Error
SPI Error

Traits§

CkPin
CsPin
Instance
SPI instance trait.
MckPin
MisoPin
MosiPin
RxDma
RxDma DMA request trait
SckPin
TxDma
TxDma DMA request trait
Word
Word sizes usable for SPI.