pub trait Transfer<W> {
    type Error;

    // Required method
    fn transfer<'w>(
        &mut self,
        words: &'w mut [W]
    ) -> Result<&'w [W], Self::Error>;
}
Expand description

Blocking transfer

Required Associated Types§

type Error

Error type

Required Methods§

fn transfer<'w>(&mut self, words: &'w mut [W]) -> Result<&'w [W], Self::Error>

Sends words to the slave. Returns the words received from the slave

Implementors§

source§

impl<SPI: SpiRegs, SCK: SpiSck, MISO: SpiMiso, MOSI: SpiMosi> Transfer<u8> for Spi<SPI, SCK, MISO, MOSI>

§

type Error = Error

source§

impl<SPI: SpiRegs, SCK: SpiSck, MISO: SpiMiso, MOSI: SpiMosi, MISODMA: DmaCh, MOSIDMA: DmaCh> Transfer<u8> for Spi<SPI, SCK, (MISO, MISODMA), (MOSI, MOSIDMA)>

§

type Error = Error

§

impl<W, S> Transfer<W> for Swhere S: Default<W>, W: Clone,

§

type Error = <S as FullDuplex<W>>::Error