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.
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
)