pub struct I2C2 { /* private fields */ }
Expand description
I2C bus interface
Implementations
sourceimpl I2C2
impl I2C2
sourcepub const PTR: *const RegisterBlock = {0x400a0000 as *const i2c0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x400a0000 as *const i2c0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Methods from Deref<Target = RegisterBlock>
sourcepub fn adr1(&self) -> &Reg<ADR_SPEC>
pub fn adr1(&self) -> &Reg<ADR_SPEC>
0x20 - I2C Slave Address Register. Contains the 7-bit slave address for operation of the I2C interface in slave mode, and is not used in master mode. The least significant bit determines whether a slave responds to the General Call address.
Trait Implementations
sourceimpl Deref for I2C2
impl Deref for I2C2
type Target = RegisterBlock
type Target = RegisterBlock
The resulting type after dereferencing.
impl Send for I2C2
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more