Struct stm32_metapac::flash::regs::Privcfgr
#[repr(transparent)]pub struct Privcfgr(pub u32);
Expand description
FLASH privilege configuration register
Tuple Fields§
§0: u32
Implementations§
§impl Privcfgr
impl Privcfgr
pub const fn spriv(&self) -> Spriv
pub const fn spriv(&self) -> Spriv
Privileged protection for secure registers This bit can be accessed only when TrustZone is enabled (TZEN = 1). This bit can be read by both privileged or unprivileged, secure and non-secure access. The SPRIV bit can be written only by a secure privileged access. A non-secure write access on SPRIV bit is ignored. A secure unprivileged write access on SPRIV bit is ignored.
pub fn set_spriv(&mut self, val: Spriv)
pub fn set_spriv(&mut self, val: Spriv)
Privileged protection for secure registers This bit can be accessed only when TrustZone is enabled (TZEN = 1). This bit can be read by both privileged or unprivileged, secure and non-secure access. The SPRIV bit can be written only by a secure privileged access. A non-secure write access on SPRIV bit is ignored. A secure unprivileged write access on SPRIV bit is ignored.
pub const fn nspriv(&self) -> Nspriv
pub const fn nspriv(&self) -> Nspriv
Privileged protection for non-secure registers This bit can be read by both privileged or unprivileged, secure and non-secure access. The NSPRIV bit can be written by a secure or non-secure privileged access. A secure or non-secure unprivileged write access on NSPRIV bit is ignored.
pub fn set_nspriv(&mut self, val: Nspriv)
pub fn set_nspriv(&mut self, val: Nspriv)
Privileged protection for non-secure registers This bit can be read by both privileged or unprivileged, secure and non-secure access. The NSPRIV bit can be written by a secure or non-secure privileged access. A secure or non-secure unprivileged write access on NSPRIV bit is ignored.
Trait Implementations§
impl Copy for Privcfgr
impl Eq for Privcfgr
impl StructuralPartialEq for Privcfgr
Auto Trait Implementations§
impl Freeze for Privcfgr
impl RefUnwindSafe for Privcfgr
impl Send for Privcfgr
impl Sync for Privcfgr
impl Unpin for Privcfgr
impl UnwindSafe for Privcfgr
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
)