![]() |
S32 SDK
|
This module cover SIM module functionality implemented for S32K144.
The SIM_HAL API provides methods for setting and getting bit fields defined in the SIM module. The are a few exception to this:
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 |
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] |
#define NUMBER_OF_TCLK_INPUTS 3U |
Definition at line 47 of file sim_hal_S32K144.h.
enum clock_trace_src_t |
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.
enum sim_adc_pretrg_sel_t |
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.
enum sim_adc_supply_src_t |
Internal supplies monitored by ADC_SUPPLY Implements sim_adc_supply_src_t_Class.
Definition at line 55 of file sim_hal_S32K144.h.
SIM ADCx software pre-trigger select Implements sim_adc_sw_pretrg_sel_t_Class.
Definition at line 170 of file sim_hal_S32K144.h.
enum sim_adc_trg_sel_t |
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.
enum sim_clkout_div_t |
SIM CLKOUT divider Implements sim_clkout_div_t_Class.
Definition at line 106 of file sim_hal_S32K144.h.
enum sim_clkout_src_t |
SIM CLKOUT select Implements sim_clkout_src_t_Class.
Definition at line 90 of file sim_hal_S32K144.h.
enum sim_eee_sram_size_t |
SIM EEE SRAM Size Implements sim_eee_sram_size_t_Class.
Definition at line 299 of file sim_hal_S32K144.h.
enum sim_features_t |
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.
Definition at line 315 of file sim_hal_S32K144.h.
enum sim_ftm_ch_out_src_t |
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.
enum sim_ftm_ch_src_t |
SIM FlexTimer x channel y input source select Implements sim_ftm_ch_src_t_Class.
Definition at line 206 of file sim_hal_S32K144.h.
enum sim_ftm_clk_sel_t |
SIM FlexTimer external clock select Implements sim_ftm_clk_sel_t_Class.
Definition at line 122 of file sim_hal_S32K144.h.
enum sim_lpoclk_sel_src_t |
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.
enum sim_package_t |
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.
enum sim_pdb_bb_src_t |
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.
enum sim_ram_size_t |
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.
|
inlinestatic |
De-initialize SIM CLKOUT.
This function disables the SIM CLKOUT.
[in] | base | Register base address for the SIM instance. Implements SIM_HAL_DeinitClkout_Activity |
Definition at line 614 of file sim_hal_S32K144.h.
|
inlinestatic |
De-initialize SIM Debug Trace.
This function disables the SIM Debug Trace clock.
[in] | base | Register base address for the SIM instance. Implements SIM_HAL_DeinitTraceClock_Activity |
Definition at line 1705 of file sim_hal_S32K144.h.
|
inlinestatic |
Get ADC interleave channel select.
This function gets value of ADC interleave channel select.
[in] | base | Base address for current SIM instance. |
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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
Definition at line 502 of file sim_hal_S32K144.c.
|
inlinestatic |
Get ADC Supply Enable setting.
This function gets internal supply monitoring on ADC0 channel AD21 setting.
[in] | base | Base address for current SIM instance. |
Definition at line 454 of file sim_hal_S32K144.h.
|
inlinestatic |
Get ADC supply source.
This function gets ADC supply source.
[in] | base | Base address for current SIM instance. |
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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
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.
[in] | base | Register base address for the SIM instance. |
[in] | config | Pointer 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.
[out] | config | Pointer to the configuration structure. |
Definition at line 42 of file sim_hal_S32K144.c.
|
inlinestatic |
Gets the Derivate from the System Device ID register (SIM_SDID).
This function gets the Derivate from System Device ID register.
[in] | base | Base address for current SIM instance. |
Definition at line 1266 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 1456 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 1538 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 1390 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 1423 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 1357 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the FlexNVM partition in the Flash Configuration Register 1.
This function gets the FlexNVM partition in the Flash Configuration Register 1
[in] | base | Base address for current SIM instance. |
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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | channel | FlexTimer channel y |
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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | channel | FlexTimer channel y |
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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
Definition at line 357 of file sim_hal_S32K144.c.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 966 of file sim_hal_S32K144.h.
|
inlinestatic |
Get FlexTimer x hardware trigger software synchronization setting.
This function gets FlexTimer x hardware trigger software synchronization. FTMxSYNCBIT.
[in] | base | Base address for current SIM instance. |
[in] | instance | device instance. |
Definition at line 1056 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
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).
[in] | base | Register base address for the SIM instance. |
Definition at line 428 of file sim_hal_S32K144.c.
|
inlinestatic |
Gets the 1 kHz LPO clock Control.
This function gets the 1 kHz LPO clock enable setting.
[in] | base | Base address for current SIM instance. |
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).
[in] | base | Register base address for the SIM instance. |
Definition at line 457 of file sim_hal_S32K144.c.
|
inlinestatic |
Gets the 32 kHz LPO clock Control.
This function gets the 32 kHz LPO clock enable setting.
[in] | base | Base address for current SIM instance. |
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).
[in] | base | Register base address for the SIM instance. |
Definition at line 441 of file sim_hal_S32K144.c.
|
inlinestatic |
Get the clock selection of LPOCLKSEL.
This function gets the clock selection of LPOCLKSEL.
[in] | base | Base address for current SIM instance. |
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).
[in] | base | Register base address for the SIM instance. |
Definition at line 394 of file sim_hal_S32K144.c.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 1489 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
Definition at line 1522 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets FTM channel state.
This function gets FTM current selection.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
Definition at line 1178 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the Package in System Device ID register (SIM_SDID).
This function gets the Package in System Device ID register.
[in] | base | Base address for current SIM instance. |
Definition at line 1326 of file sim_hal_S32K144.h.
|
inlinestatic |
Get PDB back-to-back selection.
This function gets PDB back-to-back selection.
[in] | base | Base address for current SIM instance. |
Definition at line 558 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets RAM size.
This function gets the RAM size. The field specifies the amount of system RAM available on the device.
[in] | base | Base address for current SIM instance. |
Definition at line 1283 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the Revision ID in the System Device ID register (SIM_SDID).
This function gets the Revision ID in System Device ID register.
[in] | base | Base address for current SIM instance. |
Definition at line 1310 of file sim_hal_S32K144.h.
|
inlinestatic |
Get the clock selection of RTCCLKSEL.
This function gets the clock selection of RTCCLKSEL.
[in] | base | Base address for current SIM instance. |
Definition at line 715 of file sim_hal_S32K144.h.
|
inlinestatic |
Get SRAM L Retention setting.
This function gets SRAM L Retention setting.
[in] | base | Base address for current SIM instance. |
Definition at line 387 of file sim_hal_S32K144.h.
|
inlinestatic |
Get SRAM U Retention setting.
This function gets SRAM U Retention setting.
[in] | base | Base address for current SIM instance. |
Definition at line 421 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the sub-series in the System Device ID register (SIM_SDID).
This function gets the sub-series in System Device ID register.
[in] | base | Base address for current SIM instance. |
Definition at line 1250 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the Software Trigger bit to TRGMUX.
This function gets the Software Trigger bit to TRGMUX in Miscellaneous Control register.
[in] | base | Base address for current SIM instance. |
Definition at line 1737 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the TClk Frequency.
This function gets the TClk Frequency.
[in] | base | Base address for current SIM instance. |
[in] | index | Index of the TClk. |
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.
[in] | config | Pointer to the configuration structure. |
Definition at line 1000 of file sim_hal_S32K144.c.
|
inlinestatic |
Gets the UID127_96 from Unique Identification Register High.
This function gets the UID127_96 from Unique Identification Register High.
[in] | base | Base address for current SIM instance. |
Definition at line 1628 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the UID31_0 from Unique Identification Register Low.
This function gets the UID31_0 from Unique Identification Register Low.
[in] | base | Base address for current SIM instance. |
Definition at line 1670 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the UID95_64 from Unique Identification Register Mid High.
This function gets the UID95_64 from Unique Identification Register Mid High.
[in] | base | Base address for current SIM instance. |
Definition at line 1642 of file sim_hal_S32K144.h.
|
inlinestatic |
Gets the UID63_32 from Unique Identification Register Mid Low.
This function gets the UID63_32 from Unique Identification Register Mid Low.
[in] | base | Base address for current SIM instance. |
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.
[in] | base | Register base address for the SIM instance. |
[in] | config | Pointer 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.
[in] | base | Register base address for the SIM instance. |
[in] | config | Pointer to the configuration structure. |
Definition at line 1020 of file sim_hal_S32K144.c.
|
inlinestatic |
Set ADC interleave channel select.
This function sets value of ADC interleave channel select.
[in] | base | Base address for current SIM instance. |
[in] | setting | The 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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | select | Pre-trigger select setting for ADCx |
Definition at line 474 of file sim_hal_S32K144.c.
|
inlinestatic |
Set ADC Supply Enable setting.
This function sets internal supply monitoring on ADC0 channel AD21
[in] | base | Base address for current SIM instance. |
[in] | setting | The value to set. Implements SIM_HAL_SetAdcSupplyEnCmd_Activity |
Definition at line 437 of file sim_hal_S32K144.h.
|
inlinestatic |
Set ADC Supply Enable setting.
This function sets internal supply monitoring on ADC0 channel AD21 setting.
[in] | base | Base address for current SIM instance. |
[in] | setting | The 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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | select | pre-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
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | select | Trigger select setting for ADCx |
Definition at line 647 of file sim_hal_S32K144.c.
|
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.
[in] | base | Base address for current SIM instance. |
[in] | enable | DMA clock gate enable setting Implements SIM_HAL_SetDmaClockGate_Activity |
Definition at line 1439 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
[in] | EIM | clock gate enable setting Implements SIM_HAL_SetEimClockGate_Activity |
Definition at line 1373 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
[in] | enable | ERM 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.
[in] | base | Base address for current SIM instance. |
[in] | instance | device instance. |
[in] | channel | FlexTimer channel y |
[in] | select | FlexTimer 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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | channel | FlexTimer channel y |
[in] | select | FlexTimer 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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | select | FTMx 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.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | select | FlexTimer x faults select settings. |
Definition at line 307 of file sim_hal_S32K144.c.
|
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.
[in] | base | Base address for current SIM instance. |
[in] | enable | FTM 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.
[in] | base | Base address for current SIM instance. |
[in] | instance | device instance. |
[in] | sync | Synchronize or not. |
Definition at line 938 of file sim_hal_S32K144.c.
|
inlinestatic |
Set the clock selection of LPOCLKSEL.
This function sets the clock selection of LPOCLKSEL.
[in] | base | Base address for current SIM instance. |
[in] | setting | The value to set. |
Definition at line 749 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
[in] | enable | MPU clock gate enable setting Implements SIM_HAL_SetMpuClockGate_Activity |
Definition at line 1472 of file sim_hal_S32K144.h.
|
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.
[in] | base | Base address for current SIM instance. |
[in] | enable | MPU clock gate enable setting Implements SIM_HAL_SetMscmClockGate_Activity |
Definition at line 1505 of file sim_hal_S32K144.h.
|
inlinestatic |
Sets FTM channel state.
This function sets FTM channel state.
[in] | base | Base address for current SIM instance. |
[in] | instance | Device instance. |
[in] | setting | The value to set. Implements SIM_HAL_SetObeCtrlCmd_Activity |
Definition at line 1113 of file sim_hal_S32K144.h.
|
inlinestatic |
Set PDB back-to-back selection.
This function sets PDB back-to-back selection.
[in] | base | Base address for current SIM instance. |
[in] | setting | The value to set. Implements SIM_HAL_SetPdbBackToBackSrc_Activity |
Definition at line 528 of file sim_hal_S32K144.h.
|
inlinestatic |
Set SRAM L Retention setting.
This function sets SRAM L Retention setting.
[in] | base | Base address for current SIM instance. |
[in] | setting | The value to set. Implements SIM_HAL_SetSramLRetentionCmd_Activity |
Definition at line 370 of file sim_hal_S32K144.h.
|
inlinestatic |
Set SRAM U Retention setting.
This function sets SRAM U Retention setting.
[in] | base | Base address for current SIM instance. |
[in] | setting | The value to set. Implements SIM_HAL_SetSramURetentionCmd_Activity |
Definition at line 404 of file sim_hal_S32K144.h.
|
inlinestatic |
Sets the Software Trigger bit to TRGMUX setting.
This function sets the Software Trigger bit to TRGMUX in Miscellaneous Control register.
[in] | base | Base address for current SIM instance. |
[in] | disable | Software Trigger bit Implements SIM_HAL_SetSwTriggerTrgmux_Activity |
Definition at line 1720 of file sim_hal_S32K144.h.
|
inlinestatic |
Sets the TClk Frequency.
This function sets the TClk Frequency.
[in] | base | Base address for current SIM instance. |
[in] | index | Index of the TClk. |
[in] | frequency | The frequency of the specified TClk Implements SIM_HAL_SetTClkFreq_Activity |
Definition at line 1754 of file sim_hal_S32K144.h.
uint32_t g_TClkFreq[NUMBER_OF_TCLK_INPUTS] |
Definition at line 67 of file clock_S32K144.c.