rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures
fsl_smc.h File Reference

Data Structures

struct  _smc_version_id
 IP version ID definition. More...
 
struct  _smc_param
 IP parameter definition. More...
 
struct  _smc_power_mode_lls_config
 SMC Low-Leakage Stop power mode configuration. More...
 
struct  _smc_power_mode_vlls_config
 SMC Very Low-Leakage Stop power mode configuration. More...
 

Functions

System mode controller APIs
static void SMC_GetVersionId (SMC_Type *base, smc_version_id_t *versionId)
 Gets the SMC version ID.
 
void SMC_GetParam (SMC_Type *base, smc_param_t *param)
 Gets the SMC parameter.
 
static void SMC_SetPowerModeProtection (SMC_Type *base, uint8_t allowedModes)
 Configures all power mode protection settings.
 
static smc_power_state_t SMC_GetPowerModeState (SMC_Type *base)
 Gets the current power mode status.
 
void SMC_PreEnterStopModes (void)
 Prepares to enter stop modes.
 
void SMC_PostExitStopModes (void)
 Recovers after wake up from stop modes.
 
void SMC_PreEnterWaitModes (void)
 Prepares to enter wait modes.
 
void SMC_PostExitWaitModes (void)
 Recovers after wake up from stop modes.
 
status_t SMC_SetPowerModeRun (SMC_Type *base)
 Configures the system to RUN power mode.
 
status_t SMC_SetPowerModeHsrun (SMC_Type *base)
 Configures the system to HSRUN power mode.
 
status_t SMC_SetPowerModeWait (SMC_Type *base)
 Configures the system to WAIT power mode.
 
status_t SMC_SetPowerModeStop (SMC_Type *base, smc_partial_stop_option_t option)
 Configures the system to Stop power mode.
 
status_t SMC_SetPowerModeVlpr (SMC_Type *base, bool wakeupMode)
 Configures the system to VLPR power mode.
 
status_t SMC_SetPowerModeVlpr (SMC_Type *base)
 Configures the system to VLPR power mode.
 
status_t SMC_SetPowerModeVlpw (SMC_Type *base)
 Configures the system to VLPW power mode.
 
status_t SMC_SetPowerModeVlps (SMC_Type *base)
 Configures the system to VLPS power mode.
 
status_t SMC_SetPowerModeLls (SMC_Type *base, const smc_power_mode_lls_config_t *config)
 Configures the system to LLS power mode.
 
status_t SMC_SetPowerModeLls (SMC_Type *base)
 Configures the system to LLS power mode.
 
status_t SMC_SetPowerModeVlls (SMC_Type *base, const smc_power_mode_vlls_config_t *config)
 Configures the system to VLLS power mode.
 

Driver version

enum  _smc_power_mode_protection {
  kSMC_AllowPowerModeVlls = SMC_PMPROT_AVLLS_MASK , kSMC_AllowPowerModeLls = SMC_PMPROT_ALLS_MASK , kSMC_AllowPowerModeVlp = SMC_PMPROT_AVLP_MASK , kSMC_AllowPowerModeHsrun = SMC_PMPROT_AHSRUN_MASK ,
  kSMC_AllowPowerModeAll
}
 Power Modes Protection. More...
 
enum  _smc_power_state {
  kSMC_PowerStateRun = 0x01U << 0U , kSMC_PowerStateStop = 0x01U << 1U , kSMC_PowerStateVlpr = 0x01U << 2U , kSMC_PowerStateVlpw = 0x01U << 3U ,
  kSMC_PowerStateVlps = 0x01U << 4U , kSMC_PowerStateLls = 0x01U << 5U , kSMC_PowerStateVlls = 0x01U << 6U , kSMC_PowerStateHsrun
}
 Power Modes in PMSTAT. More...
 
enum  _smc_run_mode { kSMC_RunNormal = 0U , kSMC_RunVlpr = 2U , kSMC_Hsrun }
 Run mode definition. More...
 
enum  _smc_stop_mode { kSMC_StopNormal = 0U , kSMC_StopVlps = 2U , kSMC_StopLls = 3U , kSMC_StopVlls }
 Stop mode definition. More...
 
enum  _smc_stop_submode { kSMC_StopSub0 = 0U , kSMC_StopSub1 = 1U , kSMC_StopSub2 = 2U , kSMC_StopSub3 = 3U }
 VLLS/LLS stop sub mode definition. More...
 
enum  _smc_partial_stop_mode { kSMC_PartialStop = 0U , kSMC_PartialStop1 = 1U , kSMC_PartialStop2 = 2U }
 Partial STOP option. More...
 
enum  _smc_status { kStatus_SMC_StopAbort = MAKE_STATUS(kStatusGroup_POWER, 0) }
 SMC configuration status. More...
 
typedef enum _smc_power_mode_protection smc_power_mode_protection_t
 Power Modes Protection.
 
typedef enum _smc_power_state smc_power_state_t
 Power Modes in PMSTAT.
 
typedef enum _smc_run_mode smc_run_mode_t
 Run mode definition.
 
typedef enum _smc_stop_mode smc_stop_mode_t
 Stop mode definition.
 
typedef enum _smc_stop_submode smc_stop_submode_t
 VLLS/LLS stop sub mode definition.
 
typedef enum _smc_partial_stop_mode smc_partial_stop_option_t
 Partial STOP option.
 
typedef struct _smc_version_id smc_version_id_t
 IP version ID definition.
 
typedef struct _smc_param smc_param_t
 IP parameter definition.
 
typedef struct _smc_power_mode_lls_config smc_power_mode_lls_config_t
 SMC Low-Leakage Stop power mode configuration.
 
typedef struct _smc_power_mode_vlls_config smc_power_mode_vlls_config_t
 SMC Very Low-Leakage Stop power mode configuration.
 

Go to the source code of this file.