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 Copy for Optkeyr
impl Eq for Optkeyr
impl StructuralPartialEq for Optkeyr
Auto Trait Implementations§
impl Freeze for Optkeyr
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
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
)