[][src]Function pygamer::i2c_master

pub fn i2c_master<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    bus_speed: F,
    sercom2: SERCOM2,
    mclk: &mut MCLK,
    sda: Pa12<Input<Floating>>,
    scl: Pa13<Input<Floating>>,
    port: &mut Port
) -> I2CMaster2<Sercom2Pad0<Pa12<PfC>>, Sercom2Pad1<Pa13<PfC>>>

Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.