S32 SDK

Detailed Description

This module cover SIM module functionality implemented for S32K144.

Important Notes

The SIM_HAL API provides methods for setting and getting bit fields defined in the SIM module. The are a few exception to this:

  1. SetLpoClks - the register is write once, as such it makes sense to configure all bit fields in a single write
  2. Read only bit fields cannot be configured, as such there is not Set method for them
  3. InitTraceClock - Trace clock configuration bit fields requires specific order

Data Structures

struct  sim_clock_out_config_t
 SIM ClockOut configuration. Implements sim_clock_out_config_t_Class. More...
 
struct  sim_lpo_clock_config_t
 SIM LPO Clocks configuration. Implements sim_lpo_clock_config_t_Class. More...
 
struct  sim_plat_gate_config_t
 SIM Platform Gate Clock configuration. Implements sim_plat_gate_config_t_Class. More...
 
struct  sim_tclk_config_t
 SIM Platform Gate Clock configuration. Implements sim_tclk_config_t_Class. More...
 
struct  sim_trace_clock_config_t
 SIM Debug Trace clock configuration. Implements sim_trace_clock_config_t_Class. More...
 
struct  sim_clock_config_t
 SIM configure structure. Implements sim_clock_config_t_Class. More...
 

Macros

#define NUMBER_OF_TCLK_INPUTS   3U
 

Enumerations

enum  sim_adc_supply_src_t {
  ADC_SUPPLY_VDD = 0U, ADC_SUPPLY_VDDA = 1U, ADC_SUPPLY_VREFH = 2U, ADC_SUPPLY_VDD_3V = 3U,
  ADC_SUPPLY_VDD_FLASH_3V = 4U, ADC_SUPPLY_LV = 5U
}
 Internal supplies monitored by ADC_SUPPLY Implements sim_adc_supply_src_t_Class. More...
 
enum  clock_trace_src_t { CLOCK_TRACE_SRC_CORE_CLK, CLOCK_TRACE_SRC_PLATFORM_CLK }
 Debug trace clock source select Implements clock_trace_src_t_Class. More...
 
enum  sim_pdb_bb_src_t { PDB_BACK_TO_BACK_OPTION_0, PDB_BACK_TO_BACK_OPTION_1 }
 PDB back-to-back select Implements sim_pdb_bb_src_t_Class. More...
 
enum  sim_clkout_src_t {
  SIM_CLKOUT_SEL_SYSTEM_SCG_CLKOUT = 0U, SIM_CLKOUT_SEL_SYSTEM_SOSC_DIV2_CLK = 2U, SIM_CLKOUT_SEL_SYSTEM_SIRC_DIV2_CLK = 4U, SIM_CLKOUT_SEL_SYSTEM_FIRC_DIV2_CLK = 6U,
  SIM_CLKOUT_SEL_SYSTEM_SPLL_DIV2_CLK = 8U, SIM_CLKOUT_SEL_SYSTEM_LPO_128K_CLK = 10U, SIM_CLKOUT_SEL_SYSTEM_LPO_CLK = 12U, SIM_CLKOUT_SEL_SYSTEM_RTC_CLK = 14U
}
 SIM CLKOUT select Implements sim_clkout_src_t_Class. More...
 
enum  sim_clkout_div_t {
  SIM_CLKOUT_DIV_BY_1 = 0U, SIM_CLKOUT_DIV_BY_2 = 1U, SIM_CLKOUT_DIV_BY_3 = 2U, SIM_CLKOUT_DIV_BY_4 = 3U,
  SIM_CLKOUT_DIV_BY_5 = 4U, SIM_CLKOUT_DIV_BY_6 = 5U, SIM_CLKOUT_DIV_BY_7 = 6U, SIM_CLKOUT_DIV_BY_8 = 7U
}
 SIM CLKOUT divider Implements sim_clkout_div_t_Class. More...
 
enum  sim_ftm_clk_sel_t { SIM_FTM_CLK_SEL_00 = 0U, SIM_FTM_CLK_SEL_01 = 1U, SIM_FTM_CLK_SEL_10 = 2U, SIM_FTM_CLK_SEL_11 = 3U }
 SIM FlexTimer external clock select Implements sim_ftm_clk_sel_t_Class. More...
 
enum  sim_rtc_clk_sel_src_t { SIM_RTCCLK_SEL_SOSCDIV1_CLK, SIM_RTCCLK_SEL_LPO_32K, SIM_RTCCLK_SEL_RTC_CLKIN, SIM_RTCCLK_SEL_FIRCDIV1_CLK }
 SIM CLK32KSEL clock source select Implements sim_rtc_clk_sel_src_t_Class. More...
 
enum  sim_lpoclk_sel_src_t { SIM_LPO_CLK_SEL_LPO_128K, SIM_LPO_CLK_SEL_NO_CLOCK, SIM_LPO_CLK_SEL_LPO_32K, SIM_LPO_CLK_SEL_LPO_1K }
 SIM LPOCLKSEL clock source select Implements sim_lpoclk_sel_src_t_Class. More...
 
enum  sim_adc_pretrg_sel_t { SIM_ADC_PRETRG_SEL_PDB, SIM_ADC_PRETRG_SEL_TRGMUX, SIM_ADC_PRETRG_SEL_SOFTWARE, SIM_ADC_PRETRG_SEL_RESERVED }
 SIM ADCx pre-trigger select Implements sim_adc_pretrg_sel_t_Class. More...
 
enum  sim_adc_sw_pretrg_sel_t {
  SIM_ADC_SW_PRETRG_SEL_DISABLED = 0U, SIM_ADC_SW_PRETRG_SEL_RESERVED0 = 1U, SIM_ADC_SW_PRETRG_SEL_RESERVED1 = 2U, SIM_ADC_SW_PRETRG_SEL_RESERVED2 = 3U,
  SIM_ADC_SW_PRETRG_SEL_0 = 4U, SIM_ADC_SW_PRETRG_SEL_1 = 5U, SIM_ADC_SW_PRETRG_SEL_2 = 6U, SIM_ADC_SW_PRETRG_SEL_3 = 7U
}
 SIM ADCx software pre-trigger select Implements sim_adc_sw_pretrg_sel_t_Class. More...
 
enum  sim_adc_trg_sel_t { SIM_ADC_TRG_SEL_PDB = 0U, SIM_ADC_TRG_SEL_TRGMUX = 1U }
 SIM ADCx trigger select Implements sim_adc_trg_sel_t_Class. More...
 
enum  sim_ftm_ch_out_src_t { SIM_FTM_CH_OUT_SRC_0, SIM_FTM_CH_OUT_SRC_1 }
 SIM FlexTimer x channel y output source select Implements sim_ftm_ch_out_src_t_Class. More...
 
enum  sim_ftm_ch_src_t { SIM_FTM_CH_SRC_0 = 0U, SIM_FTM_CH_SRC_1 = 1U, SIM_FTM_CH_SRC_2 = 2U, SIM_FTM_CH_SRC_3 = 3U }
 SIM FlexTimer x channel y input source select Implements sim_ftm_ch_src_t_Class. More...
 
enum  sim_ram_size_t { SIM_RAM_SIZE_48KB = 0xDU, SIM_RAM_SIZE_64KB = 0xFU }
 SIM RAM size Implements sim_ram_size_t_Class. More...
 
enum  sim_package_t { SIM_PACKAGE_64_LQFP = 0x3U, SIM_PACKAGE_100_LQFP = 0x4U, SIM_PACKAGE_100_MAP_BGA = 0x8U }
 SIM Package Implements sim_package_t_Class. More...
 
