nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
power_off_event Struct Reference

Power off event. More...

#include <power_event.h>

Data Fields

struct app_event_header header
 
bool error
 

Detailed Description

Power off event.

The power off event is submitted by the module that controls the power management in the application to inform other application modules that system power off (sys_poweroff) is about to happen. This happens when system is already suspended by power_down_event and entering power off state is not restricted.

The module that controls the power management in the application registers itself as the final subscriber for the event. When it receives the power off event, it instantly calls the sys_poweroff API. Because of that, after handling the power off event, an application module can no longer trigger system wakeup using a wake_up_event. An application module could trigger system reboot (sys_reboot) to wakeup the system (leaving the power off state goes through the system reboot anyway).


The documentation for this struct was generated from the following file: