Skip to main content

I2CHwMasterClient

Trait I2CHwMasterClient 

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

Client interface for capsules that use I2CMaster devices.

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 occurred.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§