[][src]Struct trellis_m4::pins::I2C

pub struct I2C {
    pub sda: Pb8<Input<Floating>>,
    pub scl: Pb9<Input<Floating>>,
}

I2C pins

Fields

sda: Pb8<Input<Floating>>scl: Pb9<Input<Floating>>

Methods

impl I2C[src]

pub fn i2c_master<F: Into<Hertz>>(
    self,
    clocks: &mut GenericClockController,
    bus_speed: F,
    sercom4: SERCOM4,
    mclk: &mut MCLK,
    port: &mut Port
) -> I2CMaster4
[src]

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

Auto Trait Implementations

impl Send for I2C

impl Sync for I2C

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self