#[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.