pub struct Lpi2c<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Lpi2c<'a>
impl<'a> Lpi2c<'a>
pub fn new_lpi2c1(ccm: &'a Ccm) -> Self
pub fn set_speed(&self, speed: Lpi2cSpeed, _system_clock_in_mhz: usize)
pub fn is_enabled_clock(&self) -> bool
pub fn enable_clock(&self)
pub fn disable_clock(&self)
pub fn send_byte(&self) -> bool
pub fn read_byte(&self) -> bool
pub fn handle_event(&self)
pub fn handle_error(&self)
Trait Implementations§
Source§impl<'a> I2CMaster<'a> for Lpi2c<'a>
impl<'a> I2CMaster<'a> for Lpi2c<'a>
fn set_master_client(&self, master_client: &'a 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> !Freeze for Lpi2c<'a>
impl<'a> !RefUnwindSafe for Lpi2c<'a>
impl<'a> !Send for Lpi2c<'a>
impl<'a> !Sync for Lpi2c<'a>
impl<'a> Unpin for Lpi2c<'a>
impl<'a> !UnwindSafe for Lpi2c<'a>
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