enum  sim_features_t { SIM_FEATURE_FLEXIO = (1U << 5U), SIM_FEATURE_ISO_CAN_FD = (1U << 6U), SIM_FEATURE_SECURITY = (1U << 7U) }
 SIM Features Implements sim_features_t_Class. More...
 
enum  sim_eee_sram_size_t {
  SIM_EEE_SRAM_SIZE_4KB = 0x2U, SIM_EEE_SRAM_SIZE_2KB = 0x3U, SIM_EEE_SRAM_SIZE_1KB = 0x4U, SIM_EEE_SRAM_SIZE_512B = 0x5U,
  SIM_EEE_SRAM_SIZE_256B = 0x6U, SIM_EEE_SRAM_SIZE_128B = 0x7U, SIM_EEE_SRAM_SIZE_64B = 0x8U, SIM_EEE_SRAM_SIZE_32B = 0x9U
}
 SIM EEE SRAM Size Implements sim_eee_sram_size_t_Class. More...
 
enum  sim_flexnvm_partition_t {
  SIM_DEPART_0000 = 0x0U, SIM_DEPART_0011 = 0x3U, SIM_DEPART_0100 = 0x4U, SIM_DEPART_1000 = 0x8U,
  SIM_DEPART_1010 = 0xAU, SIM_DEPART_1011 = 0xBU, SIM_DEPART_1100 = 0xCU, SIM_DEPART_1111 = 0xFU
}
 SIM FlexNVM partition Implements sim_flexnvm_partition_t_Class. More...
 

Functions

static void SIM_HAL_SetSramLRetentionCmd (SIM_Type *base, bool setting)
 Set SRAM L Retention setting. More...
 
static bool SIM_HAL_GetSramLRetentionCmd (const SIM_Type *base)
 Get SRAM L Retention setting. More...
 
static void SIM_HAL_SetSramURetentionCmd (SIM_Type *base, bool setting)
 Set SRAM U Retention setting. More...
 
static bool SIM_HAL_GetSramURetentionCmd (const SIM_Type *base)
 Get SRAM U Retention setting. More...
 
static void SIM_HAL_SetAdcSupplyEnCmd (SIM_Type *base, bool setting)
 Set ADC Supply Enable setting. More...
 
static bool SIM_HAL_GetAdcSupplyEnCmd (const SIM_Type *base)
 Get ADC Supply Enable setting. More...
 
static void SIM_HAL_SetAdcSupplySrc (SIM_Type *base, sim_adc_supply_src_t setting)
 Set ADC Supply Enable setting. More...
 
static sim_adc_supply_src_t SIM_HAL_GetAdcSupplySrc (const SIM_Type *base)
 Get ADC supply source. More...
 
static void SIM_HAL_SetPdbBackToBackSrc (SIM_Type *base, sim_pdb_bb_src_t setting)
 Set PDB back-to-back selection. More...
 
static sim_pdb_bb_src_t SIM_HAL_GetPdbBackToBackSrc (const SIM_Type *base)
 Get PDB back-to-back selection. More...
 
void SIM_HAL_GetClkoutDefaultConfig (sim_clock_out_config_t *config)
 Get the default SIM CLKOUT clock configuration. More...
 
void SIM_HAL_GetClkoutConfig (const SIM_Type *base, sim_clock_out_config_t *config)
 Get the SIM CLKOUT clock configuration. More...
 
void SIM_HAL_InitClkout (SIM_Type *base, const sim_clock_out_config_t *config)
 Initialize SIM CLKOUT. More...
 
static void SIM_HAL_DeinitClkout (SIM_Type *base)
 De-initialize SIM CLKOUT. More...
 
static void SIM_HAL_SetAdcInterleaveSel (SIM_Type *base, uint8_t setting)
 Set ADC interleave channel select. More...
 
static uint8_t SIM_HAL_GetAdcInterleaveSel (const SIM_Type *base)
 Get ADC interleave channel select. More...
 
void SIM_HAL_SetFtmExternalClkPinMode (SIM_Type *base, uint32_t instance, sim_ftm_clk_sel_t select)
 Sets the FlexTimer x external clock pin select setting. More...
 
sim_ftm_clk_sel_t SIM_HAL_GetFtmExternalClkPinMode (const SIM_Type *base, uint32_t instance)
 Gets the FlexTimer x external clock pin select setting. More...
 
void SIM_HAL_SetFtmFaultSelMode (SIM_Type *base, uint32_t instance, uint8_t select)
 Sets the FlexTimer x faults select settings. More...
 
uint8_t SIM_HAL_GetFtmFaultSelMode (const SIM_Type *base, uint32_t instance)
 Gets the FlexTimer x faults select settings. More...
 
static sim_rtc_clk_sel_src_t SIM_HAL_GetRtcClkSrc (const SIM_Type *base)
 Get the clock selection of RTCCLKSEL. More...
 
static void SIM_HAL_SetLpoClocks (SIM_Type *base, sim_lpo_clock_config_t setting)
 Set the clock selection of LPOCLKSEL. More...
 
static sim_lpoclk_sel_src_t SIM_HAL_GetLpoClkSrc (const SIM_Type *base)
 Get the clock selection of LPOCLKSEL. More...
 
static bool SIM_HAL_GetLpo32kClkEnCmd (const SIM_Type *base)
 Gets the 32 kHz LPO clock Control. More...
 
static bool SIM_HAL_GetLpo1kClkEnCmd (const SIM_Type *base)
 Gets the 1 kHz LPO clock Control. More...
 
uint32_t SIM_HAL_GetLpoFreq (const SIM_Type *base)
 Get SIM LPO clock frequency (LPO_CLOCK). More...
 
uint32_t SIM_HAL_GetLpo128KFreq (const SIM_Type *base)
 Get SIM LPO 128KHz clock frequency (LPO_128K_CLOCK). More...
 
uint32_t SIM_HAL_GetLpo32KFreq (const SIM_Type *base)
 Get SIM LPO 32KHz clock frequency (LPO_32K_CLOCK). More...
 
uint32_t SIM_HAL_GetLpo1KFreq (const SIM_Type *base)
 Get SIM LPO 1KHz clock frequency (LPO_1K_CLOCK). More...
 
void SIM_HAL_SetAdcPreTriggerMode (SIM_Type *base, uint32_t instance, sim_adc_pretrg_sel_t select)
 Sets the ADCx pre-trigger select setting. More...
 
sim_adc_pretrg_sel_t SIM_HAL_GetAdcPreTriggerMode (const SIM_Type *base, uint32_t instance)
 Gets the ADCx pre-trigger select setting. More...
 
void SIM_HAL_SetAdcSwPreTriggerMode (SIM_Type *base, uint32_t instance, sim_adc_sw_pretrg_sel_t select)
 Sets the ADCx software pre-trigger select setting. More...
 
sim_adc_sw_pretrg_sel_t SIM_HAL_GetAdcSwPreTriggerMode (const SIM_Type *base, uint32_t instance)
 Gets the ADCx software pre-trigger select setting. More...
 
void SIM_HAL_SetAdcTriggerMode (SIM_Type *base, uint32_t instance, sim_adc_trg_sel_t select)
 Sets the ADCx trigger select setting. More...
 
sim_adc_trg_sel_t SIM_HAL_GetAdcTriggerMode (const SIM_Type *base, uint32_t instance)
 Gets the ADCx trigger select setting. More...
 
