Skip to main content

Module slave

Module slave 

Source
Available on crate feature unstable only.
Expand description

§Serial Peripheral Interface - Slave Mode

§Overview

In this mode, the SPI acts as slave and transfers data with its master when its CS is asserted.

§Configuration

The SPI slave driver allows using full-duplex and can only be used with DMA.

§Implementation State

This driver is currently unstable.

There are several options for working with the SPI peripheral in slave mode, but the code currently only supports: - Single transfers (not segmented transfers) - Full duplex, single bit (not dual or quad SPI) - DMA mode (not CPU mode). It also does not support blocking operations, as the actual transfer is controlled by the SPI master; if these are necessary, then the SpiDmaTransfer object can be wait()ed on or polled for is_done().

See tracking issue for more information.

Structs§

AnySpi
Any SPI peripheral.
Spi
SPI peripheral driver.

Traits§

Instance
A peripheral singleton compatible with the SPI slave driver.