Struct stm32f1xx_hal::i2c::I2c

source ·
pub struct I2c<I2C, PINS> { /* private fields */ }
Expand description

I2C peripheral operating in master mode

Implementations§

Generates a blocking I2C instance from a universal I2C object

Creates a generic I2C1 object on pins PB6 and PB7 or PB8 and PB9 (if remapped)

Creates a generic I2C2 object on pins PB10 and PB11 using the embedded-hal BlockingI2c trait.

Releases the I2C peripheral and associated pins

👎Deprecated since 0.7.1: Please use release instead

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.