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