static void SIM_HAL_SetFtmGlobalLoad (SIM_Type *base, bool enable)
 Configure the FTM Global Load from the FTM Option Register 1. More...
 
static bool SIM_HAL_GetFtmGlobalLoad (const SIM_Type *base)
 Gets the FTM Global Load from the FTM Option Register 1. More...
 
void SIM_HAL_SetFtmChOutSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel, sim_ftm_ch_out_src_t select)
 Sets the FlexTimer x channel y output source select setting. More...
 
sim_ftm_ch_out_src_t SIM_HAL_GetFtmChOutSrcMode (const SIM_Type *base, uint32_t instance, uint8_t channel)
 Gets the FlexTimer x channel y output source select setting. More...
 
void SIM_HAL_SetFtmChSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel, sim_ftm_ch_src_t select)
 Sets the FlexTimer x channel y input source select setting. More...
 
sim_ftm_ch_src_t SIM_HAL_GetFtmChSrcMode (const SIM_Type *base, uint32_t instance, uint8_t channel)
 Gets the FlexTimer x channel y input source select setting. More...
 
void SIM_HAL_SetFtmSyncCmd (SIM_Type *base, uint32_t instance, bool sync)
 Set FlexTimer x hardware trigger 0 software synchronization. More...
 
static bool SIM_HAL_GetFtmSyncCmd (const SIM_Type *base, uint32_t instance)
 Get FlexTimer x hardware trigger software synchronization setting. More...
 
static void SIM_HAL_SetObeCtrlCmd (SIM_Type *base, uint32_t instance, bool setting)
 Sets FTM channel state. More...
 
static bool SIM_HAL_GetObeCtrlCmd (const SIM_Type *base, uint32_t instance)
 Gets FTM channel state. More...
 
static uint32_t SIM_HAL_GetGeneration (const SIM_Type *base)
 Gets the product series Generation from System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetSubSeries (const SIM_Type *base)
 Gets the sub-series in the System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetDerivate (const SIM_Type *base)
 Gets the Derivate from the System Device ID register (SIM_SDID). More...
 
static sim_ram_size_t SIM_HAL_GetRamSize (const SIM_Type *base)
 Gets RAM size. More...
 
static uint32_t SIM_HAL_GetRevId (const SIM_Type *base)
 Gets the Revision ID in the System Device ID register (SIM_SDID). More...
 
static sim_package_t SIM_HAL_GetPackage (const SIM_Type *base)
 Gets the Package in System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetFeatures (const SIM_Type *base)
 Gets the Features from System Device ID register (SIM_SDID). More...
 
static void SIM_HAL_SetEimClockGate (SIM_Type *base, bool enable)
 Set the EIM Clock Gate from the Platform Clock Gating Control Register. More...
 
static bool SIM_HAL_GetEimClockGate (const SIM_Type *base)
 Gets the EIM Clock Gate from the Platform Clock Gating Control Register. More...
 
static void SIM_HAL_SetErmClockGate (SIM_Type *base, bool enable)
 Set the ERM Clock Gate from the Platform Clock Gating Control Register. More...
 
static bool SIM_HAL_GetErmClockGate (const SIM_Type *base)
 Gets the ERM Clock Gate from the Platform Clock Gating Control Register. More...
 
static void SIM_HAL_SetDmaClockGate (SIM_Type *base, bool enable)
 Set the DMA Clock Gate from the Platform Clock Gating Control Register. More...
 
static bool SIM_HAL_GetDmaClockGate (const SIM_Type *base)
 Gets the DMA Clock Gate from the Platform Clock Gating Control Register. More...
 
static void SIM_HAL_SetMpuClockGate (SIM_Type *base, bool enable)
 Configure the MPU Clock Gating from the Platform Clock Gating Control Register. More...
 
static bool SIM_HAL_GetMpuClockGate (const SIM_Type *base)
 Gets the MPU Clock Gating from the Platform Clock Gating Control Register. More...
 
static void SIM_HAL_SetMscmClockGate (SIM_Type *base, bool enable)
 Configure the MSCM Clock Gating from the Platform Clock Gating Control Register. More...
 
static bool SIM_HAL_GetMscmClockGate (const SIM_Type *base)
 Gets the MSCM Clock Gating from the Platform Clock Gating Control Register. More...
 
static sim_eee_sram_size_t SIM_HAL_GetEeeSramSize (const SIM_Type *base)
 Gets the EEE SRAM size in the Flash Configuration Register 1. More...
 
static sim_flexnvm_partition_t SIM_HAL_GetFlexNvmPartition (const SIM_Type *base)
 Gets the FlexNVM partition in the Flash Configuration Register 1. More...
 
static uint32_t SIM_HAL_GetUniqueIdHigh (const SIM_Type *base)
 Gets the UID127_96 from Unique Identification Register High. More...
 
static uint32_t SIM_HAL_GetUniqueIdMidHigh (const SIM_Type *base)
 Gets the UID95_64 from Unique Identification Register Mid High. More...
 
static uint32_t SIM_HAL_GetUniqueIdMidLow (const SIM_Type *base)
 Gets the UID63_32 from Unique Identification Register Mid Low. More...
 
static uint32_t SIM_HAL_GetUniqueIdLow (const SIM_Type *base)
 Gets the UID31_0 from Unique Identification Register Low. More...
 
void SIM_HAL_GetTraceClockDefaultConfig (sim_trace_clock_config_t *config)
 Get the default Debug Trace clock configuration. More...
 
void SIM_HAL_InitTraceClock (SIM_Type *base, const sim_trace_clock_config_t *config)
 Initialize SIM Debug Trace. More...
 
static void SIM_HAL_DeinitTraceClock (SIM_Type *base)
 De-initialize SIM Debug Trace. More...
 
static void SIM_HAL_SetSwTriggerTrgmux (SIM_Type *base, bool disable)
 Sets the Software Trigger bit to TRGMUX setting. More...
 
static uint32_t SIM_HAL_GetSwTriggerTrgmux (const SIM_Type *base)
 Gets the Software Trigger bit to TRGMUX. More...
 
static void SIM_HAL_SetTClkFreq (SIM_Type *base, uint8_t index, uint32_t frequency)
 Sets the TClk Frequency. More...
 
static uint32_t SIM_HAL_GetTClkFreq (SIM_Type *base, uint8_t index)
 Gets the TClk Frequency. More...
 

Variables

uint32_t g_TClkFreq [NUMBER_OF_TCLK_INPUTS]
 

Macro Definition Documentation

#define NUMBER_OF_TCLK_INPUTS   3U

Definition at line 47 of file sim_hal_S32K144.h.

Enumeration Type Documentation

Debug trace clock source select Implements clock_trace_src_t_Class.

Enumerator
CLOCK_TRACE_SRC_CORE_CLK 

core clock

CLOCK_TRACE_SRC_PLATFORM_CLK 

platform clock

Definition at line 69 of file sim_hal_S32K144.h.

SIM ADCx pre-trigger select Implements sim_adc_pretrg_sel_t_Class.

Enumerator
SIM_ADC_PRETRG_SEL_PDB 

PDB pre-trigger

SIM_ADC_PRETRG_SEL_TRGMUX 

TRGMUX pre-trigger

SIM_ADC_PRETRG_SEL_SOFTWARE 

Software pre-trigger

SIM_ADC_PRETRG_SEL_RESERVED 

Reserved

Definition at line 158 of file sim_hal_S32K144.h.

Internal supplies monitored by ADC_SUPPLY Implements sim_adc_supply_src_t_Class.

