pub trait SpiExt<SPI, ISCK, IMISO, IMOSI, SCK, MISO, MOSI> {
    fn spi<F>(
        self,
        pins: (ISCK, IMISO, IMOSI),
        mode: Mode,
        freq: F,
        clocks: Clocks
    ) -> Spi<SPI, (SCK, MISO, MOSI)>
    where
        F: Into<Hertz<u32>>
; }
Expand description

SPI extension for SPI

Required Methods

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns Spi.

Implementors