pub fn i2c_master<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    bus_speed: F,
    sercom7: pac::SERCOM7,
    mclk: &mut pac::MCLK,
    sda: gpio::Pc12<Input<Floating>>,
    scl: gpio::Pd9<Input<Floating>>,
    port: &mut Port,
) -> I2CMaster7<
    hal::sercom::Sercom7Pad0<gpio::Pc12<gpio::PfC>>,
    hal::sercom::Sercom7Pad1<gpio::Pd9<gpio::PfC>>,
> {
    let gclk0 = clocks.gclk0();
    I2CMaster7::new(
        &clocks.sercom7_core(&gclk0).unwrap(),
        bus_speed.into(),
        sercom7,
        mclk,
        sda.into_pad(port),
        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>>(
    clocks: &mut GenericClockController,
    bus_speed: F,
    sercom7: pac::SERCOM7,
    mclk: &mut pac::MCLK,
    sda: gpio::Pc12<Input<Floating>>,
    scl: gpio::Pd9<Input<Floating>>,
    port: &mut Port,
) -> I2CMaster7<
    hal::sercom::Sercom7Pad0<gpio::Pc12<gpio::PfC>>,
    hal::sercom::Sercom7Pad1<gpio::Pd9<gpio::PfC>>,
> {
    let gclk0 = clocks.gclk0();
    I2CMaster7::new(
        &clocks.sercom7_core(&gclk0).unwrap(),
        bus_speed.into(),
        sercom7,
        mclk,
        sda.into_pad(port),
        scl.into_pad(port),
    )
}
pub fn i2c_master < F : Into < Hertz > > ( clocks : & mut GenericClockController , bus_speed : F , sercom7 : pac :: SERCOM7 , mclk : & mut pac :: MCLK , sda : gpio :: Pc12 < Input < Floating > > , scl : gpio :: Pd9 < Input < Floating > > , port : & mut Port , ) -> I2CMaster7 < hal :: sercom :: Sercom7Pad0 < gpio :: Pc12 < gpio :: PfC > > , hal :: sercom :: Sercom7Pad1 < gpio :: Pd9 < gpio :: PfC > > , > { let gclk0 = clocks . gclk0 ( ) ; I2CMaster7 :: new ( & clocks . sercom7_core ( & gclk0 ) . unwrap ( ) , bus_speed . into ( ) , sercom7 , mclk , sda . into_pad ( port ) , 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 .
clocks
&mut GenericClockController
bus_speed
F
sercom7
pac::SERCOM7
mclk
&mut pac::MCLK
sda
gpio::Pc12<Input<Floating>>
scl
gpio::Pd9<Input<Floating>>
port
&mut Port
clocks
&mut GenericClockController
bus_speed
F
sercom7
pac::SERCOM7
mclk
&mut pac::MCLK
sda
gpio::Pc12<Input<Floating>>
scl
gpio::Pd9<Input<Floating>>
port
&mut Port