Struct stm32_metapac::tamp::regs::Privcr
#[repr(transparent)]pub struct Privcr(pub u32);
Expand description
TAMP privilege mode control register
Tuple Fields§
§0: u32
Implementations§
§impl Privcr
impl Privcr
pub fn set_cnt1priv(&mut self, val: bool)
pub fn set_cnt1priv(&mut self, val: bool)
Monotonic counter 1 privilege protection
pub fn set_bkprwpriv(&mut self, val: bool)
pub fn set_bkprwpriv(&mut self, val: bool)
Backup registers zone 1 privilege protection
pub fn set_bkpwpriv(&mut self, val: bool)
pub fn set_bkpwpriv(&mut self, val: bool)
Backup registers zone 2 privilege protection
pub const fn tamppriv(&self) -> bool
pub const fn tamppriv(&self) -> bool
Tamper privilege protection (excluding backup registers). Note: Refer to for details on the read protection.
pub fn set_tamppriv(&mut self, val: bool)
pub fn set_tamppriv(&mut self, val: bool)
Tamper privilege protection (excluding backup registers). Note: Refer to for details on the read 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
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
)