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