nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
wake_up_event Struct Reference

Wake up event. More...

#include <power_event.h>

Data Fields

struct app_event_header header
 

Detailed Description

Wake up event.

The wake up event is submitted to trigger exiting the suspended state.

The wake up event can be submitted by any application module after the application is suspended. The event can be submitted for example on button press or sensor trigger.

Every application module that handles wake up event should exit suspended state, turn on functionalities disabled on power_down_event and submit module_state_event with state set to MODULE_STATE_READY. If the module is already woken up, it should ignore the event. The module must not consume the wake up event to ensure that other listeners will be informed.

The module that controls power management of the application should be an only early subscriber for the wake up event. This module can consume the wake up events to prevent waking up the application modules after fatal error.

Note
For more information about suspending modules see power_down_event.

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