#[repr(u32)]pub enum ResetSubtype {
PowerCycle = 1,
PushButton = 2,
HwSpecialCommand = 3,
HwWatchdog = 4,
ResetCommand = 5,
Exception = 6,
Undefined = 7,
HwDebug = 8,
BankSwitch = 9,
Unknown(u32),
}Expand description
The specific cause of the most recent reset.
Variants§
PowerCycle = 1
Reset caused by a power cycle.
PushButton = 2
Reset caused by a push button.
HwSpecialCommand = 3
Reset caused by a hardware special command.
HwWatchdog = 4
Reset caused by a hardware watchdog timer expiring.
ResetCommand = 5
Reset caused by a cFE ES Reset command.
Exception = 6
Reset caused by a processor exception.
Undefined = 7
Reset cause is undefined.
HwDebug = 8
Reset caused by a hardware debugger.
BankSwitch = 9
Reset reverted to a POWERON due to a boot bank switch.
Unknown(u32)
An unknown or unhandled reset subtype.
Trait Implementations§
Source§impl Clone for ResetSubtype
impl Clone for ResetSubtype
Source§fn clone(&self) -> ResetSubtype
fn clone(&self) -> ResetSubtype
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResetSubtype
impl Debug for ResetSubtype
Source§impl From<u32> for ResetSubtype
impl From<u32> for ResetSubtype
Source§impl PartialEq for ResetSubtype
impl PartialEq for ResetSubtype
impl Copy for ResetSubtype
impl Eq for ResetSubtype
impl StructuralPartialEq for ResetSubtype
Auto Trait Implementations§
impl Freeze for ResetSubtype
impl RefUnwindSafe for ResetSubtype
impl Send for ResetSubtype
impl Sync for ResetSubtype
impl Unpin for ResetSubtype
impl UnsafeUnpin for ResetSubtype
impl UnwindSafe for ResetSubtype
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