Struct Sr
#[repr(transparent)]pub struct Sr(pub u32);
Expand description
status register.
Tuple Fields§
§0: u32
Implementations§
§impl Sr
impl Sr
pub const fn cssf(&self) -> bool
pub const fn cssf(&self) -> bool
Clear Stop and Standby flags Access can be secured by LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV. 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)
Clear Stop and Standby flags Access can be secured by LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV. Writing 1 to this bit clears the STOPF and SBF flags.
pub const fn stopf(&self) -> bool
pub const fn stopf(&self) -> bool
Stop flag This bit is set by hardware when the device enters a Stop or Standby mode at the same time as the sysclk has been set by hardware to select HSI. It’s cleared by software by writing 1 to the CSSF bit and by hardware when SBF is set.
pub fn set_stopf(&mut self, val: bool)
pub fn set_stopf(&mut self, val: bool)
Stop flag This bit is set by hardware when the device enters a Stop or Standby mode at the same time as the sysclk has been set by hardware to select HSI. It’s cleared by software by writing 1 to the CSSF bit and by hardware when SBF is set.
pub const fn sbf(&self) -> Sbf
pub const fn sbf(&self) -> Sbf
Standby flag This bit is set by hardware when the device enters the Standby mode and the CPU restart from its reset vector. It’s cleared by writing 1 to the CSSF bit, or by a power-on reset. It is not cleared by the system reset.
pub fn set_sbf(&mut self, val: Sbf)
pub fn set_sbf(&mut self, val: Sbf)
Standby flag This bit is set by hardware when the device enters the Standby mode and the CPU restart from its reset vector. It’s cleared by writing 1 to the CSSF bit, or by a power-on reset. It is not cleared by the system reset.
pub fn set_stop2f(&mut self, val: bool)
pub fn set_stop2f(&mut self, val: bool)
Stop 2 mode peripherals power down flag.