Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
policy.h File Reference
#include <pm/state.h>

Go to the source code of this file.

Functions

struct pm_state_info pm_policy_next_state (int32_t ticks)
 Function to get the next PM state. More...
 

Function Documentation

◆ pm_policy_next_state()

struct pm_state_info pm_policy_next_state ( int32_t  ticks)

Function to get the next PM state.

This function is called by the power subsystem when the system is idle and returns the most appropriate state based on the number of ticks to the next event.

Parameters
ticksThe number of ticks to the next scheduled event.
Returns
The power state the system should use.