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