Trait embedded_hal::blocking::i2c::WriteIter

source ·
pub trait WriteIter<A: AddressMode = SevenBitAddress> {
    type Error;

    // Required method
    fn write<B>(&mut self, address: A, bytes: B) -> Result<(), Self::Error>
       where B: IntoIterator<Item = u8>;
}
Expand description

Blocking write (iterator version)

Required Associated Types§

source

type Error

Error type

Required Methods§

source

fn write<B>(&mut self, address: A, bytes: B) -> Result<(), Self::Error>
where B: IntoIterator<Item = u8>,

Writes bytes to slave with address address

§I2C Events (contract)

Same as Write

Object Safety§

This trait is not object safe.

Implementors§