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<<UInt<UTerm, B1> as Length>::Word> for Spi<Config<P, M, U1>, A>where
    Config<P, M, U1>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    A: Receive,

impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B0> as Length>::Word> for Spi<Config<P, M, U2>, A>where
    Config<P, M, U2>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    A: Receive,

impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B1> as Length>::Word> for Spi<Config<P, M, U3>, A>where
    Config<P, M, U3>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    A: Receive,

impl<P, M, A> Transfer<<UInt<UInt<UInt<UTerm, B1>, B0>, B0> as Length>::Word> for Spi<Config<P, M, U4>, A>where
    Config<P, M, U4>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    A: Receive,

impl<P, M, L, A> Transfer<u8> for Spi<Config<P, M, L>, A>where
    Config<P, M, L>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    L: GreaterThan4,
    A: Receive,

impl<P, M, A> Transfer<u8> for Spi<Config<P, M, DynLength>, A>where
    Config<P, M, DynLength>: ValidConfig,
    P: ValidPads,
    M: OpMode,
    A: Receive,