|
PebbleOS v4.44.0-105-g1dd754433
|
Data Structures | |
| struct | pbl_sys_off_handler |
| Restart or power-off handler. More... | |
Macros | |
| #define | PBL_SYS_OFF_PRIO_LOW -128 |
| Priority of handlers that must run after the others of their mode. | |
| #define | PBL_SYS_OFF_PRIO_DEFAULT 0 |
| Default handler priority. | |
| #define | PBL_SYS_OFF_PRIO_HIGH 128 |
| Priority of handlers that must run before the others of their mode. | |
| #define | PBL_SYS_OFF_HANDLER_DEFINE(_name, _mode, _priority, _handler, _user_data) |
| Define a restart or power-off handler. | |
Enumerations | |
| enum | pbl_sys_off_mode { PBL_SYS_OFF_RESTART_PREPARE , PBL_SYS_OFF_POWER_OFF_PREPARE , PBL_SYS_OFF_RESTART , PBL_SYS_OFF_POWER_OFF } |
| Stage of a restart or power-off a handler runs in. More... | |
Functions | |
| void | pbl_reboot (void) |
| Restart the system in order. | |
| void | pbl_power_off (void) |
| Power off the system in order. | |
| void | pbl_reboot_emergency (void) |
| Reset the SoC at once, without running any handler. | |
| void | pbl_soc_reset (void) |
| Reset the SoC. | |