Struct Sr
#[repr(transparent)]pub struct Sr(pub u32);Expand description
PWR status register.
Tuple Fields§
§0: u32Implementations§
§impl Sr
impl Sr
pub const fn cssf(&self) -> bool
pub const fn cssf(&self) -> bool
This bit is protected against non-secure access when LPMSEC=1 in SECCFGR. This bit is protected against unprivileged access when LPMSEC=1 and SPRIV=1 in PRIVCFGR, or when LPMSEC=0 and NSPRIV=1. Writing 1 to this bit clears the STOPF and SBF flags.
pub fn set_cssf(&mut self, val: bool)
pub fn set_cssf(&mut self, val: bool)
This bit is protected against non-secure access when LPMSEC=1 in SECCFGR. This bit is protected against unprivileged access when LPMSEC=1 and SPRIV=1 in PRIVCFGR, or when LPMSEC=0 and NSPRIV=1. Writing 1 to this bit clears the STOPF and SBF flags.
pub const fn stopf(&self) -> bool
pub const fn stopf(&self) -> bool
This bit is set by hardware when the device enters a Stop mode, and is cleared by software by writing 1 to the CSSF bit. 0: The device did not enter any Stop mode. 1: The device entered a Stop mode.
pub fn set_stopf(&mut self, val: bool)
pub fn set_stopf(&mut self, val: bool)
This bit is set by hardware when the device enters a Stop mode, and is cleared by software by writing 1 to the CSSF bit. 0: The device did not enter any Stop mode. 1: The device entered a Stop mode.