Available on crate feature
unstable
only.Expand description
§Hardware and Software Reset
§Overview
Espressif chips provide four types of reset that occur at different levels, namely CPU Reset, Core Reset, System Reset, and Chip Reset. All reset types mentioned above (except Chip Reset) preserve the data stored in internal memory.
The Hardware and Software Reset module provides functions for performing hardware and software resets and includes functions for retrieving the reset reason and the wakeup cause after a reset.
The module defines a set of sleep sources (SleepSource
) that indicate the
source of the wakeup event. It also includes a set of flags (WakeupReason
)
that represent different wakeup sources and enable/disable wakeup triggers
for specific events.
Enums§
- Source of the wakeup event
Functions§
- Retrieves the reason for the last reset as a SocResetReason enum value. Returns
None
if the reset reason cannot be determined. - Performs a software reset on the chip.
- Performs a software reset on the CPU.
- Retrieves the cause of the last wakeup event as a SleepSource enum value.