Struct stm32_metapac::syscfg::regs::Cslockr
#[repr(transparent)]pub struct Cslockr(pub u32);
Expand description
CPU secure lock register
Tuple Fields§
§0: u32
Implementations§
§impl Cslockr
impl Cslockr
pub const fn locksvtaircr(&self) -> bool
pub const fn locksvtaircr(&self) -> bool
VTOR_S register and AIRCR register bits lock This bit is set by software and cleared only by a system reset. When set, it disables write access to VTOR_S register, PRIS and BFHFNMINS bits in the AIRCR register.
pub fn set_locksvtaircr(&mut self, val: bool)
pub fn set_locksvtaircr(&mut self, val: bool)
VTOR_S register and AIRCR register bits lock This bit is set by software and cleared only by a system reset. When set, it disables write access to VTOR_S register, PRIS and BFHFNMINS bits in the AIRCR register.
pub const fn locksmpu(&self) -> bool
pub const fn locksmpu(&self) -> bool
Secure MPU registers lock This bit is set by software and cleared only by a system reset. When set, it disables write access to secure MPU_CTRL, MPU_RNR and MPU_RBAR registers.
pub fn set_locksmpu(&mut self, val: bool)
pub fn set_locksmpu(&mut self, val: bool)
Secure MPU registers lock This bit is set by software and cleared only by a system reset. When set, it disables write access to secure MPU_CTRL, MPU_RNR and MPU_RBAR registers.
pub const fn locksau(&self) -> bool
pub const fn locksau(&self) -> bool
SAU registers lock This bit is set by software and cleared only by a system reset. When set, it disables write access to SAU_CTRL, SAU_RNR, SAU_RBAR and SAU_RLAR registers.
pub fn set_locksau(&mut self, val: bool)
pub fn set_locksau(&mut self, val: bool)
SAU registers lock This bit is set by software and cleared only by a system reset. When set, it disables write access to SAU_CTRL, SAU_RNR, SAU_RBAR and SAU_RLAR registers.
Trait Implementations§
impl Copy for Cslockr
impl Eq for Cslockr
impl StructuralPartialEq for Cslockr
Auto Trait Implementations§
impl Freeze for Cslockr
impl RefUnwindSafe for Cslockr
impl Send for Cslockr
impl Sync for Cslockr
impl Unpin for Cslockr
impl UnwindSafe for Cslockr
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
)