esp_hal::i2c::master

Trait Instance

Source
pub trait Instance:
    Peripheral<P = Self>
    + Into<AnyI2c>
    + 'static {
    // Required method
    fn parts(&self) -> (&Info, &State);

    // Provided methods
    fn info(&self) -> &Info { ... }
    fn state(&self) -> &State { ... }
}
Expand description

I2C Peripheral Instance

Required Methods§

Source

fn parts(&self) -> (&Info, &State)

Returns the peripheral data and state describing this instance.

Provided Methods§

Source

fn info(&self) -> &Info

Returns the peripheral data describing this instance.

Source

fn state(&self) -> &State

Returns the peripheral state for this instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§