Struct Lock
#[repr(transparent)]pub struct Lock(pub u32);
Expand description
Register to lock the certain parts of the CPU from being modified.
Tuple Fields§
§0: u32
Implementations§
§impl Lock
impl Lock
pub const fn lockvtoraircrs(&self) -> bool
pub const fn lockvtoraircrs(&self) -> bool
Locks both the Vector table Offset Register (VTOR) and Application Interrupt and Reset Control Register (AIRCR) for secure mode.
pub fn set_lockvtoraircrs(&mut self, val: bool)
pub fn set_lockvtoraircrs(&mut self, val: bool)
Locks both the Vector table Offset Register (VTOR) and Application Interrupt and Reset Control Register (AIRCR) for secure mode.
pub const fn lockvtorns(&self) -> bool
pub const fn lockvtorns(&self) -> bool
Locks the Vector table Offset Register (VTOR) for non-secure mode.
pub fn set_lockvtorns(&mut self, val: bool)
pub fn set_lockvtorns(&mut self, val: bool)
Locks the Vector table Offset Register (VTOR) for non-secure mode.
pub fn set_lockmpus(&mut self, val: bool)
pub fn set_lockmpus(&mut self, val: bool)
Locks the Memory Protection Unit (MPU) for secure mode.
pub fn set_lockmpuns(&mut self, val: bool)
pub fn set_lockmpuns(&mut self, val: bool)
Locks the Memory Protection Unit (MPU) for non secure mode.
pub fn set_locksau(&mut self, val: bool)
pub fn set_locksau(&mut self, val: bool)
Locks the Security Attribution Unit (SAU)
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
)