7#ifndef _POWER_MANAGER_EVENT_H_
8#define _POWER_MANAGER_EVENT_H_
Application Event Manager header.
Application Event Manager profiler tracer header.
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition: app_event_manager.h:143
#define APP_EVENT_SUBMIT(event)
Submit an event.
Definition: app_event_manager.h:198
static void power_manager_restrict(size_t module_idx, enum power_manager_level lvl)
Set the deepest power sleep mode allowed.
Definition: power_manager_event.h:83
power_manager_level
Available power levels.
Definition: power_manager_event.h:30
@ POWER_MANAGER_LEVEL_OFF
Go to full power off.
Definition: power_manager_event.h:42
@ POWER_MANAGER_LEVEL_MAX
Number of supported levels.
Definition: power_manager_event.h:46
@ POWER_MANAGER_LEVEL_ALIVE
Stay alive.
Definition: power_manager_event.h:34
@ POWER_MANAGER_LEVEL_SUSPENDED
Suspend but do not go to power off.
Definition: power_manager_event.h:38
@ APP_EM_ENFORCE_ENUM_SIZE
Definition: power_manager_event.h:49
size_t module_idx
The module index.
Definition: power_manager_event.h:68
struct app_event_header header
Definition: power_manager_event.h:61
enum power_manager_level level
The deepest sleep mode allowed.
Definition: power_manager_event.h:72
An event to specify which power state is allowed by module.
Definition: power_manager_event.h:59