pub trait SpiExt: Sized + Instance {
fn spi<SCK, MISO, MOSI>(
self,
pins: (SCK, MISO, MOSI),
mode: impl Into<Mode>,
freq: Hertz,
clocks: &Clocks
) -> Spi<Self, (SCK, MISO, MOSI), false, u8, Master>
where
(SCK, MISO, MOSI): Pins<Self>;
fn spi_bidi<SCK, MISO, MOSI>(
self,
pins: (SCK, MISO, MOSI),
mode: impl Into<Mode>,
freq: Hertz,
clocks: &Clocks
) -> Spi<Self, (SCK, MISO, MOSI), true, u8, Master>
where
(SCK, MISO, MOSI): Pins<Self>;
fn spi_slave<SCK, MISO, MOSI>(
self,
pins: (SCK, MISO, MOSI),
mode: impl Into<Mode>,
freq: Hertz,
clocks: &Clocks
) -> Spi<Self, (SCK, MISO, MOSI), false, u8, Slave>
where
(SCK, MISO, MOSI): Pins<Self>;
fn spi_bidi_slave<SCK, MISO, MOSI>(
self,
pins: (SCK, MISO, MOSI),
mode: impl Into<Mode>,
freq: Hertz,
clocks: &Clocks
) -> Spi<Self, (SCK, MISO, MOSI), true, u8, Slave>
where
(SCK, MISO, MOSI): Pins<Self>;
}