Struct stm32_metapac::flash::regs::Optkeyr
#[repr(transparent)]pub struct Optkeyr(pub u32);
Expand description
FLASH option key register
Tuple Fields§
§0: u32
Implementations§
§impl Optkeyr
impl Optkeyr
pub const fn optkey(&self) -> u32
pub const fn optkey(&self) -> u32
Option byte key The following values must be written consecutively to unlock the flash memory option registers, enabling option byte programming/erasing operations: KEY1: 0x0819 2A3B KEY2: 0x4C5D 6E7F
pub fn set_optkey(&mut self, val: u32)
pub fn set_optkey(&mut self, val: u32)
Option byte key The following values must be written consecutively to unlock the flash memory option registers, enabling option byte programming/erasing operations: KEY1: 0x0819 2A3B KEY2: 0x4C5D 6E7F
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
)