|
PebbleOS v4.47.0-1312-gf1984a001
|
Data Structures | |
| struct | pbl_reset_cause_ops |
| Reset cause driver operations. More... | |
| struct | pbl_reset_cause |
| Reset cause. More... | |
Macros | |
| #define | PBL_RESET_CAUSE_STATE_DEFINE(sym) |
| Define the class state of a reset cause. | |
| #define | PBL_RESET_CAUSE_INIT(sym, _name, _parent, _ops) |
| Initialize a struct pbl_reset_cause. | |
Reset causes | |
| #define | PBL_RESET_CAUSE_POWER_ON PBL_BIT(0) |
| Power-on. | |
| #define | PBL_RESET_CAUSE_BROWN_OUT PBL_BIT(1) |
| Supply below the brown-out threshold. | |
| #define | PBL_RESET_CAUSE_PIN PBL_BIT(2) |
| Reset pin. | |
| #define | PBL_RESET_CAUSE_SOFTWARE PBL_BIT(3) |
| Software request. | |
| #define | PBL_RESET_CAUSE_WATCHDOG PBL_BIT(4) |
| Watchdog expiry. | |
| #define | PBL_RESET_CAUSE_LOCKUP PBL_BIT(5) |
| CPU lockup. | |
| #define | PBL_RESET_CAUSE_LOW_POWER PBL_BIT(6) |
| Illegal low-power mode entry. | |
| #define | PBL_RESET_CAUSE_WAKEUP PBL_BIT(7) |
| Wake-up from a power-off state. | |
Typedefs | |
| typedef uint32_t | pbl_reset_cause_t |
| Reset causes, as PBL_RESET_CAUSE_* flags. | |
Functions | |
| int | pbl_reset_cause_get (const struct pbl_reset_cause *rc, pbl_reset_cause_t *causes) |
| Get the causes of the last reset. | |
| int | pbl_reset_cause_clear (const struct pbl_reset_cause *rc) |
| Clear the causes latched by the hardware, so the next reset reports its own. | |
Variables | |
| const struct pbl_reset_cause *const | RESET_CAUSE |
| The board's reset cause. | |