embedded_hal::blocking::i2c

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§