power_manager.c File Reference
#include <stddef.h>
#include "power_manager.h"

Go to the source code of this file.

Functions

static status_t POWER_SYS_CallbacksManagement (power_manager_notify_struct_t *notifyStruct, uint8_t *currentStaticCallback, power_manager_policy_t policy)
 
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. More...
 
status_t POWER_SYS_Deinit (void)
 This function deinitializes the Power manager. More...
 
status_t POWER_SYS_GetLastMode (uint8_t *powerModeIndexPtr)
 This function returns the last successfully set power mode. More...
 
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. More...
 
uint8_t POWER_SYS_GetErrorCallbackIndex (void)
 This function returns the last failed notification callback. More...
 
power_manager_callback_user_config_tPOWER_SYS_GetErrorCallback (void)
 This function returns the callback configuration structure for the last failed notification. More...
 
status_t POWER_SYS_SetMode (uint8_t powerModeIndex, power_manager_policy_t policy)
 This function configures the power mode. More...
 

Variables

power_manager_state_t gPowerManagerState
 Power manager internal structure. More...
 

Function Documentation

static status_t POWER_SYS_CallbacksManagement ( power_manager_notify_struct_t notifyStruct,
uint8_t *  currentStaticCallback,
power_manager_policy_t  policy 
)
static

Definition at line 234 of file power_manager.c.

Variable Documentation

power_manager_state_t gPowerManagerState

Power manager internal structure.

Definition at line 51 of file power_manager.c.