Skip to main content

_embedded_hal_blocking_spi_Transfer

Trait _embedded_hal_blocking_spi_Transfer 

Source
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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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

Source§

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