Struct stm32_metapac::tamp::regs::Seccfgr
#[repr(transparent)]pub struct Seccfgr(pub u32);
Expand description
TAMP secure configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Seccfgr
impl Seccfgr
pub fn set_bkprwsec(&mut self, val: u8)
pub fn set_bkprwsec(&mut self, val: u8)
Backup registers read/write protection offset.
pub fn set_cnt1sec(&mut self, val: bool)
pub fn set_cnt1sec(&mut self, val: bool)
Monotonic counter 1 secure protection.
pub fn set_bkpwsec(&mut self, val: u8)
pub fn set_bkpwsec(&mut self, val: u8)
Backup registers write protection offset.
pub fn set_bhklock(&mut self, val: bool)
pub fn set_bhklock(&mut self, val: bool)
Boot hardware key lock.
pub const fn tampsec(&self) -> bool
pub const fn tampsec(&self) -> bool
Tamper protection (excluding monotonic counters and backup registers).
pub fn set_tampsec(&mut self, val: bool)
pub fn set_tampsec(&mut self, val: bool)
Tamper protection (excluding monotonic counters and backup registers).
Trait Implementations§
impl Copy for Seccfgr
impl Eq for Seccfgr
impl StructuralPartialEq for Seccfgr
Auto Trait Implementations§
impl Freeze for Seccfgr
impl RefUnwindSafe for Seccfgr
impl Send for Seccfgr
impl Sync for Seccfgr
impl Unpin for Seccfgr
impl UnwindSafe for Seccfgr
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
)