Struct stm32_metapac::flash::regs::Nvsrp
#[repr(transparent)]pub struct Nvsrp(pub u32);
Expand description
FLASH security status register programming.
Tuple Fields§
§0: u32
Implementations§
§impl Nvsrp
impl Nvsrp
pub const fn nvstate(&self) -> NvsrpNvstate
pub const fn nvstate(&self) -> NvsrpNvstate
Non-volatile state programming Write to change corresponding bits in FLASH_NVSR register: Actual option byte change from close to open is triggered only after memory clear hardware process is confirmed. When NVSTATE=0xB4 (resp. 0x51) writing any other value than 0x51 (resp. 0xB4) triggers an option byte change error (OPTERRF).
pub fn set_nvstate(&mut self, val: NvsrpNvstate)
pub fn set_nvstate(&mut self, val: NvsrpNvstate)
Non-volatile state programming Write to change corresponding bits in FLASH_NVSR register: Actual option byte change from close to open is triggered only after memory clear hardware process is confirmed. When NVSTATE=0xB4 (resp. 0x51) writing any other value than 0x51 (resp. 0xB4) triggers an option byte change error (OPTERRF).
Trait Implementations§
impl Copy for Nvsrp
impl Eq for Nvsrp
impl StructuralPartialEq for Nvsrp
Auto Trait Implementations§
impl Freeze for Nvsrp
impl RefUnwindSafe for Nvsrp
impl Send for Nvsrp
impl Sync for Nvsrp
impl Unpin for Nvsrp
impl UnwindSafe for Nvsrp
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
)