Trait I2cExt

Source
pub trait I2cExt: Sized + Instance {
    // Required method
    fn i2c(
        self,
        pins: (impl Into<Self::Scl>, impl Into<Self::Sda>),
        mode: impl Into<Mode>,
        clocks: &Clocks,
    ) -> I2c<Self>;
}

Required Methods§

Source

fn i2c( self, pins: (impl Into<Self::Scl>, impl Into<Self::Sda>), mode: impl Into<Mode>, clocks: &Clocks, ) -> I2c<Self>

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§

Source§

impl<I2C: Instance> I2cExt for I2C