pub fn i2c_master<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    bus_speed: F,
    sercom0: pac::SERCOM0,
    pm: &mut pac::PM,
    sda: Sda,
    scl: Scl,
) -> I2C {
    let gclk0 = clocks.gclk0();
    let clock = &clocks.sercom0_core(&gclk0).unwrap();
    I2CMaster0::new(clock, bus_speed.into(), sercom0, pm, sda, scl)
}
/// 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>>(
    clocks: &mut GenericClockController,
    bus_speed: F,
    sercom0: pac::SERCOM0,
    pm: &mut pac::PM,
    sda: Sda,
    scl: Scl,
) -> I2C {
    let gclk0 = clocks.gclk0();
    let clock = &clocks.sercom0_core(&gclk0).unwrap();
    I2CMaster0::new(clock, bus_speed.into(), sercom0, pm, sda, scl)
}
pub fn i2c_master < F : Into < Hertz > > ( clocks : & mut GenericClockController , bus_speed : F , sercom0 : pac :: SERCOM0 , pm : & mut pac :: PM , sda : Sda , scl : Scl , ) -> I2C { let gclk0 = clocks . gclk0 ( ) ; let clock = & clocks . sercom0_core ( & gclk0 ) . unwrap ( ) ; I2CMaster0 :: new ( clock , bus_speed . into ( ) , sercom0 , pm , sda , scl ) }
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 .
clocks
&mut GenericClockController
bus_speed
F
sercom0
pac::SERCOM0
pm
&mut pac::PM
sda
Sda
scl
Scl
clocks
&mut GenericClockController
bus_speed
F
sercom0
pac::SERCOM0
pm
&mut pac::PM
sda
Sda
scl
Scl