pub struct I2CDevice<'a, I: I2CMaster<'a>, S: SMBusMaster<'a> = NoSMBus> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a, I: I2CMaster<'a>> I2CDevice for I2CDevice<'a, I>
impl<'a, I: I2CMaster<'a>> I2CDevice for I2CDevice<'a, I>
fn enable(&self)
fn disable(&self)
fn write_read( &self, data: &'static mut [u8], write_len: usize, read_len: usize, ) -> Result<(), (Error, &'static mut [u8])>
fn write( &self, data: &'static mut [u8], len: usize, ) -> Result<(), (Error, &'static mut [u8])>
fn read( &self, buffer: &'static mut [u8], len: usize, ) -> Result<(), (Error, &'static mut [u8])>
Auto Trait Implementations§
impl<'a, I, S = NoSMBus> !Freeze for I2CDevice<'a, I, S>
impl<'a, I, S = NoSMBus> !RefUnwindSafe for I2CDevice<'a, I, S>
impl<'a, I, S = NoSMBus> !Send for I2CDevice<'a, I, S>
impl<'a, I, S = NoSMBus> !Sync for I2CDevice<'a, I, S>
impl<'a, I, S> Unpin for I2CDevice<'a, I, S>
impl<'a, I, S = NoSMBus> !UnwindSafe for I2CDevice<'a, I, S>
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