#[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn slave_addr(&self) -> &SLAVE_ADDR
pub const fn slave_addr(&self) -> &SLAVE_ADDR
0x10 - Configure slave address
Sourcepub const fn sda_duty(&self) -> &SDA_DUTY
pub const fn sda_duty(&self) -> &SDA_DUTY
0x18 - Configure the SDA hold time after a negative SCL edge
Sourcepub const fn scl_start_period(&self) -> &SCL_START_PERIOD
pub const fn scl_start_period(&self) -> &SCL_START_PERIOD
0x1c - Configure the delay between the SDA and SCL negative edge for a start condition
Sourcepub const fn scl_stop_period(&self) -> &SCL_STOP_PERIOD
pub const fn scl_stop_period(&self) -> &SCL_STOP_PERIOD
0x20 - Configure the delay between SDA and SCL positive edge for a stop condition
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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