Struct stm32_metapac::rtc::regs::Privcr
#[repr(transparent)]pub struct Privcr(pub u32);
Expand description
Privilege mode control register
Tuple Fields§
§0: u32
Implementations§
§impl Privcr
impl Privcr
pub fn set_alrpriv(&mut self, n: usize, val: bool)
pub fn set_alrpriv(&mut self, n: usize, val: bool)
ALRAPRIV
pub fn set_wutpriv(&mut self, val: bool)
pub fn set_wutpriv(&mut self, val: bool)
WUTPRIV
pub fn set_tspriv(&mut self, val: bool)
pub fn set_tspriv(&mut self, val: bool)
TSPRIV
pub fn set_calpriv(&mut self, val: bool)
pub fn set_calpriv(&mut self, val: bool)
CALPRIV
pub fn set_initpriv(&mut self, val: bool)
pub fn set_initpriv(&mut self, val: bool)
INITPRIV
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)