Struct stm32_metapac::i2c::regs::Sr2
#[repr(transparent)]pub struct Sr2(pub u32);
Expand description
Status register 2
Tuple Fields§
§0: u32
Implementations§
§impl Sr2
impl Sr2
pub fn set_gencall(&mut self, val: bool)
pub fn set_gencall(&mut self, val: bool)
General call address (Slave mode)
pub const fn smbdefault(&self) -> bool
pub const fn smbdefault(&self) -> bool
SMBus device default address (Slave mode)
pub fn set_smbdefault(&mut self, val: bool)
pub fn set_smbdefault(&mut self, val: bool)
SMBus device default address (Slave mode)
pub fn set_smbhost(&mut self, val: bool)
pub fn set_smbhost(&mut self, val: bool)
SMBus host header (Slave mode)
Trait Implementations§
impl Copy for Sr2
impl Eq for Sr2
impl StructuralPartialEq for Sr2
Auto Trait Implementations§
impl Freeze for Sr2
impl RefUnwindSafe for Sr2
impl Send for Sr2
impl Sync for Sr2
impl Unpin for Sr2
impl UnwindSafe for Sr2
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