Struct stm32f30x_hal::i2c::I2c [] [src]

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

I2C peripheral operating in master mode

Methods

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

[src]

Configures the I2C peripheral to work in master mode

[src]

Releases the I2C peripheral and associated pins

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

[src]

Configures the I2C peripheral to work in master mode

[src]

Releases the I2C peripheral and associated pins

Trait Implementations

impl<PINS> Write for I2c<I2C1, PINS>
[src]

Error type

[src]

Sends bytes to slave with address addr Read more

impl<PINS> WriteRead for I2c<I2C1, PINS>
[src]

Error type

[src]

Sends bytes to slave with address addr and then reads enough bytes to fill buffer in a single transaction Read more

impl<PINS> Write for I2c<I2C2, PINS>
[src]

Error type

[src]

Sends bytes to slave with address addr Read more

impl<PINS> WriteRead for I2c<I2C2, PINS>
[src]

Error type

[src]

Sends bytes to slave with address addr and then reads enough bytes to fill buffer in a single transaction Read more

Auto Trait Implementations

impl<I2C, PINS> Send for I2c<I2C, PINS> where
    I2C: Send,
    PINS: Send

impl<I2C, PINS> Sync for I2c<I2C, PINS> where
    I2C: Sync,
    PINS: Sync