Struct Skr
#[repr(transparent)]pub struct Skr(pub u32);Expand description
SYSCFG SRAM2 key register
Tuple Fields§
§0: u32Implementations§
§impl Skr
impl Skr
pub const fn key(&self) -> u8
pub const fn key(&self) -> u8
SRAM2 write protection key for software erase The following steps are required to unlock the write protection of the SRAM2ER bit in the SYSCFG_CFGR2 register: Write 0xCA into KEY[7:0] Write 0x53 into KEY[7:0] Writing a wrong key reactivates the write protection.
pub const fn set_key(&mut self, val: u8)
pub const fn set_key(&mut self, val: u8)
SRAM2 write protection key for software erase The following steps are required to unlock the write protection of the SRAM2ER bit in the SYSCFG_CFGR2 register: Write 0xCA into KEY[7:0] Write 0x53 into KEY[7:0] Writing a wrong key reactivates the write protection.
Trait Implementations§
impl Copy for Skr
impl Eq for Skr
impl StructuralPartialEq for Skr
Auto Trait Implementations§
impl Freeze for Skr
impl RefUnwindSafe for Skr
impl Send for Skr
impl Sync for Skr
impl Unpin for Skr
impl UnwindSafe for Skr
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