Struct stm32_metapac::flash::regs::Keyr
#[repr(transparent)]pub struct Keyr(pub u32);
Expand description
FLASH control key register.
Tuple Fields§
§0: u32
Implementations§
§impl Keyr
impl Keyr
pub const fn cukey(&self) -> u32
pub const fn cukey(&self) -> u32
Control unlock key Following values must be written to FLASH_KEYR consecutively to unlock FLASH_CR register: 1st key = 0x4567 0123 2nd key = 0xCDEF 89AB Reads to this register returns zero. If above sequence is wrong or performed twice, the FLASH_CR register is locked until the next system reset, and access to it generates a bus error.
pub fn set_cukey(&mut self, val: u32)
pub fn set_cukey(&mut self, val: u32)
Control unlock key Following values must be written to FLASH_KEYR consecutively to unlock FLASH_CR register: 1st key = 0x4567 0123 2nd key = 0xCDEF 89AB Reads to this register returns zero. If above sequence is wrong or performed twice, the FLASH_CR register is locked until the next system reset, and access to it generates a bus error.
Trait Implementations§
impl Copy for Keyr
impl Eq for Keyr
impl StructuralPartialEq for Keyr
Auto Trait Implementations§
impl Freeze for Keyr
impl RefUnwindSafe for Keyr
impl Send for Keyr
impl Sync for Keyr
impl Unpin for Keyr
impl UnwindSafe for Keyr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)