Struct stm32_metapac::flash::regs::Optkeyr
#[repr(transparent)]pub struct Optkeyr(pub u32);
Expand description
FLASH options key register.
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Optkeyr
impl Optkeyr
pub const fn ocukey(&self) -> u32
pub const fn ocukey(&self) -> u32
Options configuration unlock key Following values must be written to FLASH_OPTKEYR consecutively to unlock FLASH_OPTCR register: 1st key = 0x0819 2A3B 2nd key = 0x4C5D 6E7F Reads to this register returns zero. If above sequence is performed twice locks up the corresponding register/bit until the next system reset, and generates a bus error.
pub fn set_ocukey(&mut self, val: u32)
pub fn set_ocukey(&mut self, val: u32)
Options configuration unlock key Following values must be written to FLASH_OPTKEYR consecutively to unlock FLASH_OPTCR register: 1st key = 0x0819 2A3B 2nd key = 0x4C5D 6E7F Reads to this register returns zero. If above sequence is performed twice locks up the corresponding register/bit until the next system reset, and generates a bus error.
Trait Implementationsยง
ยงimpl PartialEq for Optkeyr
impl PartialEq for Optkeyr
impl Copy for Optkeyr
impl Eq for Optkeyr
impl StructuralEq for Optkeyr
impl StructuralPartialEq for Optkeyr
Auto Trait Implementationsยง
impl RefUnwindSafe for Optkeyr
impl Send for Optkeyr
impl Sync for Optkeyr
impl Unpin for Optkeyr
impl UnwindSafe for Optkeyr
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