Struct Privcfgr
#[repr(transparent)]pub struct Privcfgr(pub u32);
Expand description
PWR privilege control register
Tuple Fields§
§0: u32
Implementations§
§impl Privcfgr
impl Privcfgr
pub const fn spriv(&self) -> Priv
pub const fn spriv(&self) -> Priv
PWR secure functions privilege configuration This bit is set and reset by software. It can be written only by a secure privileged access.
pub fn set_spriv(&mut self, val: Priv)
pub fn set_spriv(&mut self, val: Priv)
PWR secure functions privilege configuration This bit is set and reset by software. It can be written only by a secure privileged access.
pub const fn nspriv(&self) -> Priv
pub const fn nspriv(&self) -> Priv
PWR non-secure functions privilege configuration This bit is set and reset by software. It can be written only by privileged access, secure or non-secure.
pub fn set_nspriv(&mut self, val: Priv)
pub fn set_nspriv(&mut self, val: Priv)
PWR non-secure functions privilege configuration This bit is set and reset by software. It can be written only by privileged access, secure or non-secure.
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
Mutably borrows from an owned value. Read more