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