Trait kernel::hil::i2c::I2CDevice [] [src]

pub trait I2CDevice {
    fn enable(&self);
fn disable(&self);
fn write_read(&self, data: &'static mut [u8], write_len: u8, read_len: u8);
fn write(&self, data: &'static mut [u8], len: u8);
fn read(&self, buffer: &'static mut [u8], len: u8); }

Higher-level interface for I2C Master commands that wraps in the I2C address. It gives an interface for communicating with a specific I2C device.

Required Methods

Implementors