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. More...
 
struct  smc_power_mode_config_t
 Power mode control configuration used for calling the SMC_SYS_SetPowerMode API. More...
 
struct  smc_version_info_t
 SMC module version number. More...
 
struct  rcm_version_info_t
 RCM module version number. More...
 

Enumerations

enum  power_manager_modes_t {
  POWER_MANAGER_RUN, POWER_MANAGER_VLPR, POWER_MANAGER_STOP1, POWER_MANAGER_STOP2,
  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. More...
 
enum  power_modes_protect_t { ALLOW_HSRUN, ALLOW_VLP, ALLOW_MAX }
 Power Modes Protection. More...
 
enum  smc_run_mode_t { SMC_RUN, SMC_RESERVED_RUN, SMC_VLPR, SMC_HSRUN }
 Run mode definition. More...
 
enum  smc_stop_mode_t { SMC_STOP = 0U, SMC_RESERVED_STOP1 = 1U, SMC_VLPS = 2U }
 Stop mode definition. More...
 
enum  smc_stop_option_t { SMC_STOP_RESERVED = 0x00, SMC_STOP1 = 0x01, SMC_STOP2 = 0x02 }
 STOP option. More...
 
enum  pmc_int_select_t { PMC_INT_LOW_VOLT_DETECT, PMC_INT_LOW_VOLT_WARN }
 Power management control interrupts. More...
 
enum  rcm_source_names_t {
  RCM_LOW_VOLT_DETECT = 1U, RCM_LOSS_OF_CLK = 2U, RCM_LOSS_OF_LOCK = 3U, RCM_CMU_LOC = 4U,
  RCM_WATCH_DOG = 5U, RCM_EXTERNAL_PIN = 6U, RCM_POWER_ON = 7U, RCM_SJTAG = 8U,
  RCM_CORE_LOCKUP = 9U, RCM_SOFTWARE = 10U, RCM_SMDM_AP = 11U, RCM_STOP_MODE_ACK_ERR = 13U,
  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. 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. 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...
 
bool POWER_SYS_GetResetSrcStatusCmd (const RCM_Type *const baseAddr, const rcm_source_names_t srcName)
 Gets the reset source status. More...