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