I2c

Struct I2c 

Source
pub struct I2c<OS: OsInterface, I> { /* private fields */ }

Implementations§

Source§

impl<OS, I> I2c<OS, I>

Source

pub fn into_interrupt_bus<REMAP>( self, _pins: (impl I2cSclPin<REMAP>, impl I2cSdaPin<REMAP>), max_operation: usize, mcu: &mut Mcu, ) -> (I2cDeviceBuilder<OS, I2cBusInterrupt<OS, I>>, I2cBusInterruptHandler<OS, I>, I2cBusErrorInterruptHandler<OS, I>)
where OS: OsInterface, REMAP: RemapMode<I>,

Source

pub fn into_interrupt_sole<REMAP>( self, _pins: (impl I2cSclPin<REMAP>, impl I2cSdaPin<REMAP>), slave_addr: Address, speed: HertzU32, max_operation: usize, mcu: &mut Mcu, ) -> (impl BusDeviceWithAddress<u8>, I2cBusInterruptHandler<OS, I>, I2cBusErrorInterruptHandler<OS, I>)
where OS: OsInterface, REMAP: RemapMode<I>,

Auto Trait Implementations§

§

impl<OS, I> Freeze for I2c<OS, I>
where I: Freeze,

§

impl<OS, I> RefUnwindSafe for I2c<OS, I>

§

impl<OS, I> Send for I2c<OS, I>
where I: Send,

§

impl<OS, I> Sync for I2c<OS, I>
where I: Sync,

§

impl<OS, I> Unpin for I2c<OS, I>
where I: Unpin, OS: Unpin,

§

impl<OS, I> UnwindSafe for I2c<OS, I>
where I: UnwindSafe, OS: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.