Enumerator
ADC_SUPPLY_VDD 

5V input VDD supply

ADC_SUPPLY_VDDA 

5V input analog supply

ADC_SUPPLY_VREFH 

ADC Reference Supply

ADC_SUPPLY_VDD_3V 

3.3V Oscillator Regulator Output

ADC_SUPPLY_VDD_FLASH_3V 

3.3V flash regulator output

ADC_SUPPLY_LV 

1.2V core regulator output

Definition at line 55 of file sim_hal_S32K144.h.

SIM ADCx software pre-trigger select Implements sim_adc_sw_pretrg_sel_t_Class.

Enumerator
SIM_ADC_SW_PRETRG_SEL_DISABLED 

Software pre-trigger disabled

SIM_ADC_SW_PRETRG_SEL_RESERVED0 

Reserved

SIM_ADC_SW_PRETRG_SEL_RESERVED1 

Reserved

SIM_ADC_SW_PRETRG_SEL_RESERVED2 

Reserved

SIM_ADC_SW_PRETRG_SEL_0 

Software pre-trigger 0

SIM_ADC_SW_PRETRG_SEL_1 

Software pre-trigger 1

SIM_ADC_SW_PRETRG_SEL_2 

Software pre-trigger 2

SIM_ADC_SW_PRETRG_SEL_3 

Software pre-trigger 3

Definition at line 170 of file sim_hal_S32K144.h.

SIM ADCx trigger select Implements sim_adc_trg_sel_t_Class.

Enumerator
SIM_ADC_TRG_SEL_PDB 

PDB output

SIM_ADC_TRG_SEL_TRGMUX 

TRGMUX output

Definition at line 186 of file sim_hal_S32K144.h.

SIM CLKOUT divider Implements sim_clkout_div_t_Class.

Enumerator
SIM_CLKOUT_DIV_BY_1 

Divided by 1

SIM_CLKOUT_DIV_BY_2 

Divided by 2

SIM_CLKOUT_DIV_BY_3 

Divided by 3

SIM_CLKOUT_DIV_BY_4 

Divided by 4

SIM_CLKOUT_DIV_BY_5 

Divided by 5

SIM_CLKOUT_DIV_BY_6 

Divided by 6

SIM_CLKOUT_DIV_BY_7 

Divided by 7

SIM_CLKOUT_DIV_BY_8 

Divided by 8

Definition at line 106 of file sim_hal_S32K144.h.

SIM CLKOUT select Implements sim_clkout_src_t_Class.

Enumerator
SIM_CLKOUT_SEL_SYSTEM_SCG_CLKOUT 

SCG CLKOUT

SIM_CLKOUT_SEL_SYSTEM_SOSC_DIV2_CLK 

SOSC DIV2 CLK

SIM_CLKOUT_SEL_SYSTEM_SIRC_DIV2_CLK 

SIRC DIV2 CLK

SIM_CLKOUT_SEL_SYSTEM_FIRC_DIV2_CLK 

FIRC DIV2 CLK

SIM_CLKOUT_SEL_SYSTEM_SPLL_DIV2_CLK 

SPLL DIV2 CLK

SIM_CLKOUT_SEL_SYSTEM_LPO_128K_CLK 

LPO CLK 128 Khz

SIM_CLKOUT_SEL_SYSTEM_LPO_CLK 

LPO CLK as selected by SIM LPO CLK Select

SIM_CLKOUT_SEL_SYSTEM_RTC_CLK 

RTC CLK as selected by SIM CLK 32 KHz Select

Definition at line 90 of file sim_hal_S32K144.h.

SIM EEE SRAM Size Implements sim_eee_sram_size_t_Class.

Enumerator
SIM_EEE_SRAM_SIZE_4KB 

SIM EEE SRAM size - 4 KB

SIM_EEE_SRAM_SIZE_2KB 

SIM EEE SRAM size - 2 KB

SIM_EEE_SRAM_SIZE_1KB 

SIM EEE SRAM size - 1 KB

SIM_EEE_SRAM_SIZE_512B 

SIM EEE SRAM size - 512 Bytes

SIM_EEE_SRAM_SIZE_256B 

SIM EEE SRAM size - 256 Bytes

SIM_EEE_SRAM_SIZE_128B 

SIM EEE SRAM size - 128 Bytes

SIM_EEE_SRAM_SIZE_64B 

SIM EEE SRAM size - 64 Bytes

SIM_EEE_SRAM_SIZE_32B 

SIM EEE SRAM size - 32 Bytes

Definition at line 299 of file sim_hal_S32K144.h.

SIM Features Implements sim_features_t_Class.

Enumerator
SIM_FEATURE_FLEXIO 

FlexIO

SIM_FEATURE_ISO_CAN_FD 

ISO CAN-FD

SIM_FEATURE_SECURITY 

Security

Definition at line 288 of file sim_hal_S32K144.h.

SIM FlexNVM partition Implements sim_flexnvm_partition_t_Class.

Enumerator
SIM_DEPART_0000 

Data flash 64 KByte, EEPROM backup 0 KByte

SIM_DEPART_0011 

Data flash 32 KByte, EEPROM backup 32 KByte

SIM_DEPART_0100 

Data flash 0 KByte, EEPROM backup 64 KByte

SIM_DEPART_1000 

Data flash 0 KByte, EEPROM backup 64 KByte

SIM_DEPART_1010 

Data flash 16 KByte, EEPROM backup 48 KByte

SIM_DEPART_1011 

Data flash 32 KByte, EEPROM backup 32 KByte

SIM_DEPART_1100 

Data flash 64 KByte, EEPROM backup 0 KByte

SIM_DEPART_1111 

Data flash 64 KByte, EEPROM backup 0 KByte

Definition at line 315 of file sim_hal_S32K144.h.

SIM FlexTimer x channel y output source select Implements sim_ftm_ch_out_src_t_Class.

Enumerator
SIM_FTM_CH_OUT_SRC_0 

FlexTimer x channel y output source 0.

SIM_FTM_CH_OUT_SRC_1 

FlexTimer x channel y output source 1.

Definition at line 196 of file sim_hal_S32K144.h.

SIM FlexTimer x channel y input source select Implements sim_ftm_ch_src_t_Class.

Enumerator
SIM_FTM_CH_SRC_0 

FlexTimer x channel y input source 0.

SIM_FTM_CH_SRC_1 

FlexTimer x channel y input source 1.

SIM_FTM_CH_SRC_2 

FlexTimer x channel y input source 2.

SIM_FTM_CH_SRC_3 

FlexTimer x channel y input source 3.

Definition at line 206 of file sim_hal_S32K144.h.

SIM FlexTimer external clock select Implements sim_ftm_clk_sel_t_Class.

Enumerator
SIM_FTM_CLK_SEL_00 

FTM external clock driven by TCLK0 pin.

SIM_FTM_CLK_SEL_01 

FTM external clock driven by TCLK1 pin.

SIM_FTM_CLK_SEL_10 

FTM external clock driven by TCLK2 pin.

SIM_FTM_CLK_SEL_11 

No clock input

Definition at line 122 of file sim_hal_S32K144.h.

SIM LPOCLKSEL clock source select Implements sim_lpoclk_sel_src_t_Class.

Enumerator
SIM_LPO_CLK_SEL_LPO_128K 
SIM_LPO_CLK_SEL_NO_CLOCK 
SIM_LPO_CLK_SEL_LPO_32K 
SIM_LPO_CLK_SEL_LPO_1K 

