Struct M4erkeyr
#[repr(transparent)]pub struct M4erkeyr(pub u32);Expand description
RAMCFG memory 4 erase key register.
Tuple Fields§
§0: u32Implementations§
§impl M4erkeyr
impl M4erkeyr
pub const fn erasekey(&self) -> u8
pub const fn erasekey(&self) -> u8
Erase write protection key The following steps are required to unlock the write protection of the SRAMER bit in the MxCR register. 1) Write 0xCA into ERASEKEY[7:0]. 2) Write 0x53 into ERASEKEY[7:0]. Note: Writing a wrong key reactivates the write protection.
pub fn set_erasekey(&mut self, val: u8)
pub fn set_erasekey(&mut self, val: u8)
Erase write protection key The following steps are required to unlock the write protection of the SRAMER bit in the MxCR register. 1) Write 0xCA into ERASEKEY[7:0]. 2) Write 0x53 into ERASEKEY[7:0]. Note: Writing a wrong key reactivates the write protection.
Trait Implementations§
impl Copy for M4erkeyr
impl Eq for M4erkeyr
impl StructuralPartialEq for M4erkeyr
Auto Trait Implementations§
impl Freeze for M4erkeyr
impl RefUnwindSafe for M4erkeyr
impl Send for M4erkeyr
impl Sync for M4erkeyr
impl Unpin for M4erkeyr
impl UnwindSafe for M4erkeyr
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