Struct stm32_metapac::flash::regs::Secr
#[repr(transparent)]pub struct Secr(pub u32);
Expand description
FLASH security register
Tuple Fields§
§0: u32
Implementations§
§impl Secr
impl Secr
pub fn set_hdp1_pend(&mut self, val: u8)
pub fn set_hdp1_pend(&mut self, val: u8)
Last page of the first hide protection area
pub const fn boot_lock(&self) -> bool
pub const fn boot_lock(&self) -> bool
used to force boot from user area If the bit is set in association with RDP level 1, the debug capabilities are disabled, except in the case of a bad OBL (mismatch).
pub fn set_boot_lock(&mut self, val: bool)
pub fn set_boot_lock(&mut self, val: bool)
used to force boot from user area If the bit is set in association with RDP level 1, the debug capabilities are disabled, except in the case of a bad OBL (mismatch).
pub fn set_hdp1en(&mut self, val: u8)
pub fn set_hdp1en(&mut self, val: u8)
Hide protection area enable
Trait Implementations§
impl Copy for Secr
impl Eq for Secr
impl StructuralPartialEq for Secr
Auto Trait Implementations§
impl Freeze for Secr
impl RefUnwindSafe for Secr
impl Send for Secr
impl Sync for Secr
impl Unpin for Secr
impl UnwindSafe for Secr
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
)