Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include <state.h>
Data Fields | |
enum pm_state | state |
uint8_t | substate_id |
uint32_t | min_residency_us |
uint32_t | exit_latency_us |
Information about a power management state
uint32_t pm_state_info::exit_latency_us |
Worst case latency in microseconds required to exit the idle state.
uint32_t pm_state_info::min_residency_us |
Minimum residency duration in microseconds. It is the minimum time for a given idle state to be worthwhile energywise.
enum pm_state pm_state_info::state |
uint8_t pm_state_info::substate_id |
Some platforms have multiple states that map to one Zephyr power state. This property allows the platform distinguish them. e.g:
power-states { state0: state0 { compatible = "zephyr,power-state"; power-state-name = "suspend-to-idle"; substate-id = <1>; min-residency-us = <10000>; exit-latency-us = <100>; }; state1: state1 { compatible = "zephyr,power-state"; power-state-name = "suspend-to-idle"; substate-id = <2>; min-residency-us = <20000>; exit-latency-us = <200>; }; }