Definition at line 146 of file sim_hal_S32K144.h.

SIM Package Implements sim_package_t_Class.

Enumerator
SIM_PACKAGE_64_LQFP 

SIM Package - 64 LQFP

SIM_PACKAGE_100_LQFP 

SIM Package - 100 LQFP

SIM_PACKAGE_100_MAP_BGA 

SIM Package - 100 MAP BGA

Definition at line 277 of file sim_hal_S32K144.h.

PDB back-to-back select Implements sim_pdb_bb_src_t_Class.

Enumerator
PDB_BACK_TO_BACK_OPTION_0 

PDBx ch0 back-to-back operation with ADCx COCO[7:0]

PDB_BACK_TO_BACK_OPTION_1 

Ch0 of PDBx back-to-back operation with COCO[7:0] of ADCx

Definition at line 80 of file sim_hal_S32K144.h.

SIM RAM size Implements sim_ram_size_t_Class.

Enumerator
SIM_RAM_SIZE_48KB 

SIM Ram size - 48KB

SIM_RAM_SIZE_64KB 

SIM Ram size - 64KB

Definition at line 267 of file sim_hal_S32K144.h.

SIM CLK32KSEL clock source select Implements sim_rtc_clk_sel_src_t_Class.

Enumerator
SIM_RTCCLK_SEL_SOSCDIV1_CLK 
SIM_RTCCLK_SEL_LPO_32K 
SIM_RTCCLK_SEL_RTC_CLKIN 
SIM_RTCCLK_SEL_FIRCDIV1_CLK 

Definition at line 134 of file sim_hal_S32K144.h.

Function Documentation

static void SIM_HAL_DeinitClkout ( SIM_Type base)
inlinestatic

De-initialize SIM CLKOUT.

This function disables the SIM CLKOUT.

Parameters
[in]baseRegister base address for the SIM instance. Implements SIM_HAL_DeinitClkout_Activity

Definition at line 614 of file sim_hal_S32K144.h.

static void SIM_HAL_DeinitTraceClock ( SIM_Type base)
inlinestatic

De-initialize SIM Debug Trace.

This function disables the SIM Debug Trace clock.

Parameters
[in]baseRegister base address for the SIM instance. Implements SIM_HAL_DeinitTraceClock_Activity

Definition at line 1705 of file sim_hal_S32K144.h.

static uint8_t SIM_HAL_GetAdcInterleaveSel ( const SIM_Type base)
inlinestatic

Get ADC interleave channel select.

This function gets value of ADC interleave channel select.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current value. Implements SIM_HAL_GetAdcInterleaveSel_Activity

Definition at line 649 of file sim_hal_S32K144.h.

sim_adc_pretrg_sel_t SIM_HAL_GetAdcPreTriggerMode ( const SIM_Type base,
uint32_t  instance 
)

Gets the ADCx pre-trigger select setting.

This function gets the ADCx pre-trigger select setting.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
Returns
select ADCax pre-trigger select setting

Definition at line 502 of file sim_hal_S32K144.c.

static bool SIM_HAL_GetAdcSupplyEnCmd ( const SIM_Type base)
inlinestatic

Get ADC Supply Enable setting.

This function gets internal supply monitoring on ADC0 channel AD21 setting.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetAdcSupplyEnCmd_Activity

Definition at line 454 of file sim_hal_S32K144.h.

static sim_adc_supply_src_t SIM_HAL_GetAdcSupplySrc ( const SIM_Type base)
inlinestatic

Get ADC supply source.

This function gets ADC supply source.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetAdcSupplySrc_Activity

Definition at line 489 of file sim_hal_S32K144.h.

sim_adc_sw_pretrg_sel_t SIM_HAL_GetAdcSwPreTriggerMode ( const SIM_Type base,
uint32_t  instance 
)

Gets the ADCx software pre-trigger select setting.

This function gets the ADCx software pre-trigger select setting.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
Returns
select ADCx pre-trigger select setting

Definition at line 586 of file sim_hal_S32K144.c.

sim_adc_trg_sel_t SIM_HAL_GetAdcTriggerMode ( const SIM_Type base,
uint32_t  instance 
)

Gets the ADCx trigger select setting.

This function gets the ADCx trigger select setting.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
Returns
ADCx trigger select setting

Definition at line 695 of file sim_hal_S32K144.c.

void SIM_HAL_GetClkoutConfig ( const SIM_Type base,
sim_clock_out_config_t config 
)

Get the SIM CLKOUT clock configuration.

This function gets the CLKOUT clock configuration.

Parameters
[in]baseRegister base address for the SIM instance.
[in]configPointer to the configuration structure.

Definition at line 59 of file sim_hal_S32K144.c.

void SIM_HAL_GetClkoutDefaultConfig ( sim_clock_out_config_t config)

Get the default SIM CLKOUT clock configuration.

This function gets the default CLKOUT clock configuration.

Parameters
[out]configPointer to the configuration structure.

Definition at line 42 of file sim_hal_S32K144.c.

static uint32_t SIM_HAL_GetDerivate ( const SIM_Type base)
inlinestatic

Gets the Derivate from the System Device ID register (SIM_SDID).

This function gets the Derivate from System Device ID register.

Parameters
[in]baseBase address for current SIM instance.
Returns
Id Derivate Implements SIM_HAL_GetDerivate_Activity

Definition at line 1266 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetDmaClockGate ( const SIM_Type base)
inlinestatic

Gets the DMA Clock Gate from the Platform Clock Gating Control Register.

This function gets the DMA Clock Gate in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
Returns
DMA Clock Gating Implements SIM_HAL_GetDmaClockGate_Activity

Definition at line 1456 of file sim_hal_S32K144.h.

static sim_eee_sram_size_t SIM_HAL_GetEeeSramSize ( const SIM_Type base)
inlinestatic

Gets the EEE SRAM size in the Flash Configuration Register 1.

This function gets the EEE SRAM size in the Flash Configuration Register 1.

Parameters
[in]baseBase address for current SIM instance.
Returns
EEE SRAM size Implements SIM_HAL_GetEeeSramSize_Activity

Definition at line 1538 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetEimClockGate ( const SIM_Type base)
inlinestatic

Gets the EIM Clock Gate from the Platform Clock Gating Control Register.

This function gets the EIM Clock Gate in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
Returns
EIM Clock Gating Implements SIM_HAL_GetEimClockGate_Activity

Definition at line 1390 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetErmClockGate ( const SIM_Type base)
inlinestatic

Gets the ERM Clock Gate from the Platform Clock Gating Control Register.

This function gets the ERM Clock Gate in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
Returns
ERM Clock Gating Implements SIM_HAL_GetErmClockGate_Activity

Definition at line 1423 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetFeatures ( const SIM_Type base)
inlinestatic

Gets the Features from System Device ID register (SIM_SDID).

This function gets the Features from System Device ID register. See sim_features_t enumeration.

Parameters
[in]baseBase address for current SIM instance.
Returns
Id features. Implements SIM_HAL_GetFeatures_Activity

Definition at line 1357 of file sim_hal_S32K144.h.

static sim_flexnvm_partition_t SIM_HAL_GetFlexNvmPartition ( const SIM_Type base)
inlinestatic

Gets the FlexNVM partition in the Flash Configuration Register 1.

This function gets the FlexNVM partition in the Flash Configuration Register 1

Parameters
[in]baseBase address for current SIM instance.
Returns
FlexNVM partition setting Implements SIM_HAL_GetFlexNvmPartition_Activity

Definition at line 1583 of file sim_hal_S32K144.h.

