S32 SDK
power_manager_S32K1xx.c File Reference
#include <stddef.h>
#include "power_manager.h"
#include "power_smc_hw_access.h"

Go to the source code of this file.

Macros

#define POWER_SET_MODE_TIMEOUT   1000U
 

Functions

static status_t POWER_SYS_WaitForModeStatus (smc_run_mode_t mode)
 
static status_t POWER_SYS_SwitchToSleepingPowerMode (const power_manager_user_config_t *const configPtr)
 
static status_t POWER_SYS_SwitchToRunningPowerMode (const power_manager_user_config_t *const configPtr)
 
status_t POWER_SYS_DoInit (void)
 This function implementation-specific configuration of power modes. More...
 
status_t POWER_SYS_DoDeinit (void)
 This function implementation-specific de-initialization of power manager. More...
 
status_t POWER_SYS_DoSetMode (const power_manager_user_config_t *const configPtr)
 This function configures the power mode. More...
 
power_manager_modes_t POWER_SYS_GetCurrentMode (void)
 This function returns currently running power mode. More...
 

Variables

power_manager_state_t gPowerManagerState
 Power manager internal structure. More...
 

Macro Definition Documentation

#define POWER_SET_MODE_TIMEOUT   1000U

Timeout used for waiting to set new mode

Definition at line 54 of file power_manager_S32K1xx.c.

Function Documentation

static status_t POWER_SYS_SwitchToRunningPowerMode ( const power_manager_user_config_t *const  configPtr)
static

Definition at line 293 of file power_manager_S32K1xx.c.

static status_t POWER_SYS_SwitchToSleepingPowerMode ( const power_manager_user_config_t *const  configPtr)
static

Definition at line 394 of file power_manager_S32K1xx.c.

static status_t POWER_SYS_WaitForModeStatus ( smc_run_mode_t  mode)
static

Definition at line 238 of file power_manager_S32K1xx.c.

Variable Documentation

power_manager_state_t gPowerManagerState

Power manager internal structure.

Definition at line 51 of file power_manager.c.