Struct Privcr
#[repr(transparent)]pub struct Privcr(pub u32);Expand description
RTC privilege mode control register.
Tuple Fields§
§0: u32Implementations§
§impl Privcr
impl Privcr
pub fn set_alrpriv(&mut self, n: usize, val: bool)
pub fn set_alrpriv(&mut self, n: usize, val: bool)
Alarm and SSR underflow privilege protection.
pub fn set_wutpriv(&mut self, val: bool)
pub fn set_wutpriv(&mut self, val: bool)
Wake-up timer privilege protection.
pub fn set_tspriv(&mut self, val: bool)
pub fn set_tspriv(&mut self, val: bool)
Timestamp privilege protection.
pub const fn calpriv(&self) -> bool
pub const fn calpriv(&self) -> bool
Shift register, Delight saving, calibration and reference clock privilege protection.
pub fn set_calpriv(&mut self, val: bool)
pub fn set_calpriv(&mut self, val: bool)
Shift register, Delight saving, calibration and reference clock privilege protection.
pub fn set_initpriv(&mut self, val: bool)
pub fn set_initpriv(&mut self, val: bool)
Initialization privilege protection.
Trait Implementations§
impl Copy for Privcr
impl Eq for Privcr
impl StructuralPartialEq for Privcr
Auto Trait Implementations§
impl Freeze for Privcr
impl RefUnwindSafe for Privcr
impl Send for Privcr
impl Sync for Privcr
impl Unpin for Privcr
impl UnwindSafe for Privcr
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