pub struct ResetFlags(pub u32);Expand description
The flags describing what caused the most recent reset, returned by reset_flags.
Which flags are available depends on the chip family.
Tuple Fields§
§0: u32Implementations§
Source§impl ResetFlags
impl ResetFlags
Sourcepub fn nrst_pin(&self) -> bool
pub fn nrst_pin(&self) -> bool
The NRST pin was pulled low.
On many STM32 chips, internal reset sources can also drive NRST low, so this flag is commonly set together with other flags. Check the more specific flags first.
Sourcepub fn software(&self) -> bool
pub fn software(&self) -> bool
A software reset was requested, for example with SCB::sys_reset().
Sourcepub fn independent_watchdog(&self) -> bool
pub fn independent_watchdog(&self) -> bool
The independent watchdog expired.
Sourcepub fn window_watchdog(&self) -> bool
pub fn window_watchdog(&self) -> bool
The window watchdog expired.
Trait Implementations§
Source§impl Clone for ResetFlags
impl Clone for ResetFlags
Source§fn clone(&self) -> ResetFlags
fn clone(&self) -> ResetFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResetFlags
impl Eq for ResetFlags
Source§impl PartialEq for ResetFlags
impl PartialEq for ResetFlags
impl StructuralPartialEq for ResetFlags
Auto Trait Implementations§
impl Freeze for ResetFlags
impl RefUnwindSafe for ResetFlags
impl Send for ResetFlags
impl Sync for ResetFlags
impl Unpin for ResetFlags
impl UnsafeUnpin for ResetFlags
impl UnwindSafe for ResetFlags
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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
Mutably borrows from an owned value. Read more