#[repr(transparent)]pub struct Slvadr2(pub u32);Expand description
Slave address register.
Tuple Fields§
§0: u32Implementations§
Source§impl Slvadr2
impl Slvadr2
Sourcepub const fn sadisable(&self) -> Slvadr2Sadisable
pub const fn sadisable(&self) -> Slvadr2Sadisable
Slave Address n Disable.
Sourcepub const fn set_sadisable(&mut self, val: Slvadr2Sadisable)
pub const fn set_sadisable(&mut self, val: Slvadr2Sadisable)
Slave Address n Disable.
Sourcepub const fn slvadr(&self) -> u8
pub const fn slvadr(&self) -> u8
Slave Address. Seven bit slave address that is compared to received addresses if enabled.
Sourcepub const fn set_slvadr(&mut self, val: u8)
pub const fn set_slvadr(&mut self, val: u8)
Slave Address. Seven bit slave address that is compared to received addresses if enabled.
Trait Implementations§
impl Copy for Slvadr2
impl Eq for Slvadr2
impl StructuralPartialEq for Slvadr2
Auto Trait Implementations§
impl Freeze for Slvadr2
impl RefUnwindSafe for Slvadr2
impl Send for Slvadr2
impl Sync for Slvadr2
impl Unpin for Slvadr2
impl UnwindSafe for Slvadr2
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