Function trellis_m4::i2c_master
source ·
[−]pub fn i2c_master<F: Into<Hertz>>(
pins: STEMMA,
clocks: &mut GenericClockController,
bus_speed: F,
sercom4: SERCOM4,
mclk: &mut MCLK,
port: &mut Port
) -> I2CMaster4<Sercom4Pad0<Pb8<PfD>>, Sercom4Pad1<Pb9<PfD>>>
Expand description
Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.