pub trait _embedded_hal_blocking_spi_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§

source

type Error

Error type

Required Methods§

source

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<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,

Implement Transfer for Spi structs that can Receive

The transfer accepts a slice of primitive integers, depending on the CharSize (u8 or u16).

§

type Error = Error

source§

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,

Implement Transfer for Spi structs that can Receive

The transfer accepts a slice of primitive integers, depending on the CharSize (u8 or u16).

§

type Error = Error

source§

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

§

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