Struct stm32_metapac::rcc::regs::Rsr
#[repr(transparent)]pub struct Rsr(pub u32);
Expand description
RCC reset status register
Tuple Fields§
§0: u32
Implementations§
§impl Rsr
impl Rsr
pub const fn rmvf(&self) -> bool
pub const fn rmvf(&self) -> bool
remove reset flag Set and reset by software to reset the value of the reset flags.
pub fn set_rmvf(&mut self, val: bool)
pub fn set_rmvf(&mut self, val: bool)
remove reset flag Set and reset by software to reset the value of the reset flags.
pub const fn pinrstf(&self) -> bool
pub const fn pinrstf(&self) -> bool
pin reset flag (NRST) Reset by software by writing the RMVF bit. Set by hardware when a reset from pin occurs.
pub fn set_pinrstf(&mut self, val: bool)
pub fn set_pinrstf(&mut self, val: bool)
pin reset flag (NRST) Reset by software by writing the RMVF bit. Set by hardware when a reset from pin occurs.
pub const fn borrstf(&self) -> bool
pub const fn borrstf(&self) -> bool
BOR reset flag Reset by software by writing the RMVF bit. Set by hardware when a BOR reset occurs (pwr_bor_rst).
pub fn set_borrstf(&mut self, val: bool)
pub fn set_borrstf(&mut self, val: bool)
BOR reset flag Reset by software by writing the RMVF bit. Set by hardware when a BOR reset occurs (pwr_bor_rst).
pub const fn sftrstf(&self) -> bool
pub const fn sftrstf(&self) -> bool
system reset from CPU reset flag Reset by software by writing the RMVF bit. Set by hardware when the system reset is due to CPU.The CPU can generate a system reset by writing SYSRESETREQ bit of AIRCR register of the core M33.
pub fn set_sftrstf(&mut self, val: bool)
pub fn set_sftrstf(&mut self, val: bool)
system reset from CPU reset flag Reset by software by writing the RMVF bit. Set by hardware when the system reset is due to CPU.The CPU can generate a system reset by writing SYSRESETREQ bit of AIRCR register of the core M33.
pub const fn iwdgrstf(&self) -> bool
pub const fn iwdgrstf(&self) -> bool
independent watchdog reset flag Reset by software by writing the RMVF bit. Set by hardware when an independent watchdog reset occurs.
pub fn set_iwdgrstf(&mut self, val: bool)
pub fn set_iwdgrstf(&mut self, val: bool)
independent watchdog reset flag Reset by software by writing the RMVF bit. Set by hardware when an independent watchdog reset occurs.
pub const fn wwdgrstf(&self) -> bool
pub const fn wwdgrstf(&self) -> bool
window watchdog reset flag Reset by software by writing the RMVF bit. Set by hardware when a window watchdog reset occurs.
pub fn set_wwdgrstf(&mut self, val: bool)
pub fn set_wwdgrstf(&mut self, val: bool)
window watchdog reset flag Reset by software by writing the RMVF bit. Set by hardware when a window watchdog reset occurs.
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 Stop or Standby mode entry, whereas the corresponding nRST_STOP, nRST_STBY option bit is cleared. 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 Stop or Standby mode entry, whereas the corresponding nRST_STOP, nRST_STBY option bit is cleared. Cleared by writing to the RMVF bit.