| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
System Power Management API. More...
Modules | |
| Hooks | |
| System Power Management Hooks.  | |
| Policy | |
| System Power Management Policy API.  | |
Data Structures | |
| struct | pm_notifier | 
Functions | |
| bool | pm_state_force (uint8_t cpu, const struct pm_state_info *info) | 
| Force usage of given power state.  More... | |
| void | pm_notifier_register (struct pm_notifier *notifier) | 
| Register a power management notifier.  More... | |
| int | pm_notifier_unregister (struct pm_notifier *notifier) | 
| Unregister a power management notifier.  More... | |
| const struct pm_state_info * | pm_state_next_get (uint8_t cpu) | 
| Gets the next power state that will be used.  More... | |
System Power Management API.
| void pm_notifier_register | ( | struct pm_notifier * | notifier | ) | 
#include <include/zephyr/pm/pm.h>
Register a power management notifier.
Register the given notifier from the power management notification list.
| notifier | pm_notifier object to be registered. | 
| int pm_notifier_unregister | ( | struct pm_notifier * | notifier | ) | 
#include <include/zephyr/pm/pm.h>
Unregister a power management notifier.
Remove the given notifier from the power management notification list. After that this object callbacks will not be called.
| notifier | pm_notifier object to be unregistered. | 
| bool pm_state_force | ( | uint8_t | cpu, | 
| const struct pm_state_info * | info | ||
| ) | 
#include <include/zephyr/pm/pm.h>
Force usage of given power state.
This function overrides decision made by PM policy forcing usage of given power state upon next entry of the idle thread.
| cpu | CPU index. | 
| info | Power state which should be used in the ongoing suspend operation. | 
| const struct pm_state_info * pm_state_next_get | ( | uint8_t | cpu | ) | 
#include <include/zephyr/pm/pm.h>
Gets the next power state that will be used.
This function returns the next power state that will be used by the SoC.
| cpu | CPU index. |