Struct grand_central_m4::pins::I2C [−][src]
Expand description
I2C pins
Fields
sda: Pc16<Input<Floating>>
scl: Pc17<Input<Floating>>
Implementations
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom3: SERCOM6,
mclk: &mut MCLK,
port: &mut Port
) -> I2CMaster6<Sercom6Pad0<Pc16<PfC>>, Sercom6Pad1<Pc17<PfC>>>
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom3: SERCOM6,
mclk: &mut MCLK,
port: &mut Port
) -> I2CMaster6<Sercom6Pad0<Pc16<PfC>>, Sercom6Pad1<Pc17<PfC>>>
Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.