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<'d, T, TX, RX, P, M> Transfer<u8> for SpiDma<'d, T, TX, RX, P, M>where T: InstanceDma<TX, RX>, TX: Tx, RX: Rx, P: SpiPeripheral, M: IsFullDuplex,

§

type Error = Error

source§

impl<T, M> Transfer<u8> for Spi<'_, T, M>where T: Instance, M: IsFullDuplex,

§

type Error = Error

source§

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

§

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