19 #ifndef POWER_MANAGER_H
20 #define POWER_MANAGER_H
27 #if defined (S32K144_SERIES)
30 #elif defined (S32V234_SERIES)
32 #include "mc_me_hal.h"
34 #error "No valid CPU defined!"
242 #if defined(__cplusplus)
269 uint8_t configsNumber,
271 uint8_t callbacksNumber);
376 #if defined(__cplusplus)
status_t POWER_SYS_GetLastMode(uint8_t *powerModeIndexPtr)
This function returns the last successfully set power mode.
status_t POWER_SYS_SetMode(uint8_t powerModeIndex, power_manager_policy_t policy)
This function configures the power mode.
status_t POWER_SYS_Deinit(void)
This function deinitializes the Power manager.
status_t POWER_SYS_Init(power_manager_user_config_t *(*powerConfigsPtr)[], uint8_t configsNumber, power_manager_callback_user_config_t *(*callbacksPtr)[], uint8_t callbacksNumber)
Power manager initialization for operation.
power_manager_policy_t
Power manager policies.
uint8_t errorCallbackIndex
uint8_t POWER_SYS_GetErrorCallbackIndex(void)
This function returns the last failed notification callback.
power_manager_notify_t notifyType
uint8_t staticCallbacksNumber
uint8_t targetPowerConfigIndex
power_manager_callback_type_t
The callback type indicates when a callback will be invoked.
status_t(* power_manager_callback_t)(power_manager_notify_struct_t *notify, power_manager_callback_data_t *dataPtr)
Callback prototype.
power_manager_callback_user_config_t * POWER_SYS_GetErrorCallback(void)
This function returns the callback configuration structure for the last failed notification.
power_manager_callback_t callbackFunction
callback configuration structure
power_manager_user_config_t * targetPowerConfigPtr
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
power_manager_callback_data_t * callbackData
power_manager_modes_t POWER_SYS_GetCurrentMode(void)
This function returns currently running power mode.
power_manager_modes_t
Power modes enumeration.
Power mode user configuration structure.
Power mode user configuration structure.
power_manager_notify_t
The PM notification type. Used to notify registered callbacks. Callback notifications can be invoked ...
Power manager internal state structure.
power_manager_policy_t policy
power_manager_callback_type_t callbackType
status_t POWER_SYS_GetLastModeConfig(power_manager_user_config_t **powerModePtr)
This function returns the user configuration structure of the last successfully set power mode...
void power_manager_callback_data_t
Callback-specific data.