pub trait Transfer<W> {
    type Error;

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

Blocking transfer

Required Associated Types

Error type

Required Methods

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

Implementors

impl<P, M, A> Transfer<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, A>where
    Config<P, M, EightBit>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    A: Receive,

impl<P, M, A> Transfer<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, A>where
    Config<P, M, NineBit>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    A: Receive,