[][src]Trait embedded_platform::i2c::I2cWriteExt

pub trait I2cWriteExt: I2cWrite {
    fn begin_write(&mut self, address: u8) -> BeginWrite<Self>
    where
        Self: Unpin
, { ... } }

Extension functions for instances of I2cWrite.

Provided methods

Important traits for BeginWrite<'_, A>
fn begin_write(&mut self, address: u8) -> BeginWrite<Self> where
    Self: Unpin

Initiates a write operation on the specified address.

The returned object can be used to write the actual data to the address. The user must call shutdown when done writing, or else it might leave this I²C peripheral in an incomplete state. For example, the I²C peripheral might decide to flush remaining data in the Drop implementation, which will be blocking.

Loading content...

Implementors

impl<A> I2cWriteExt for A where
    A: I2cWrite
[src]

Loading content...