sim_ftm_ch_out_src_t SIM_HAL_GetFtmChOutSrcMode ( const SIM_Type base,
uint32_t  instance,
uint8_t  channel 
)

Gets the FlexTimer x channel y output source select setting.

This function gets the FlexTimer x channel y output source select setting.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]channelFlexTimer channel y
Returns
select FlexTimer x channel y output source select setting

Definition at line 781 of file sim_hal_S32K144.c.

sim_ftm_ch_src_t SIM_HAL_GetFtmChSrcMode ( const SIM_Type base,
uint32_t  instance,
uint8_t  channel 
)

Gets the FlexTimer x channel y input source select setting.

This function gets the FlexTimer x channel y input source select setting.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]channelFlexTimer channel y
Returns
select FlexTimer x channel y input source select setting

Definition at line 866 of file sim_hal_S32K144.c.

sim_ftm_clk_sel_t SIM_HAL_GetFtmExternalClkPinMode ( const SIM_Type base,
uint32_t  instance 
)

Gets the FlexTimer x external clock pin select setting.

This function gets the FlexTimer x external clock pin select setting.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
Returns
select FlexTimer x external clock pin select setting

Definition at line 232 of file sim_hal_S32K144.c.

uint8_t SIM_HAL_GetFtmFaultSelMode ( const SIM_Type base,
uint32_t  instance 
)

Gets the FlexTimer x faults select settings.

This function gets the FlexTimer x faults select settings.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
Returns
select FlexTimer x faults select settings.

Definition at line 357 of file sim_hal_S32K144.c.

static bool SIM_HAL_GetFtmGlobalLoad ( const SIM_Type base)
inlinestatic

Gets the FTM Global Load from the FTM Option Register 1.

This function gets the FTM Global Load from the FTM Option Register 1.

Parameters
[in]baseBase address for current SIM instance.
Returns
enable FTM global load setting Implements SIM_HAL_GetFtmGlobalLoad_Activity

Definition at line 966 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetFtmSyncCmd ( const SIM_Type base,
uint32_t  instance 
)
inlinestatic

Get FlexTimer x hardware trigger software synchronization setting.

This function gets FlexTimer x hardware trigger software synchronization. FTMxSYNCBIT.

Parameters
[in]baseBase address for current SIM instance.
[in]instancedevice instance.
Returns
enable hardware trigger software synchronization setting Implements SIM_HAL_GetFtmSyncCmd_Activity

Definition at line 1056 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetGeneration ( const SIM_Type base)
inlinestatic

Gets the product series Generation from System Device ID register (SIM_SDID).

This function gets the product series Generation from System Device ID register.

Parameters
[in]baseBase address for current SIM instance.
Returns
Id generation Implements SIM_HAL_GetGeneration_Activity

Definition at line 1234 of file sim_hal_S32K144.h.

uint32_t SIM_HAL_GetLpo128KFreq ( const SIM_Type base)

Get SIM LPO 128KHz clock frequency (LPO_128K_CLOCK).

Parameters
[in]baseRegister base address for the SIM instance.
Returns
Clock frequency, if clock is invalid, return 0.

Definition at line 428 of file sim_hal_S32K144.c.

static bool SIM_HAL_GetLpo1kClkEnCmd ( const SIM_Type base)
inlinestatic

Gets the 1 kHz LPO clock Control.

This function gets the 1 kHz LPO clock enable setting.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetLpo1kClkEnCmd_Activity

Definition at line 825 of file sim_hal_S32K144.h.

uint32_t SIM_HAL_GetLpo1KFreq ( const SIM_Type base)

Get SIM LPO 1KHz clock frequency (LPO_1K_CLOCK).

Parameters
[in]baseRegister base address for the SIM instance.
Returns
Clock frequency, if clock is invalid, return 0.

Definition at line 457 of file sim_hal_S32K144.c.

static bool SIM_HAL_GetLpo32kClkEnCmd ( const SIM_Type base)
inlinestatic

Gets the 32 kHz LPO clock Control.

This function gets the 32 kHz LPO clock enable setting.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetLpo32kClkEnCmd_Activity

Definition at line 809 of file sim_hal_S32K144.h.

uint32_t SIM_HAL_GetLpo32KFreq ( const SIM_Type base)

Get SIM LPO 32KHz clock frequency (LPO_32K_CLOCK).

Parameters
[in]baseRegister base address for the SIM instance.
Returns
Clock frequency, if clock is invalid, return 0.

Definition at line 441 of file sim_hal_S32K144.c.

static sim_lpoclk_sel_src_t SIM_HAL_GetLpoClkSrc ( const SIM_Type base)
inlinestatic

Get the clock selection of LPOCLKSEL.

This function gets the clock selection of LPOCLKSEL.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetLpoClkSrc_Activity

Definition at line 776 of file sim_hal_S32K144.h.

uint32_t SIM_HAL_GetLpoFreq ( const SIM_Type base)

Get SIM LPO clock frequency (LPO_CLOCK).

Parameters
[in]baseRegister base address for the SIM instance.
Returns
Clock frequency, if clock is invalid, return 0.

Definition at line 394 of file sim_hal_S32K144.c.

static bool SIM_HAL_GetMpuClockGate ( const SIM_Type base)
inlinestatic

Gets the MPU Clock Gating from the Platform Clock Gating Control Register.

This function gets the MPU Clock Gating in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
Returns
MPU Clock Gating Implements SIM_HAL_GetMpuClockGate_Activity

Definition at line 1489 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetMscmClockGate ( const SIM_Type base)
inlinestatic

Gets the MSCM Clock Gating from the Platform Clock Gating Control Register.

This function gets the MSCM Clock Gating in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
Returns
MSCM Clock Gating Implements SIM_HAL_GetMscmClockGate_Activity

Definition at line 1522 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetObeCtrlCmd ( const SIM_Type base,
uint32_t  instance 
)
inlinestatic

Gets FTM channel state.

This function gets FTM current selection.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
Returns
Current selection. Implements SIM_HAL_GetObeCtrlCmd_Activity

Definition at line 1178 of file sim_hal_S32K144.h.

static sim_package_t SIM_HAL_GetPackage ( const SIM_Type base)
inlinestatic

Gets the Package in System Device ID register (SIM_SDID).

This function gets the Package in System Device ID register.

Parameters
[in]baseBase address for current SIM instance.
Returns
Id package Implements SIM_HAL_GetPackage_Activity

Definition at line 1326 of file sim_hal_S32K144.h.

static sim_pdb_bb_src_t SIM_HAL_GetPdbBackToBackSrc ( const SIM_Type base)
inlinestatic

Get PDB back-to-back selection.

This function gets PDB back-to-back selection.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetPdbBackToBackSrc_Activity

Definition at line 558 of file sim_hal_S32K144.h.

static sim_ram_size_t SIM_HAL_GetRamSize ( const SIM_Type base)
inlinestatic

Gets RAM size.

This function gets the RAM size. The field specifies the amount of system RAM available on the device.

Parameters
[in]baseBase address for current SIM instance.
Returns
RAM size on the device Implements SIM_HAL_GetRamSize_Activity

Definition at line 1283 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetRevId ( const SIM_Type base)
inlinestatic

Gets the Revision ID in the System Device ID register (SIM_SDID).

This function gets the Revision ID in System Device ID register.

Parameters
[in]baseBase address for current SIM instance.
Returns
id Revision ID Implements SIM_HAL_GetRevId_Activity

Definition at line 1310 of file sim_hal_S32K144.h.

