pub trait I2cExt<I2C, ISCL, ISDA, SCL, SDA> {
    fn i2c<F>(
        self,
        pins: (ISCL, ISDA),
        freq: F,
        clocks: Clocks
    ) -> I2c<I2C, (SCL, SDA)>
    where
        F: Into<Hertz<u32>>
; }
Expand description

I2c extension for I2C

Required Methods

Configures the I2c peripheral to work in master mode Consumes I2c peripheral and pair of (SCL, SDA) pins. Returns I2c.

Implementors