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.
- Interrupt
Handler - SPI error interrupt handler.
- Slave
Config - Slave configuration. The clock comes from the master.
- Spi
- SPI driver.
- SpiSlave
Ring - SPI slave with RX and TX on circular DMA (see the module docs).
Enums§
- BitOrder
- Error
- SPI Error
- Slave
Error - Slave streaming errors. After any of them,
SpiSlaveRing::restart.