#[repr(transparent)]pub struct Cpulock(pub u32);
Expand description
Configure bits to lock down CPU features at runtime
Tuple Fields§
§0: u32
Implementations§
Source§impl Cpulock
impl Cpulock
Sourcepub const fn locksvtaircr(&self) -> bool
pub const fn locksvtaircr(&self) -> bool
Write ‘1’ to prevent updating the secure interrupt configuration until the next reset
Sourcepub fn set_locksvtaircr(&mut self, val: bool)
pub fn set_locksvtaircr(&mut self, val: bool)
Write ‘1’ to prevent updating the secure interrupt configuration until the next reset
Sourcepub const fn locknsvtor(&self) -> bool
pub const fn locknsvtor(&self) -> bool
Write ‘1’ to prevent updating the non-secure vector table base address until the next reset
Sourcepub fn set_locknsvtor(&mut self, val: bool)
pub fn set_locknsvtor(&mut self, val: bool)
Write ‘1’ to prevent updating the non-secure vector table base address until the next reset
Sourcepub const fn locksmpu(&self) -> bool
pub const fn locksmpu(&self) -> bool
Write ‘1’ to prevent updating the secure MPU regions until the next reset
Sourcepub fn set_locksmpu(&mut self, val: bool)
pub fn set_locksmpu(&mut self, val: bool)
Write ‘1’ to prevent updating the secure MPU regions until the next reset
Sourcepub const fn locknsmpu(&self) -> bool
pub const fn locknsmpu(&self) -> bool
Write ‘1’ to prevent updating the Non-secure MPU regions until the next reset
Sourcepub fn set_locknsmpu(&mut self, val: bool)
pub fn set_locknsmpu(&mut self, val: bool)
Write ‘1’ to prevent updating the Non-secure MPU regions until the next reset
Sourcepub const fn locksau(&self) -> bool
pub const fn locksau(&self) -> bool
Write ‘1’ to prevent updating the secure SAU regions until the next reset
Sourcepub fn set_locksau(&mut self, val: bool)
pub fn set_locksau(&mut self, val: bool)
Write ‘1’ to prevent updating the secure SAU regions until the next reset
Trait Implementations§
impl Copy for Cpulock
impl Eq for Cpulock
impl StructuralPartialEq for Cpulock
Auto Trait Implementations§
impl Freeze for Cpulock
impl RefUnwindSafe for Cpulock
impl Send for Cpulock
impl Sync for Cpulock
impl Unpin for Cpulock
impl UnwindSafe for Cpulock
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
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)
clone_to_uninit
)