Enum bluenrg::event::ResetReason [−][src]
pub enum ResetReason { Normal, Updater, UpdaterBadFlag, UpdaterPin, Watchdog, Lockup, Brownout, Crash, EccError, }
Potential reasons the controller sent the HalInitialized event.
Variants
Normal
Firmware started properly
Updater
Updater mode entered because of updater_start command
UpdaterBadFlag
Updater mode entered because of a bad BLUE flag
UpdaterPin
Updater mode entered with IRQ pin
Watchdog
Reset caused by watchdog
Lockup
Reset due to lockup
Brownout
Brownout reset
Crash
Reset caused by a crash (NMI or Hard Fault)
EccError
Reset caused by an ECC error
Trait Implementations
impl Clone for ResetReason
[src]
impl Clone for ResetReason
fn clone(&self) -> ResetReason
[src]
fn clone(&self) -> ResetReason
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ResetReason
[src]
impl Copy for ResetReason
impl Debug for ResetReason
[src]
impl Debug for ResetReason
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ResetReason
[src]
impl PartialEq for ResetReason
fn eq(&self, other: &ResetReason) -> bool
[src]
fn eq(&self, other: &ResetReason) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl TryFrom<u8> for ResetReason
[src]
impl TryFrom<u8> for ResetReason
type Error = BlueNRGError
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: u8) -> Result<ResetReason, Self::Error>
[src]
fn try_from(value: u8) -> Result<ResetReason, Self::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
Auto Trait Implementations
impl Send for ResetReason
impl Send for ResetReason
impl Sync for ResetReason
impl Sync for ResetReason