Struct stm32g0xx_hal::i2c::I2c[][src]

pub struct I2c<I2C, SDA, SCL> { /* fields omitted */ }

I2C abstraction

Implementations

impl<SDA, SCL> I2c<I2C1, SDA, SCL>[src]

pub fn i2c1(
    i2c: I2C1,
    sda: SDA,
    scl: SCL,
    config: Config,
    rcc: &mut Rcc
) -> Self where
    SDA: SDAPin<I2C1>,
    SCL: SCLPin<I2C1>, 
[src]

pub fn release(self) -> (I2C1, SDA, SCL)[src]

impl<SDA, SCL> I2c<I2C2, SDA, SCL>[src]

pub fn i2c2(
    i2c: I2C2,
    sda: SDA,
    scl: SCL,
    config: Config,
    rcc: &mut Rcc
) -> Self where
    SDA: SDAPin<I2C2>,
    SCL: SCLPin<I2C2>, 
[src]

pub fn release(self) -> (I2C2, SDA, SCL)[src]

Trait Implementations

impl<SDA, SCL> Read for I2c<I2C1, SDA, SCL>[src]

type Error = Error

Error type

impl<SDA, SCL> Read for I2c<I2C2, SDA, SCL>[src]

type Error = Error

Error type

impl<SDA, SCL> Write for I2c<I2C1, SDA, SCL>[src]

type Error = Error

Error type

impl<SDA, SCL> Write for I2c<I2C2, SDA, SCL>[src]

type Error = Error

Error type

impl<SDA, SCL> WriteRead for I2c<I2C1, SDA, SCL>[src]

type Error = Error

Error type

impl<SDA, SCL> WriteRead for I2c<I2C2, SDA, SCL>[src]

type Error = Error

Error type

Auto Trait Implementations

impl<I2C, SDA, SCL> Send for I2c<I2C, SDA, SCL> where
    I2C: Send,
    SCL: Send,
    SDA: Send

impl<I2C, SDA, SCL> Sync for I2c<I2C, SDA, SCL> where
    I2C: Sync,
    SCL: Sync,
    SDA: Sync

impl<I2C, SDA, SCL> Unpin for I2c<I2C, SDA, SCL> where
    I2C: Unpin,
    SCL: Unpin,
    SDA: Unpin

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.