pub struct I2cDevice<'a, M: RawMutex, BUS> { /* private fields */ }
Expand description
I2C device on a shared bus.
Implementations§
Trait Implementations§
Source§impl<M, BUS> I2c for I2cDevice<'_, M, BUS>
impl<M, BUS> I2c for I2cDevice<'_, M, BUS>
Source§fn write(&mut self, address: u8, bytes: &[u8]) -> Result<(), Self::Error>
fn write(&mut self, address: u8, bytes: &[u8]) -> Result<(), Self::Error>
Writes bytes to slave with address
address
. Read moreAuto Trait Implementations§
impl<'a, M, BUS> Freeze for I2cDevice<'a, M, BUS>
impl<'a, M, BUS> !RefUnwindSafe for I2cDevice<'a, M, BUS>
impl<'a, M, BUS> Send for I2cDevice<'a, M, BUS>
impl<'a, M, BUS> Sync for I2cDevice<'a, M, BUS>
impl<'a, M, BUS> Unpin for I2cDevice<'a, M, BUS>
impl<'a, M, BUS> !UnwindSafe for I2cDevice<'a, M, BUS>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more