S32 SDK
power_manager_S32K1xx.h File Reference
#include "device_registers.h"
#include "status.h"

Go to the source code of this file.

Data Structures

struct  power_manager_user_config_t
 Power mode user configuration structure. More...
 
struct  smc_power_mode_protection_config_t
 Power mode protection configuration Implements smc_power_mode_protection_config_t_Class. More...
 
struct  smc_power_mode_config_t
 Power mode control configuration used for calling the SMC_SYS_SetPowerMode API Implements smc_power_mode_config_t_Class. More...
 
struct  smc_version_info_t
 SMC module version number Implements smc_version_info_t_Class. More...
 
struct  rcm_version_info_t
 RCM module version number Implements rcm_version_info_t_Class. More...
 

Enumerations

enum  power_manager_modes_t {
  POWER_MANAGER_RUN, POWER_MANAGER_VLPR, POWER_MANAGER_STOP, POWER_MANAGER_VLPS,
  POWER_MANAGER_MAX
}
 Power modes enumeration. More...
 
enum  power_mode_stat_t {
  STAT_RUN = 0x01, STAT_STOP = 0x02, STAT_VLPR = 0x04, STAT_VLPW = 0x08,
  STAT_VLPS = 0x10, STAT_HSRUN = 0x80, STAT_INVALID = 0xFF
}
 Power Modes in PMSTAT Implements power_mode_stat_t_Class. More...
 
enum  power_modes_protect_t { ALLOW_HSRUN, ALLOW_VLP, ALLOW_MAX }
 Power Modes Protection Implements power_modes_protect_t_Class. More...
 
enum  smc_run_mode_t { SMC_RUN, SMC_RESERVED_RUN, SMC_VLPR, SMC_HSRUN }
 Run mode definition Implements smc_run_mode_t_Class. More...
 
enum  smc_stop_mode_t { SMC_STOP = 0U, SMC_RESERVED_STOP1 = 1U, SMC_VLPS = 2U }
 Stop mode definition Implements smc_stop_mode_t_Class. More...
 
enum  smc_stop_option_t { SMC_STOP_RESERVED = 0x00, SMC_STOP1 = 0x01, SMC_STOP2 = 0x02 }
 STOP option Implements smc_stop_option_t_Class. More...
 
enum  pmc_int_select_t { PMC_INT_LOW_VOLT_DETECT, PMC_INT_LOW_VOLT_WARN }
 Power management control interrupts Implements pmc_int_select_t_Class. More...
 
enum  rcm_source_names_t {
  RCM_WAKEUP, RCM_LOW_VOLT_DETECT, RCM_LOSS_OF_CLK, RCM_LOSS_OF_LOCK,
  RCM_WATCH_DOG, RCM_EXTERNAL_PIN, RCM_POWER_ON, RCM_SJTAG,
  RCM_CORE_LOCKUP, RCM_SOFTWARE, RCM_SMDM_AP, RCM_STOP_MODE_ACK_ERR,
  RCM_TAMPERR, RCM_CORE1, RCM_SRC_NAME_MAX
}
 System Reset Source Name definitions Implements rcm_source_names_t_Class. More...
 
enum  rcm_filter_run_wait_modes_t { RCM_FILTER_DISABLED, RCM_FILTER_BUS_CLK, RCM_FILTER_LPO_CLK, RCM_FILTER_RESERVED }
 Reset pin filter select in Run and Wait modes Implements rcm_filter_run_wait_modes_t_Class. More...
 
enum  rcm_reset_delay_time_t { RCM_10LPO_CYCLES_DELAY, RCM_34LPO_CYCLES_DELAY, RCM_130LPO_CYCLES_DELAY, RCM_514LPO_CYCLES_DELAY }
 Reset delay time Implements rcm_reset_delay_time_t_Class. More...
 

Functions

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...