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

pub trait I2CSlave {
    fn set_slave_client(&self, slave_client: &'static dyn I2CHwSlaveClient);
fn enable(&self);
fn disable(&self);
fn set_address(&self, addr: u8);
fn write_receive(&self, data: &'static mut [u8], max_len: u8);
fn read_send(&self, data: &'static mut [u8], max_len: u8);
fn listen(&self); }

Interface for an I2C Slave hardware driver.

Required methods

fn set_slave_client(&self, slave_client: &'static dyn I2CHwSlaveClient)

fn enable(&self)

fn disable(&self)

fn set_address(&self, addr: u8)

fn write_receive(&self, data: &'static mut [u8], max_len: u8)

fn read_send(&self, data: &'static mut [u8], max_len: u8)

fn listen(&self)

Loading content...

Implementors

Loading content...