Struct stm32_metapac::flash::regs::Prifcfgr
#[repr(transparent)]pub struct Prifcfgr(pub u32);
Expand description
privilege configuration register
Tuple Fields§
§0: u32
Implementations§
§impl Prifcfgr
impl Prifcfgr
pub const fn spriv(&self) -> bool
pub const fn spriv(&self) -> bool
Privileged protection for secure registers This bit is secure write protected. It can only be written by a secure privileged access when TrustZone is enabled (TZEN�=�1).
pub fn set_spriv(&mut self, val: bool)
pub fn set_spriv(&mut self, val: bool)
Privileged protection for secure registers This bit is secure write protected. It can only be written by a secure privileged access when TrustZone is enabled (TZEN�=�1).
pub fn set_nspriv(&mut self, val: bool)
pub fn set_nspriv(&mut self, val: bool)
Privileged protection for non-secure registers
Trait Implementations§
impl Copy for Prifcfgr
impl Eq for Prifcfgr
impl StructuralPartialEq for Prifcfgr
Auto Trait Implementations§
impl Freeze for Prifcfgr
impl RefUnwindSafe for Prifcfgr
impl Send for Prifcfgr
impl Sync for Prifcfgr
impl Unpin for Prifcfgr
impl UnwindSafe for Prifcfgr
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
)