#[repr(transparent)]pub struct Slvadr0(pub u32);Expand description
Slave address register.
Tuple Fields§
§0: u32Implementations§
Source§impl Slvadr0
impl Slvadr0
Sourcepub const fn sadisable(&self) -> Slvadr0Sadisable
pub const fn sadisable(&self) -> Slvadr0Sadisable
Slave Address n Disable.
Sourcepub const fn set_sadisable(&mut self, val: Slvadr0Sadisable)
pub const fn set_sadisable(&mut self, val: Slvadr0Sadisable)
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.
Sourcepub const fn autonack(&self) -> Autonack
pub const fn autonack(&self) -> Autonack
Automatic NACK operation. Used in conjunction with AUTOACK and AUTOMATCHREAD, allows software to ignore I2C traffic while handling previous I2C data or other operations.
Sourcepub const fn set_autonack(&mut self, val: Autonack)
pub const fn set_autonack(&mut self, val: Autonack)
Automatic NACK operation. Used in conjunction with AUTOACK and AUTOMATCHREAD, allows software to ignore I2C traffic while handling previous I2C data or other operations.
Trait Implementations§
impl Copy for Slvadr0
impl Eq for Slvadr0
impl StructuralPartialEq for Slvadr0
Auto Trait Implementations§
impl Freeze for Slvadr0
impl RefUnwindSafe for Slvadr0
impl Send for Slvadr0
impl Sync for Slvadr0
impl Unpin for Slvadr0
impl UnwindSafe for Slvadr0
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