pub fn i2c_master<F: Into<Hertz>>(
        self,
        clocks: &mut GenericClockController,
        bus_speed: F,
        sercom: SERCOM2,
        mclk: &mut MCLK,
        port: &mut Port,
    ) -> I2CMaster2<
        hal::sercom::Sercom2Pad0<Pa12<gpio::PfC>>,
        hal::sercom::Sercom2Pad1<Pa13<gpio::PfC>>,
    > {
        let gclk0 = clocks.gclk0();
        I2CMaster2::new(
            &clocks.sercom2_core(&gclk0).unwrap(),
            bus_speed.into(),
            sercom,
            mclk,
            self.sda.into_pad(port),
            self.scl.into_pad(port),
        )
    }
/// Configure accelerometer's SDA and SCL pins as an I2C master"
Configure accelerometer's SDA and SCL pins as an I2C master"
Configure accelerometer ' s SDA and SCL pins as an I2C master "
pub fn i2c_master<F: Into<Hertz>>(
        self,
        clocks: &mut GenericClockController,
        bus_speed: F,
        sercom: SERCOM2,
        mclk: &mut MCLK,
        port: &mut Port,
    ) -> I2CMaster2<
        hal::sercom::Sercom2Pad0<Pa12<gpio::PfC>>,
        hal::sercom::Sercom2Pad1<Pa13<gpio::PfC>>,
    > {
        let gclk0 = clocks.gclk0();
        I2CMaster2::new(
            &clocks.sercom2_core(&gclk0).unwrap(),
            bus_speed.into(),
            sercom,
            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 , sercom : SERCOM2 , mclk : & mut MCLK , port : & mut Port , ) -> I2CMaster2 < hal :: sercom :: Sercom2Pad0 < Pa12 < gpio :: PfC > > , hal :: sercom :: Sercom2Pad1 < Pa13 < gpio :: PfC > > , > { let gclk0 = clocks . gclk0 ( ) ; I2CMaster2 :: new ( & clocks . sercom2_core ( & gclk0 ) . unwrap ( ) , bus_speed . into ( ) , sercom , mclk , self . sda . into_pad ( port ) , self . scl . into_pad ( port ) , ) }
Configure accelerometer's SDA and SCL pins as an I2C master"
Configure accelerometer ' s SDA and SCL pins as an I2C master "
self
clocks
&mut GenericClockController
bus_speed
F
sercom
SERCOM2
mclk
&mut MCLK
port
&mut Port
self
clocks
&mut GenericClockController
bus_speed
F
sercom
SERCOM2
mclk
&mut MCLK
port
&mut Port