Struct rp_pac::otp::regs::DebugenLock
source · #[repr(transparent)]pub struct DebugenLock(pub u32);
Expand description
Write 1s to lock corresponding bits in DEBUGEN. This register is reset by the processor cold reset.
Tuple Fields§
§0: u32
Implementations§
source§impl DebugenLock
impl DebugenLock
sourcepub const fn proc0(&self) -> bool
pub const fn proc0(&self) -> bool
Write 1 to lock the PROC0 bit of DEBUGEN. Can’t be cleared once set.
sourcepub fn set_proc0(&mut self, val: bool)
pub fn set_proc0(&mut self, val: bool)
Write 1 to lock the PROC0 bit of DEBUGEN. Can’t be cleared once set.
sourcepub const fn proc0_secure(&self) -> bool
pub const fn proc0_secure(&self) -> bool
Write 1 to lock the PROC0_SECURE bit of DEBUGEN. Can’t be cleared once set.
sourcepub fn set_proc0_secure(&mut self, val: bool)
pub fn set_proc0_secure(&mut self, val: bool)
Write 1 to lock the PROC0_SECURE bit of DEBUGEN. Can’t be cleared once set.
sourcepub const fn proc1(&self) -> bool
pub const fn proc1(&self) -> bool
Write 1 to lock the PROC1 bit of DEBUGEN. Can’t be cleared once set.
sourcepub fn set_proc1(&mut self, val: bool)
pub fn set_proc1(&mut self, val: bool)
Write 1 to lock the PROC1 bit of DEBUGEN. Can’t be cleared once set.
sourcepub const fn proc1_secure(&self) -> bool
pub const fn proc1_secure(&self) -> bool
Write 1 to lock the PROC1_SECURE bit of DEBUGEN. Can’t be cleared once set.
sourcepub fn set_proc1_secure(&mut self, val: bool)
pub fn set_proc1_secure(&mut self, val: bool)
Write 1 to lock the PROC1_SECURE bit of DEBUGEN. Can’t be cleared once set.
Trait Implementations§
source§impl Clone for DebugenLock
impl Clone for DebugenLock
source§fn clone(&self) -> DebugenLock
fn clone(&self) -> DebugenLock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for DebugenLock
impl Default for DebugenLock
source§fn default() -> DebugenLock
fn default() -> DebugenLock
Returns the “default value” for a type. Read more
source§impl PartialEq for DebugenLock
impl PartialEq for DebugenLock
impl Copy for DebugenLock
impl Eq for DebugenLock
impl StructuralPartialEq for DebugenLock
Auto Trait Implementations§
impl Freeze for DebugenLock
impl RefUnwindSafe for DebugenLock
impl Send for DebugenLock
impl Sync for DebugenLock
impl Unpin for DebugenLock
impl UnwindSafe for DebugenLock
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
)