19 #ifndef POWER_MANAGER_H
20 #define POWER_MANAGER_H
28 #if (defined(S32K14x_SERIES))
30 #include "../src/power/S32K1xx/power_manager_S32K1xx.h"
31 #elif (defined(S32V234_SERIES))
33 #include "../src/power/S32V234/power_manager_S32V234.h"
34 #elif (defined(MPC574x_SERIES))
36 #include "../src/power/MPC57xx/power_manager_MPC57xx.h"
38 #error "No valid CPU defined!"
218 #if defined(__cplusplus)
245 uint8_t configsNumber,
247 uint8_t callbacksNumber);
353 #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 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...
power_manager_modes_t
Power modes enumeration.
void power_manager_callback_data_t
Callback-specific data.