Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
state.h File Reference
#include <zephyr/sys/util.h>
#include <zephyr/devicetree.h>

Go to the source code of this file.

Data Structures

struct  pm_state_info
 Information about a power management state. More...
 
struct  pm_state_constraint
 Power state information needed to lock a power state. More...
 

Macros

#define PM_STATE_INFO_DT_INIT(node_id)
 Initializer for struct pm_state_info given a DT node identifier with zephyr,power-state compatible.
 
#define PM_STATE_DT_INIT(node_id)
 Initializer for enum pm_state given a DT node identifier with zephyr,power-state compatible.
 
#define DT_NUM_CPU_POWER_STATES(node_id)
 Obtain number of CPU power states supported and enabled by the given CPU node identifier.
 
#define PM_STATE_INFO_LIST_FROM_DT_CPU(node_id)
 Initialize an array of struct pm_state_info with information from all the states present and enabled in the given CPU node identifier.
 
#define PM_STATE_LIST_FROM_DT_CPU(node_id)
 Initialize an array of struct pm_state with information from all the states present and enabled in the given CPU node identifier.
 

Enumerations

enum  pm_state {
  PM_STATE_ACTIVE , PM_STATE_RUNTIME_IDLE , PM_STATE_SUSPEND_TO_IDLE , PM_STATE_STANDBY ,
  PM_STATE_SUSPEND_TO_RAM , PM_STATE_SUSPEND_TO_DISK , PM_STATE_SOFT_OFF , PM_STATE_COUNT
}
 Power management state. More...
 

Functions

uint8_t pm_state_cpu_get_all (uint8_t cpu, const struct pm_state_info **states)
 Obtain information about all supported states by a CPU.