I2cExt

Trait I2cExt 

Source
pub trait I2cExt<I2C> {
    // Required method
    fn i2c<SDA, SCL>(
        self,
        sda: SDA,
        scl: SCL,
        config: impl Into<Config>,
        rcc: &mut Rcc,
    ) -> I2c<I2C, SDA, SCL>
       where SDA: SDAPin<I2C>,
             SCL: SCLPin<I2C>;
}

Required Methods§

Source

fn i2c<SDA, SCL>( self, sda: SDA, scl: SCL, config: impl Into<Config>, rcc: &mut Rcc, ) -> I2c<I2C, SDA, SCL>
where SDA: SDAPin<I2C>, SCL: SCLPin<I2C>,

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§