[−][src]Trait esp32_hal::prelude::_embedded_hal_blocking_spi_Transfer
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<INSTANCE: Instance, SCLK: OutputPin, SDO: OutputPin, SDI: InputPin + OutputPin, CS: OutputPin> Transfer<u8> for SPI<INSTANCE, SCLK, SDO, SDI, CS>
[src]
type Error = Error
fn transfer<'w>(&mut self, words: &'w mut [u8]) -> Result<&'w [u8], Self::Error>
[src]
impl<INSTANCE: Instance, SCLK: OutputPin, SDO: OutputPin, SDI: InputPin + OutputPin, CS: OutputPin> Transfer<u16> for SPI<INSTANCE, SCLK, SDO, SDI, CS>
[src]
type Error = Error
fn transfer<'w>(
&mut self,
words: &'w mut [u16]
) -> Result<&'w [u16], Self::Error>
[src]
&mut self,
words: &'w mut [u16]
) -> Result<&'w [u16], Self::Error>
impl<INSTANCE: Instance, SCLK: OutputPin, SDO: OutputPin, SDI: InputPin + OutputPin, CS: OutputPin> Transfer<u32> for SPI<INSTANCE, SCLK, SDO, SDI, CS>
[src]
type Error = Error
fn transfer<'w>(
&mut self,
words: &'w mut [u32]
) -> Result<&'w [u32], Self::Error>
[src]
&mut self,
words: &'w mut [u32]
) -> Result<&'w [u32], Self::Error>
impl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone,
[src]
S: Default<W>,
W: Clone,
type Error = <S as FullDuplex<W>>::Error
fn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
[src]
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>