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
Half
A completed half.
InterruptHandler
SPI error interrupt handler.
SlaveConfig
Slave configuration. The clock comes from the master.
Spi
SPI driver.
SpiSlaveRing
SPI slave with RX and TX on circular DMA (see the module docs).

Enums§

BitOrder
Error
SPI Error
SlaveError
Slave streaming errors. After any of them, SpiSlaveRing::restart.

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.