pub trait SpiBusRead<Word: 'static + Copy = u8>: SpiBusFlush {
    // Required method
    async fn read(&mut self, words: &mut [Word]) -> Result<(), Self::Error>;
}
Expand description

Read-only SPI bus

Required Methods§

source

async fn read(&mut self, words: &mut [Word]) -> Result<(), Self::Error>

Read words from the slave.

The word value sent on MOSI during reading is implementation-defined, typically 0x00, 0xFF, or configurable.

Implementations are allowed to return before the operation is complete. See (the docs on embedded-hal)embedded_hal::spi for details on flushing.

Implementations on Foreign Types§

source§

impl<T: SpiBusRead<Word>, Word: 'static + Copy> SpiBusRead<Word> for &mut T

source§

async fn read(&mut self, words: &mut [Word]) -> Result<(), Self::Error>

Implementors§