Trait i2c::ReadWrite [] [src]

pub trait ReadWrite: Master {
    fn i2c_read(&mut self, value: &mut [u8]) -> Result<usize, Self::Error>;
fn i2c_write(&mut self, value: &[u8]) -> Result<(), Self::Error>; }

An I2C master that can communicate using the standard Read/Write traits.

The i2c_read/i2c_write methods are only provided to expose the original error type, and should otherwise be identical to read/write.

Required Methods

Initiate an isolated read transfer on the I2C bus, followed by a STOP.

Initiate an isolated write transfer on the I2C bus, followed by a STOP.

Implementors