Trait embedded_hal::spi::blocking::TransferInplace
source · [−]pub trait TransferInplace<Word: Copy = u8>: ErrorType {
fn transfer_inplace(
&mut self,
words: &mut [Word]
) -> Result<(), Self::Error>;
}
Expand description
Blocking transfer with single buffer (in-place)
Required methods
fn transfer_inplace(&mut self, words: &mut [Word]) -> Result<(), Self::Error>
fn transfer_inplace(&mut self, words: &mut [Word]) -> Result<(), Self::Error>
Writes and reads simultaneously. The contents of words
are
written to the slave, and the received words are stored into the same
words
buffer, overwriting it.