Trait e310x_hal::spi::WriteIter

source ·
pub trait WriteIter<W> {
    type Error;

    // Required method
    fn write_iter<WI>(&mut self, words: WI) -> Result<(), Self::Error>
       where WI: IntoIterator<Item = W>;
}
Expand description

Blocking write (iterator version)

Required Associated Types§

source

type Error

Error type

Required Methods§

source

fn write_iter<WI>(&mut self, words: WI) -> Result<(), Self::Error>where WI: IntoIterator<Item = W>,

Sends words to the slave, ignoring all the incoming words

Implementors§

source§

impl<SPI, PINS> WriteIter<u8> for SpiExclusiveDevice<SPI, PINS>where SPI: SpiX, PINS: Pins<SPI>,

source§

impl<SPI, PINS, CS> WriteIter<u8> for SpiSharedDevice<'_, SPI, PINS, CS>where SPI: SpiX, PINS: Pins<SPI>, CS: PinCS<SPI>,

source§

impl<W, S> WriteIter<W> for Swhere S: Default<W>, W: Clone,

§

type Error = <S as FullDuplex<W>>::Error