Expand description
I2C pins
Fields
sda: Pa12<Input<Floating>>
scl: Pa13<Input<Floating>>
Implementations
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom2: SERCOM2,
mclk: &mut MCLK,
port: &mut Port
) -> I2CMaster2<Sercom2Pad0<Pa12<PfC>>, Sercom2Pad1<Pa13<PfC>>>
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
bus_speed: F,
sercom2: SERCOM2,
mclk: &mut MCLK,
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.
Auto Trait Implementations
impl RefUnwindSafe for I2C
impl UnwindSafe for I2C
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.