pub fn init(
        self,
        clocks: &mut GenericClockController,
        freq: impl Into<Hertz>,
        sercom1: pac::SERCOM1,
        pm: &mut pac::PM,
    ) -> I2CMaster1<I2cSda, I2cScl> {
        let gclk0 = clocks.gclk0();
        let clock = &clocks.sercom1_core(&gclk0).unwrap();
        I2CMaster1::new(
            clock,
            freq.into(),
            sercom1,
            pm,
            self.sda.into(),
            self.scl.into(),
        )
    }
/// Convenience function for creating an I2C host on the I2C pins.
Convenience function for creating an I2C host on the I2C pins.
Convenience function for creating an I2C host on the I2C pins .
pub fn init(
        self,
        clocks: &mut GenericClockController,
        freq: impl Into<Hertz>,
        sercom1: pac::SERCOM1,
        pm: &mut pac::PM,
    ) -> I2CMaster1<I2cSda, I2cScl> {
        let gclk0 = clocks.gclk0();
        let clock = &clocks.sercom1_core(&gclk0).unwrap();
        I2CMaster1::new(
            clock,
            freq.into(),
            sercom1,
            pm,
            self.sda.into(),
            self.scl.into(),
        )
    }
pub fn init ( self , clocks : & mut GenericClockController , freq : impl Into < Hertz > , sercom1 : pac :: SERCOM1 , pm : & mut pac :: PM , ) -> I2CMaster1 < I2cSda , I2cScl > { let gclk0 = clocks . gclk0 ( ) ; let clock = & clocks . sercom1_core ( & gclk0 ) . unwrap ( ) ; I2CMaster1 :: new ( clock , freq . into ( ) , sercom1 , pm , self . sda . into ( ) , self . scl . into ( ) , ) }
Convenience function for creating an I2C host on the I2C pins.
Convenience function for creating an I2C host on the I2C pins .
self
clocks
&mut GenericClockController
freq
impl Into<Hertz>
sercom1
pac::SERCOM1
pm
&mut pac::PM
self
clocks
&mut GenericClockController
freq
impl Into<Hertz>
sercom1
pac::SERCOM1
pm
&mut pac::PM