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