Trait I2cReadExt

Source
pub trait I2cReadExt: I2cRead {
    // Provided method
    fn begin_read(&mut self, address: u8) -> BeginRead<'_, Self> 
       where Self: Unpin { ... }
}
Expand description

Extension functions for instances of I2cRead.

Provided Methods§

Source

fn begin_read(&mut self, address: u8) -> BeginRead<'_, Self>
where Self: Unpin,

Initiates a read operation on the specified address.

The returned object can be used to read the actual data from the address. The user must read the data until completion, or else it might leave this I²C peripheral in an incomplete state.

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§

Source§

impl<'r, A> I2cReadExt for A
where A: I2cRead,