#[repr(transparent)]pub struct SwLock(pub u32);
Expand description
Software lock register for page 2. Locks are initialised from the OTP lock pages at reset. This register can be written to further advance the lock state of each page (until next reset), and read to check the current lock state of a page.
Tuple Fields§
§0: u32
Implementations§
source§impl SwLock
impl SwLock
sourcepub const fn sec(&self) -> SwLockSec
pub const fn sec(&self) -> SwLockSec
Secure lock status. Writes are OR’d with the current value. This field is read-only to Non-secure code.
sourcepub fn set_sec(&mut self, val: SwLockSec)
pub fn set_sec(&mut self, val: SwLockSec)
Secure lock status. Writes are OR’d with the current value. This field is read-only to Non-secure code.
sourcepub const fn nsec(&self) -> SwLockNsec
pub const fn nsec(&self) -> SwLockNsec
Non-secure lock status. Writes are OR’d with the current value.
sourcepub fn set_nsec(&mut self, val: SwLockNsec)
pub fn set_nsec(&mut self, val: SwLockNsec)
Non-secure lock status. Writes are OR’d with the current value.
Trait Implementations§
impl Copy for SwLock
impl Eq for SwLock
impl StructuralPartialEq for SwLock
Auto Trait Implementations§
impl Freeze for SwLock
impl RefUnwindSafe for SwLock
impl Send for SwLock
impl Sync for SwLock
impl Unpin for SwLock
impl UnwindSafe for SwLock
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
)