Struct Optkeyr
#[repr(transparent)]pub struct Optkeyr(pub u32);
Expand description
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 LOCK bit in the NSCR1 must be cleared before doing the unlock sequence for OPTLOCK bit. The following values must be written consecutively to unlock the NSCR1.OPTSTRT and OBL_LAUNCH register bits concerning user option 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 LOCK bit in the NSCR1 must be cleared before doing the unlock sequence for OPTLOCK bit. The following values must be written consecutively to unlock the NSCR1.OPTSTRT and OBL_LAUNCH register bits concerning user option 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