Struct Privcfgr
#[repr(transparent)]pub struct Privcfgr(pub u32);Expand description
PWR privilege control register.
Tuple Fields§
§0: u32Implementations§
§impl Privcfgr
impl Privcfgr
pub const fn spriv(&self) -> bool
pub const fn spriv(&self) -> bool
This bit is set and reset by software. It can be written only by a secure privileged access. 0: Read and write to PWR secure functions can be done by privileged or unprivileged access. 1: Read and write to PWR secure functions can be done by privileged access only.
pub fn set_spriv(&mut self, val: bool)
pub fn set_spriv(&mut self, val: bool)
This bit is set and reset by software. It can be written only by a secure privileged access. 0: Read and write to PWR secure functions can be done by privileged or unprivileged access. 1: Read and write to PWR secure functions can be done by privileged access only.
pub const fn nspriv(&self) -> bool
pub const fn nspriv(&self) -> bool
This bit is set and reset by software. It can be written only by privileged access, secure or non-secure. 0: Read and write to PWR non-secure functions can be done by privileged or unprivileged access. 1: Read and write to PWR non-secure functions can be done by privileged access only.
pub fn set_nspriv(&mut self, val: bool)
pub fn set_nspriv(&mut self, val: bool)
This bit is set and reset by software. It can be written only by privileged access, secure or non-secure. 0: Read and write to PWR non-secure functions can be done by privileged or unprivileged access. 1: Read and write to PWR non-secure functions can be done by privileged access only.