static sim_rtc_clk_sel_src_t SIM_HAL_GetRtcClkSrc ( const SIM_Type base)
inlinestatic

Get the clock selection of RTCCLKSEL.

This function gets the clock selection of RTCCLKSEL.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetRtcClkSrc_Activity

Definition at line 715 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetSramLRetentionCmd ( const SIM_Type base)
inlinestatic

Get SRAM L Retention setting.

This function gets SRAM L Retention setting.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetSramLRetentionCmd_Activity

Definition at line 387 of file sim_hal_S32K144.h.

static bool SIM_HAL_GetSramURetentionCmd ( const SIM_Type base)
inlinestatic

Get SRAM U Retention setting.

This function gets SRAM U Retention setting.

Parameters
[in]baseBase address for current SIM instance.
Returns
Current selection. Implements SIM_HAL_GetSramURetentionCmd_Activity

Definition at line 421 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetSubSeries ( const SIM_Type base)
inlinestatic

Gets the sub-series in the System Device ID register (SIM_SDID).

This function gets the sub-series in System Device ID register.

Parameters
[in]baseBase address for current SIM instance.
Returns
Id sub-series Implements SIM_HAL_GetSubSeries_Activity

Definition at line 1250 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetSwTriggerTrgmux ( const SIM_Type base)
inlinestatic

Gets the Software Trigger bit to TRGMUX.

This function gets the Software Trigger bit to TRGMUX in Miscellaneous Control register.

Parameters
[in]baseBase address for current SIM instance.
Returns
Software Trigger bit setting Implements SIM_HAL_GetSwTriggerTrgmux_Activity

Definition at line 1737 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetTClkFreq ( SIM_Type base,
uint8_t  index 
)
inlinestatic

Gets the TClk Frequency.

This function gets the TClk Frequency.

Parameters
[in]baseBase address for current SIM instance.
[in]indexIndex of the TClk.
Returns
frequency The configured frequency of the specified TClk Implements SIM_HAL_GetTClkFreq_Activity

Definition at line 1772 of file sim_hal_S32K144.h.

void SIM_HAL_GetTraceClockDefaultConfig ( sim_trace_clock_config_t config)

Get the default Debug Trace clock configuration.

This function gets the default Debug Trace clock configuration.

Parameters
[in]configPointer to the configuration structure.

Definition at line 1000 of file sim_hal_S32K144.c.

static uint32_t SIM_HAL_GetUniqueIdHigh ( const SIM_Type base)
inlinestatic

Gets the UID127_96 from Unique Identification Register High.

This function gets the UID127_96 from Unique Identification Register High.

Parameters
[in]baseBase address for current SIM instance.
Returns
UID127_96 setting Implements SIM_HAL_GetUniqueIdHigh_Activity

Definition at line 1628 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetUniqueIdLow ( const SIM_Type base)
inlinestatic

Gets the UID31_0 from Unique Identification Register Low.

This function gets the UID31_0 from Unique Identification Register Low.

Parameters
[in]baseBase address for current SIM instance.
Returns
UID31_0 setting Implements SIM_HAL_GetUniqueIdLow_Activity

Definition at line 1670 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetUniqueIdMidHigh ( const SIM_Type base)
inlinestatic

Gets the UID95_64 from Unique Identification Register Mid High.

This function gets the UID95_64 from Unique Identification Register Mid High.

Parameters
[in]baseBase address for current SIM instance.
Returns
UID95_64 setting Implements SIM_HAL_GetUniqueIdMidHigh_Activity

Definition at line 1642 of file sim_hal_S32K144.h.

static uint32_t SIM_HAL_GetUniqueIdMidLow ( const SIM_Type base)
inlinestatic

Gets the UID63_32 from Unique Identification Register Mid Low.

This function gets the UID63_32 from Unique Identification Register Mid Low.

Parameters
[in]baseBase address for current SIM instance.
Returns
UID63_32 setting Implements SIM_HAL_GetUniqueIdMidLow_Activity

Definition at line 1656 of file sim_hal_S32K144.h.

void SIM_HAL_InitClkout ( SIM_Type base,
const sim_clock_out_config_t config 
)

Initialize SIM CLKOUT.

This function enables the SIM CLKOUT clock according to the configuration.

Parameters
[in]baseRegister base address for the SIM instance.
[in]configPointer to the configuration structure.

Definition at line 136 of file sim_hal_S32K144.c.

void SIM_HAL_InitTraceClock ( SIM_Type base,
const sim_trace_clock_config_t config 
)

Initialize SIM Debug Trace.

This function enables the SIM Debug Trace clock according to the configuration.

Parameters
[in]baseRegister base address for the SIM instance.
[in]configPointer to the configuration structure.

Definition at line 1020 of file sim_hal_S32K144.c.

static void SIM_HAL_SetAdcInterleaveSel ( SIM_Type base,
uint8_t  setting 
)
inlinestatic

Set ADC interleave channel select.

This function sets value of ADC interleave channel select.

Parameters
[in]baseBase address for current SIM instance.
[in]settingThe value to set. Implements SIM_HAL_SetAdcInterleaveSel_Activity

Definition at line 629 of file sim_hal_S32K144.h.

void SIM_HAL_SetAdcPreTriggerMode ( SIM_Type base,
uint32_t  instance,
sim_adc_pretrg_sel_t  select 
)

Sets the ADCx pre-trigger select setting.

This function selects the ADCx pre-trigger source.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]selectPre-trigger select setting for ADCx

Definition at line 474 of file sim_hal_S32K144.c.

static void SIM_HAL_SetAdcSupplyEnCmd ( SIM_Type base,
bool  setting 
)
inlinestatic

Set ADC Supply Enable setting.

This function sets internal supply monitoring on ADC0 channel AD21

Parameters
[in]baseBase address for current SIM instance.
[in]settingThe value to set. Implements SIM_HAL_SetAdcSupplyEnCmd_Activity

Definition at line 437 of file sim_hal_S32K144.h.

static void SIM_HAL_SetAdcSupplySrc ( SIM_Type base,
sim_adc_supply_src_t  setting 
)
inlinestatic

Set ADC Supply Enable setting.

This function sets internal supply monitoring on ADC0 channel AD21 setting.

Parameters
[in]baseBase address for current SIM instance.
[in]settingThe value to set. Implements SIM_HAL_SetAdcSupplySrc_Activity

Definition at line 470 of file sim_hal_S32K144.h.

void SIM_HAL_SetAdcSwPreTriggerMode ( SIM_Type base,
uint32_t  instance,
sim_adc_sw_pretrg_sel_t  select 
)

Sets the ADCx software pre-trigger select setting.

This function selects the ADCx software pre-trigger source.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]selectpre-trigger select setting for ADCx

Definition at line 553 of file sim_hal_S32K144.c.

void SIM_HAL_SetAdcTriggerMode ( SIM_Type base,
uint32_t  instance,
sim_adc_trg_sel_t  select 
)

Sets the ADCx trigger select setting.

This function selects the ADCx trigger source

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]selectTrigger select setting for ADCx

Definition at line 647 of file sim_hal_S32K144.c.

static void SIM_HAL_SetDmaClockGate ( SIM_Type base,
bool  enable 
)
inlinestatic

Set the DMA Clock Gate from the Platform Clock Gating Control Register.

This function configures the DMA Clock Gate in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
[in]enableDMA clock gate enable setting Implements SIM_HAL_SetDmaClockGate_Activity

Definition at line 1439 of file sim_hal_S32K144.h.

