Struct Cpulock
#[repr(transparent)]pub struct Cpulock(pub u32);
Expand description
Configure bits to lock down CPU features at runtime
Tuple Fields§
§0: u32
Implementations§
§impl Cpulock
impl Cpulock
pub const fn locksvtaircr(&self) -> bool
pub const fn locksvtaircr(&self) -> bool
Write ‘1’ to prevent updating the secure interrupt configuration until the next reset
pub 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
pub 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
pub 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
pub const fn locksmpu(&self) -> bool
pub const fn locksmpu(&self) -> bool
Write ‘1’ to prevent updating the secure MPU regions until the next reset
pub 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
pub 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
pub 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
pub const fn locksau(&self) -> bool
pub const fn locksau(&self) -> bool
Write ‘1’ to prevent updating the secure SAU regions until the next reset
pub 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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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
)