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 StructuralEq for Keyr
impl StructuralPartialEq for Keyr
Auto Trait Implementationsยง
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