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) -> Result<(), Error>;
    fn write_receive(
        &self,
        data: &'static mut [u8],
        max_len: u8
    ) -> Result<(), (Error, &'static mut [u8])>; fn read_send(
        &self,
        data: &'static mut [u8],
        max_len: u8
    ) -> Result<(), (Error, &'static mut [u8])>; fn listen(&self); }
Expand description

Interface for an I2C Slave hardware driver.

Required Methods

Implementors