Struct M2erkeyr
#[repr(transparent)]pub struct M2erkeyr(pub u32);Expand description
RAMCFG memory 2 erase key register.
Tuple Fields§
§0: u32Implementations§
§impl M2erkeyr
impl M2erkeyr
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 M2erkeyr
impl Eq for M2erkeyr
impl StructuralPartialEq for M2erkeyr
Auto Trait Implementations§
impl Freeze for M2erkeyr
impl RefUnwindSafe for M2erkeyr
impl Send for M2erkeyr
impl Sync for M2erkeyr
impl Unpin for M2erkeyr
impl UnwindSafe for M2erkeyr
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