pub fn i2c_master<F: Into<Hertz>>(
        self,
        clocks: &mut GenericClockController,
        bus_speed: F,
        sercom4: SERCOM4,
        mclk: &mut MCLK,
        port: &mut Port,
    ) -> I2CMaster4<Sercom4Pad0<Pb8<PfD>>, Sercom4Pad1<Pb9<PfD>>> {
        let gclk0 = clocks.gclk0();
        I2CMaster4::new(
            &clocks.sercom4_core(&gclk0).unwrap(),
            bus_speed.into(),
            sercom4,
            mclk,
            self.sda.into_pad(port),
            self.scl.into_pad(port),
        )
    }
/// Convenience for setting up the labelled SDA, SCL pins to
/// operate as an I2C master running at the specified frequency.
Convenience for setting up the labelled SDA, SCL pins to
operate as an I2C master running at the specified frequency.
Convenience for setting up the labelled SDA SCL pins to operate as an I2C master running at the specified frequency .
pub fn i2c_master<F: Into<Hertz>>(
        self,
        clocks: &mut GenericClockController,
        bus_speed: F,
        sercom4: SERCOM4,
        mclk: &mut MCLK,
        port: &mut Port,
    ) -> I2CMaster4<Sercom4Pad0<Pb8<PfD>>, Sercom4Pad1<Pb9<PfD>>> {
        let gclk0 = clocks.gclk0();
        I2CMaster4::new(
            &clocks.sercom4_core(&gclk0).unwrap(),
            bus_speed.into(),
            sercom4,
            mclk,
            self.sda.into_pad(port),
            self.scl.into_pad(port),
        )
    }
pub fn i2c_master < F : Into < Hertz > > ( self , clocks : & mut GenericClockController , bus_speed : F , sercom4 : SERCOM4 , mclk : & mut MCLK , port : & mut Port , ) -> I2CMaster4 < Sercom4Pad0 < Pb8 < PfD > > , Sercom4Pad1 < Pb9 < PfD > > > { let gclk0 = clocks . gclk0 ( ) ; I2CMaster4 :: new ( & clocks . sercom4_core ( & gclk0 ) . unwrap ( ) , bus_speed . into ( ) , sercom4 , mclk , self . sda . into_pad ( port ) , self . scl . into_pad ( port ) , ) }
Convenience for setting up the labelled SDA, SCL pins to
operate as an I2C master running at the specified frequency.
Convenience for setting up the labelled SDA SCL pins to operate as an I2C master running at the specified frequency .
self
clocks
&mut GenericClockController
bus_speed
F
sercom4
SERCOM4
mclk
&mut MCLK
port
&mut Port
self
clocks
&mut GenericClockController
bus_speed
F
sercom4
SERCOM4
mclk
&mut MCLK
port
&mut Port