Trait I2cBusMappingExt

Source
pub trait I2cBusMappingExt<SDA, SCL>: I2cBusMapping<SDA, SCL>
where SDA: Unpin, SCL: Unpin,
{ // Provided method fn initialize(self, sda: SDA, scl: SCL) -> Initialize<Self, SDA, SCL> where Self: Sized + Unpin { ... } }
Expand description

Extension functions for instances of I2cBusMapping.

Provided Methods§

Source

fn initialize(self, sda: SDA, scl: SCL) -> Initialize<Self, SDA, SCL>
where Self: Sized + Unpin,

Initializes a new I²C bus based off of the two provided SDA (data) and SCL (clock) pins.

Implementors§

Source§

impl<A, SDA, SCL> I2cBusMappingExt<SDA, SCL> for A
where A: I2cBusMapping<SDA, SCL>, SDA: Unpin, SCL: Unpin,