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 oblrstf(&self) -> bool
pub const fn oblrstf(&self) -> bool
Option byte loading reset flag (1) Reset by software by the RMVF bit. Set by hardware when a reset from the option byte loading occurs.
pub fn set_oblrstf(&mut self, val: bool)
pub fn set_oblrstf(&mut self, val: bool)
Option byte loading reset flag (1) Reset by software by the RMVF bit. Set by hardware when a reset from the option byte loading occurs.
pub const fn borrstf(&self) -> bool
pub const fn borrstf(&self) -> bool
BOR reset flag (1) 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 (1) Reset by software by writing the RMVF bit. Set by hardware when a BOR reset occurs (pwr_bor_rst).
pub const fn pinrstf(&self) -> bool
pub const fn pinrstf(&self) -> bool
pin reset flag (NRST) (1) 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) (1) Reset by software by writing the RMVF bit. Set by hardware when a reset from pin occurs.
pub const fn porrstf(&self) -> bool
pub const fn porrstf(&self) -> bool
POR/PDR reset flag (1) Reset by software by writing the RMVF bit. Set by hardware when a POR/PDR reset occurs.
pub fn set_porrstf(&mut self, val: bool)
pub fn set_porrstf(&mut self, val: bool)
POR/PDR reset flag (1) Reset by software by writing the RMVF bit. Set by hardware when a POR/PDR reset occurs.
pub const fn sftrstf(&self) -> bool
pub const fn sftrstf(&self) -> bool
system reset from CPU reset flag (1) 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 M7.
pub fn set_sftrstf(&mut self, val: bool)
pub fn set_sftrstf(&mut self, val: bool)
system reset from CPU reset flag (1) 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 M7.
pub const fn iwdgrstf(&self) -> bool
pub const fn iwdgrstf(&self) -> bool
independent watchdog reset flag (1) 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 (1) 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 (1) 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 (1) 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
reset due to illegal Stop or Standby flag Reset by software by writing the RMVF bit. Set by hardware when the CPU goes erroneously in Stop or Standby mode,.
pub fn set_lpwrrstf(&mut self, val: bool)
pub fn set_lpwrrstf(&mut self, val: bool)
reset due to illegal Stop or Standby flag Reset by software by writing the RMVF bit. Set by hardware when the CPU goes erroneously in Stop or Standby mode,.
Trait Implementations§
impl Copy for Rsr
impl Eq for Rsr
impl StructuralPartialEq for Rsr
Auto Trait Implementations§
impl Freeze for Rsr
impl RefUnwindSafe for Rsr
impl Send for Rsr
impl Sync for Rsr
impl Unpin for Rsr
impl UnwindSafe for Rsr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)