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

Write-only SPI

Required Methods§

source

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

Write words to the slave, ignoring all the incoming words

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: SpiBusWrite<Word>, Word: 'static + Copy> SpiBusWrite<Word> for &mut T

source§

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

Implementors§