Struct atsame54_xpro::pins::I2C [−][src]
Expand description
I2C pins
Fields
sda: Pd8<Input<Floating>>
scl: Pd9<Input<Floating>>
Implementations
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom7: SERCOM7,
mclk: &mut MCLK,
port: &mut Port
) -> I2CMaster7<Sercom7Pad0<Pd8<PfC>>, Sercom7Pad1<Pd9<PfC>>>
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom7: SERCOM7,
mclk: &mut MCLK,
port: &mut Port
) -> I2CMaster7<Sercom7Pad0<Pd8<PfC>>, Sercom7Pad1<Pd9<PfC>>>
Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.