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 StructuralEq for Nvsrp
impl StructuralPartialEq for Nvsrp
Auto Trait Implementationsยง
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