pub enum ResetReason {
PowerOnReset,
PinReset,
BrownoutReset,
SysReset,
CpuReset,
Wwdg1Reset,
Iwdg1Reset,
D1ExitStandby,
D2ExitStandby,
D1ErroneousStandby,
Unknown(u32),
}Expand description
CPU Reset Sources
The STM32 RCC peripheral implements the ability for the CPU to detect why a reset occurred.
Variants§
PowerOnReset
PinReset
BrownoutReset
SysReset
CpuReset
Wwdg1Reset
Iwdg1Reset
D1ExitStandby
D2ExitStandby
D1ErroneousStandby
Unknown(u32)
Implementations§
Source§impl ResetReason
impl ResetReason
Sourcepub fn read_clear() -> ResetReason
pub fn read_clear() -> ResetReason
Read and clear the reason the core thinks the reset occurred.
Trait Implementations§
Source§impl Clone for ResetReason
impl Clone for ResetReason
Source§fn clone(&self) -> ResetReason
fn clone(&self) -> ResetReason
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 ResetReason
impl Debug for ResetReason
Source§impl Format for ResetReason
impl Format for ResetReason
impl Copy for ResetReason
Auto Trait Implementations§
impl Freeze for ResetReason
impl RefUnwindSafe for ResetReason
impl Send for ResetReason
impl Sync for ResetReason
impl Unpin for ResetReason
impl UnwindSafe for ResetReason
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