Trait kernel::hil::i2c::I2CClient

source ·
pub trait I2CClient {
    // Required method
    fn command_complete(
        &self,
        buffer: &'static mut [u8],
        status: Result<(), Error>
    );
}
Expand description

Client interface for I2CDevice implementations.

Required Methods§

source

fn command_complete(&self, buffer: &'static mut [u8], status: Result<(), Error>)

Called when an I2C command completed. The error denotes whether the command completed successfully or if an error occured.

Implementors§