I2cExt

Trait I2cExt 

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

Required Methods§

Source

fn i2c( self, pins: (impl RInto<Self::Scl, 0>, impl RInto<Self::Sda, 0>), mode: impl Into<Mode>, rcc: &mut Rcc, ) -> 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