Struct stm32_metapac::rcc::regs::Csr
#[repr(transparent)]pub struct Csr(pub u32);
Expand description
RCC control/status register
Tuple Fields§
§0: u32
Implementations§
§impl Csr
impl Csr
pub const fn rmvf(&self) -> bool
pub const fn rmvf(&self) -> bool
Remove reset flag Set by software to clear the reset flags. Access can be secured by RCC RMVFSEC. 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 RCC SPRIV or when non-secure with RCC NSPRIV.
pub fn set_rmvf(&mut self, val: bool)
pub fn set_rmvf(&mut self, val: bool)
Remove reset flag Set by software to clear the reset flags. Access can be secured by RCC RMVFSEC. 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 RCC SPRIV or when non-secure with RCC NSPRIV.
pub const fn oblrstf(&self) -> bool
pub const fn oblrstf(&self) -> bool
Option byte loader reset flag Set by hardware when a reset from the option byte loading occurs. Cleared by writing to the RMVF bit.
pub fn set_oblrstf(&mut self, val: bool)
pub fn set_oblrstf(&mut self, val: bool)
Option byte loader reset flag Set by hardware when a reset from the option byte loading occurs. Cleared by writing to the RMVF bit.
pub const fn pinrstf(&self) -> bool
pub const fn pinrstf(&self) -> bool
NRST pin reset flag Set by hardware when a reset from the NRST pin occurs. Cleared by writing to the RMVF bit.
pub fn set_pinrstf(&mut self, val: bool)
pub fn set_pinrstf(&mut self, val: bool)
NRST pin reset flag Set by hardware when a reset from the NRST pin occurs. Cleared by writing to the RMVF bit.
pub const fn borrstf(&self) -> bool
pub const fn borrstf(&self) -> bool
BOR flag Set by hardware when a BOR occurs. Cleared by writing to the RMVF bit.
pub fn set_borrstf(&mut self, val: bool)
pub fn set_borrstf(&mut self, val: bool)
BOR flag Set by hardware when a BOR occurs. Cleared by writing to the RMVF bit.
pub const fn sftrstf(&self) -> bool
pub const fn sftrstf(&self) -> bool
Software reset flag Set by hardware when a software reset occurs. Cleared by writing to the RMVF bit.
pub fn set_sftrstf(&mut self, val: bool)
pub fn set_sftrstf(&mut self, val: bool)
Software reset flag Set by hardware when a software reset occurs. Cleared by writing to the RMVF bit.
pub const fn iwdgrstf(&self) -> bool
pub const fn iwdgrstf(&self) -> bool
Independent watchdog reset flag Set by hardware when an independent watchdog reset domain occurs. Cleared by writing to the RMVF bit.
pub fn set_iwdgrstf(&mut self, val: bool)
pub fn set_iwdgrstf(&mut self, val: bool)
Independent watchdog reset flag Set by hardware when an independent watchdog reset domain occurs. Cleared by writing to the RMVF bit.
pub const fn wwdgrstf(&self) -> bool
pub const fn wwdgrstf(&self) -> bool
Window watchdog reset flag Set by hardware when a window watchdog reset occurs. Cleared by writing to the RMVF bit.
pub fn set_wwdgrstf(&mut self, val: bool)
pub fn set_wwdgrstf(&mut self, val: bool)
Window watchdog reset flag Set by hardware when a window watchdog reset occurs. Cleared by writing to the RMVF bit.
pub const fn lpwrrstf(&self) -> bool
pub const fn lpwrrstf(&self) -> bool
Low-power reset flag Set by hardware when a reset occurs due to illegal Stop and Standby modes entry. Cleared by writing to the RMVF bit.
pub fn set_lpwrrstf(&mut self, val: bool)
pub fn set_lpwrrstf(&mut self, val: bool)
Low-power reset flag Set by hardware when a reset occurs due to illegal Stop and Standby modes entry. Cleared by writing to the RMVF bit.