Struct rp_pac::otp_data_raw::regs::PageLock0
source · #[repr(transparent)]pub struct PageLock0(pub u32);
Expand description
Lock configuration LSBs for page 63 (rows 0xfc0 through 0xfff). Locks are stored with 3-way majority vote encoding, so that bits can be set independently. This OTP location is always readable, and is write-protected by its own permissions.
Tuple Fields§
§0: u32
Implementations§
source§impl PageLock0
impl PageLock0
sourcepub const fn key_w(&self) -> u8
pub const fn key_w(&self) -> u8
Index 1-6 of a hardware key which must be entered to grant write access, or 0 if no such key is required.
sourcepub fn set_key_w(&mut self, val: u8)
pub fn set_key_w(&mut self, val: u8)
Index 1-6 of a hardware key which must be entered to grant write access, or 0 if no such key is required.
sourcepub const fn key_r(&self) -> u8
pub const fn key_r(&self) -> u8
Index 1-6 of a hardware key which must be entered to grant read access, or 0 if no such key is required.
sourcepub fn set_key_r(&mut self, val: u8)
pub fn set_key_r(&mut self, val: u8)
Index 1-6 of a hardware key which must be entered to grant read access, or 0 if no such key is required.
sourcepub const fn no_key_state(&self) -> PageLockNoKeyState
pub const fn no_key_state(&self) -> PageLockNoKeyState
State when at least one key is registered for this page and no matching key has been entered.
sourcepub fn set_no_key_state(&mut self, val: PageLockNoKeyState)
pub fn set_no_key_state(&mut self, val: PageLockNoKeyState)
State when at least one key is registered for this page and no matching key has been entered.
sourcepub const fn rma(&self) -> bool
pub const fn rma(&self) -> bool
Decommission for RMA of a suspected faulty device. This re-enables the factory test JTAG interface, and makes pages 3 through 61 of the OTP permanently inaccessible.
Trait Implementations§
impl Copy for PageLock0
impl Eq for PageLock0
impl StructuralPartialEq for PageLock0
Auto Trait Implementations§
impl Freeze for PageLock0
impl RefUnwindSafe for PageLock0
impl Send for PageLock0
impl Sync for PageLock0
impl Unpin for PageLock0
impl UnwindSafe for PageLock0
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
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)
clone_to_uninit
)