pub enum ResetFlag {
LowPower,
WindowWatchdog,
FreeWatchdog,
Software,
Power,
ExternalPin,
OptionByteLoader,
}Expand description
What brought the chip up, as recorded in RSTSCK.
Several can stand after a single reset, and nothing clears them but
clear_reset_flags.
Variants§
LowPower
Deep-sleep or standby reset.
WindowWatchdog
The window watchdog timed out.
FreeWatchdog
The free watchdog timed out.
Software
A software reset was requested.
Power
Power reset.
ExternalPin
The external reset pin was pulled.
OptionByteLoader
The option byte loader ran.
Trait Implementations§
impl Copy for ResetFlag
impl Eq for ResetFlag
impl StructuralPartialEq for ResetFlag
Auto Trait Implementations§
impl Freeze for ResetFlag
impl RefUnwindSafe for ResetFlag
impl Send for ResetFlag
impl Sync for ResetFlag
impl Unpin for ResetFlag
impl UnsafeUnpin for ResetFlag
impl UnwindSafe for ResetFlag
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
Mutably borrows from an owned value. Read more