Trait microbit::hal::prelude::_embedded_hal_blocking_spi_Transfer[]

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

Blocking transfer

Associated Types

type Error

Error type

Required methods

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

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

Implementors

impl<T> Transfer<u8> for Spim<T> where
    T: Instance
[src]

type Error = Error

pub fn transfer(&mut self, words: &'w mut [u8]) -> Result<&'w [u8], Error>[src]

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

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

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