Trait embedded_hal_async::spi::SpiBusWrite
source · [−]pub trait SpiBusWrite<Word: 'static + Copy = u8>: SpiBusFlush {
type WriteFuture<'a>: Future<Output = Result<(), Self::Error>>
where
Self: 'a;
fn write<'a>(&'a mut self, words: &'a [Word]) -> Self::WriteFuture<'a>;
}
Expand description
Write-only SPI
Required Associated Types
Required Methods
fn write<'a>(&'a mut self, words: &'a [Word]) -> Self::WriteFuture<'a>
fn write<'a>(&'a mut self, words: &'a [Word]) -> Self::WriteFuture<'a>
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::blocking for details on flushing.