static void SIM_HAL_SetEimClockGate ( SIM_Type base,
bool  enable 
)
inlinestatic

Set the EIM Clock Gate from the Platform Clock Gating Control Register.

This function configures the EIM Clock Gate in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
[in]EIMclock gate enable setting Implements SIM_HAL_SetEimClockGate_Activity

Definition at line 1373 of file sim_hal_S32K144.h.

static void SIM_HAL_SetErmClockGate ( SIM_Type base,
bool  enable 
)
inlinestatic

Set the ERM Clock Gate from the Platform Clock Gating Control Register.

This function configures the ERM Clock Gate in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
[in]enableERM clock gate enable setting Implements SIM_HAL_SetErmClockGate_Activity

Definition at line 1406 of file sim_hal_S32K144.h.

void SIM_HAL_SetFtmChOutSrcMode ( SIM_Type base,
uint32_t  instance,
uint8_t  channel,
sim_ftm_ch_out_src_t  select 
)

Sets the FlexTimer x channel y output source select setting.

This function selects the FlexTimer x channel y output source.

Parameters
[in]baseBase address for current SIM instance.
[in]instancedevice instance.
[in]channelFlexTimer channel y
[in]selectFlexTimer x channel y output source

Definition at line 749 of file sim_hal_S32K144.c.

void SIM_HAL_SetFtmChSrcMode ( SIM_Type base,
uint32_t  instance,
uint8_t  channel,
sim_ftm_ch_src_t  select 
)

Sets the FlexTimer x channel y input source select setting.

This function selects the FlexTimer x channel y input source.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]channelFlexTimer channel y
[in]selectFlexTimer x channel y input source

Definition at line 809 of file sim_hal_S32K144.c.

void SIM_HAL_SetFtmExternalClkPinMode ( SIM_Type base,
uint32_t  instance,
sim_ftm_clk_sel_t  select 
)

Sets the FlexTimer x external clock pin select setting.

This function selects the source of FTMx external clock pin select.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]selectFTMx external clock pin select

Definition at line 167 of file sim_hal_S32K144.c.

void SIM_HAL_SetFtmFaultSelMode ( SIM_Type base,
uint32_t  instance,
uint8_t  select 
)

Sets the FlexTimer x faults select settings.

This function sets the FlexTimer x faults select settings.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]selectFlexTimer x faults select settings.

Definition at line 307 of file sim_hal_S32K144.c.

static void SIM_HAL_SetFtmGlobalLoad ( SIM_Type base,
bool  enable 
)
inlinestatic

Configure the FTM Global Load from the FTM Option Register 1.

This function configures the FTM Global Load in the FTM Option Register 1.

Parameters
[in]baseBase address for current SIM instance.
[in]enableFTM global load setting Implements SIM_HAL_SetFtmGlobalLoad_Activity

Definition at line 949 of file sim_hal_S32K144.h.

void SIM_HAL_SetFtmSyncCmd ( SIM_Type base,
uint32_t  instance,
bool  sync 
)

Set FlexTimer x hardware trigger 0 software synchronization.

This function sets FlexTimer x hardware trigger 0 software synchronization. FTMxSYNCBIT.

Parameters
[in]baseBase address for current SIM instance.
[in]instancedevice instance.
[in]syncSynchronize or not.

Definition at line 938 of file sim_hal_S32K144.c.

static void SIM_HAL_SetLpoClocks ( SIM_Type base,
sim_lpo_clock_config_t  setting 
)
inlinestatic

Set the clock selection of LPOCLKSEL.

This function sets the clock selection of LPOCLKSEL.

Parameters
[in]baseBase address for current SIM instance.
[in]settingThe value to set.
Note
This function ignores initialize member Implements SIM_HAL_SetLpoClocks_Activity

Definition at line 749 of file sim_hal_S32K144.h.

static void SIM_HAL_SetMpuClockGate ( SIM_Type base,
bool  enable 
)
inlinestatic

Configure the MPU Clock Gating from the Platform Clock Gating Control Register.

This function configures the MPU Clock Gating in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
[in]enableMPU clock gate enable setting Implements SIM_HAL_SetMpuClockGate_Activity

Definition at line 1472 of file sim_hal_S32K144.h.

static void SIM_HAL_SetMscmClockGate ( SIM_Type base,
bool  enable 
)
inlinestatic

Configure the MSCM Clock Gating from the Platform Clock Gating Control Register.

This function configures the MSCM Clock Gating in the Platform Clock Gating Control Register.

Parameters
[in]baseBase address for current SIM instance.
[in]enableMPU clock gate enable setting Implements SIM_HAL_SetMscmClockGate_Activity

Definition at line 1505 of file sim_hal_S32K144.h.

static void SIM_HAL_SetObeCtrlCmd ( SIM_Type base,
uint32_t  instance,
bool  setting 
)
inlinestatic

Sets FTM channel state.

This function sets FTM channel state.

Parameters
[in]baseBase address for current SIM instance.
[in]instanceDevice instance.
[in]settingThe value to set. Implements SIM_HAL_SetObeCtrlCmd_Activity

Definition at line 1113 of file sim_hal_S32K144.h.

static void SIM_HAL_SetPdbBackToBackSrc ( SIM_Type base,
sim_pdb_bb_src_t  setting 
)
inlinestatic

Set PDB back-to-back selection.

This function sets PDB back-to-back selection.

Parameters
[in]baseBase address for current SIM instance.
[in]settingThe value to set. Implements SIM_HAL_SetPdbBackToBackSrc_Activity

Definition at line 528 of file sim_hal_S32K144.h.

static void SIM_HAL_SetSramLRetentionCmd ( SIM_Type base,
bool  setting 
)
inlinestatic

Set SRAM L Retention setting.

This function sets SRAM L Retention setting.

Parameters
[in]baseBase address for current SIM instance.
[in]settingThe value to set. Implements SIM_HAL_SetSramLRetentionCmd_Activity

Definition at line 370 of file sim_hal_S32K144.h.

static void SIM_HAL_SetSramURetentionCmd ( SIM_Type base,
bool  setting 
)
inlinestatic

Set SRAM U Retention setting.

This function sets SRAM U Retention setting.

Parameters
[in]baseBase address for current SIM instance.
[in]settingThe value to set. Implements SIM_HAL_SetSramURetentionCmd_Activity

Definition at line 404 of file sim_hal_S32K144.h.

static void SIM_HAL_SetSwTriggerTrgmux ( SIM_Type base,
bool  disable 
)
inlinestatic

Sets the Software Trigger bit to TRGMUX setting.

This function sets the Software Trigger bit to TRGMUX in Miscellaneous Control register.

Parameters
[in]baseBase address for current SIM instance.
[in]disableSoftware Trigger bit Implements SIM_HAL_SetSwTriggerTrgmux_Activity

Definition at line 1720 of file sim_hal_S32K144.h.

static void SIM_HAL_SetTClkFreq ( SIM_Type base,
uint8_t  index,
uint32_t  frequency 
)
inlinestatic

Sets the TClk Frequency.

This function sets the TClk Frequency.

Parameters
[in]baseBase address for current SIM instance.
[in]indexIndex of the TClk.
[in]frequencyThe frequency of the specified TClk Implements SIM_HAL_SetTClkFreq_Activity

Definition at line 1754 of file sim_hal_S32K144.h.

Variable Documentation

uint32_t g_TClkFreq[NUMBER_OF_TCLK_INPUTS]

Definition at line 67 of file clock_S32K144.c.