pub struct I2c { /* private fields */ }Expand description
LPC-Next0 I2C-bus interfaces
Implementations§
Source§impl I2c
impl I2c
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn stat(self) -> Reg<Stat, RW>
pub const fn stat(self) -> Reg<Stat, RW>
Status register for Master, Slave, and Monitor functions.
Sourcepub const fn clkdiv(self) -> Reg<Clkdiv, RW>
pub const fn clkdiv(self) -> Reg<Clkdiv, RW>
Clock pre-divider for the entire I2C interface. This determines what time increments are used for the MSTTIME register, and controls some timing of the Slave function.
Sourcepub const fn intstat(self) -> Reg<Intstat, R>
pub const fn intstat(self) -> Reg<Intstat, R>
Interrupt Status register for Master, Slave, and Monitor functions.
Sourcepub const fn mstdat(self) -> Reg<Mstdat, RW>
pub const fn mstdat(self) -> Reg<Mstdat, RW>
Combined Master receiver and transmitter data register.
Trait Implementations§
impl Copy for I2c
impl Eq for I2c
impl Send for I2c
impl StructuralPartialEq for I2c
impl Sync for I2c
Auto Trait Implementations§
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