Struct rp_pac::accessctrl::regs::Lock
source · #[repr(transparent)]pub struct Lock(pub u32);
Expand description
Once a LOCK bit is written to 1, ACCESSCTRL silently ignores writes from that master. LOCK is writable only by a Secure, Privileged processor or debugger. LOCK bits are only writable when their value is zero. Once set, they can never be cleared, except by a full reset of ACCESSCTRL Setting the LOCK bit does not affect whether an access raises a bus error. Unprivileged writes, or writes from the DMA, will continue to raise bus errors. All other accesses will continue not to.
Tuple Fields§
§0: u32
Implementations§
source§impl Lock
impl Lock
pub const fn core0(&self) -> bool
pub fn set_core0(&mut self, val: bool)
pub const fn core1(&self) -> bool
pub fn set_core1(&mut self, val: bool)
pub const fn dma(&self) -> bool
pub fn set_dma(&mut self, val: bool)
pub const fn debug(&self) -> bool
pub fn set_debug(&mut self, val: bool)
Trait Implementations§
impl Copy for Lock
impl Eq for Lock
impl StructuralPartialEq for Lock
Auto Trait Implementations§
impl Freeze for Lock
impl RefUnwindSafe for Lock
impl Send for Lock
impl Sync for Lock
impl Unpin for Lock
impl UnwindSafe for Lock
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
)