Kinetis SDK v.1.3 API Reference Manual  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Overview

The section describes the programming interface of the SIM HAL driver. The SIM provides the system control and device configuration registers. The sim_hal provides a set of API functions used to access the SIM registers including clock gate control and other configuration settings.

Clock Gate Control register access APIs

Clock gate control is based on the module. Each chip has a subset of modules that can be gated through gate control registers in SIM. The gate control names are defined in the enumeration sim_clock_gate_name_t. Pass the enumeration value and the parameter enables/disables the clock for a module accordingly. There is an example for clock gate APIs:

#include "fsl_sim_hal.h"
// Calling SIM clock gate control API to enable the clock for UART0 //
SIM_HAL_EnableClock(SIM_BASE, kSimClockGateUart0);
// Calling SIM clock gate control API to disable the clock for UART0 //
SIM_HAL_DisableClock(SIM_BASE, kSimClockGateUart0);
// Get the clock gate status for UART0 //
SIM_HAL_GetGateCmd(SIM_BASE, kSimClockGateUart0);

Clock Source Control access APIs

Clock source control is also based on the module. Only certain modules have the clock source control in SIM. For these modules, SIM HAL driver provides the separate APIs to set or get module source. The module source setting values are defined in the enumeration with the prefix clock_. For example, USB FS OTG module uses the MCGPLLFLLCLK or the external USB_CLKIN as a clock source. Therefore, the SIM HAL driver provides these for the USB FS OTG module clock source:

typedef enum _clock_usbfs_src
{
kClockUsbfsSrcExt, // External bypass clock (USB_CLKIN) //
kClockUsbfsSrcPllFllSel, // MCGPLLFLLCLK divided by USB divider //
// Set USB FS OTG clock source. //
void CLOCK_HAL_SetUsbfsSrc(uint32_t baseAddr, uint8_t instance, clock_usbfs_src_t setting);
// Get USB FS OTG clock source. //
clock_usbfs_src_t CLOCK_HAL_GetUsbfsSrc(uint32_t baseAddr, uint8_t instance);

For other IP modules, the clock source selection register is in IP module, but the clock distribution is controlled by the system integration. Therefore, the SIM HAL driver provides the information for the IP modules and IP drivers know which clock sources are available and how to set their internal register to select a different clock source. This information is provided as an enumeration, such as SAI module using SYSCLK, OSC0ERCLK, and MCGPLLCLK as a clock source. The SIM HAL driver provides:

typedef enum _clock_sai_src
{
kClockSaiSrcSysClk = 0U, // SYSCLK //
kClockSaiSrcOsc0erClk = 1U, // OSC0ERCLK //
kClockSaiSrcPllClk = 3U // MCGPLLCLK //
} clock_sai_src_t;

See the appropriate reference manual for details.

Clock Divider access APIs

Certain clocks use dividers configured in SIM module. The SIM HAL driver provides API functions to get/set the divider values. For example:

// To set USB FS OTG divider. //
void CLOCK_HAL_SetUsbfsDiv(uint32_t baseAddr,
uint8_t usbdiv,
uint8_t usbfrac);
// To get USB FS OTG divider setting. //
void CLOCK_HAL_GetUsbfsDiv(uint32_t baseAddr,
uint8_t *usbdiv,
uint8_t *usbfrac);

Modules

 K02F12810 SIM HAL driver
 
 K10D10 SIM HAL driver
 
 K11DA50 SIM HAL driver
 
 K20D10 SIM HAL driver
 
 K21DA5 SIM HAL driver
 
 K21FA12 SIM HAL driver
 
 K22F12810 SIM HAL driver
 
 K22F25612 SIM HAL driver
 
 K22F51212 SIM HAL driver
 
 K22FA12 SIM HAL driver
 
 K24F12 SIM HAL driver
 
 K24F25612 SIM HAL driver
 
 K26F18 SIM HAL driver
 
 K30D10 SIM HAL driver
 
 K40D10 SIM HAL driver
 
 K50D10 SIM HAL driver
 
 K51D10 SIM HAL driver
 
 K52D10 SIM HAL driver
 
 K53D10 SIM HAL driver
 
 K60D10 SIM HAL driver
 
 K63F12 SIM HAL driver
 
 K64F12 SIM HAL driver
 
 K65F18 SIM HAL driver
 
 K66F18 SIM HAL driver
 
 K80F25615 SIM HAL driver
 
 K81F25615 SIM HAL driver
 
 K82F25615 SIM HAL driver
 
 KL02Z4 SIM HAL driver
 
 KL03Z4 SIM HAL driver
 
 KL13Z6 SIM HAL driver
 
 KL16Z4 SIM HAL driver
 
 KL17Z4 SIM HAL driver
 
 KL17Z644 SIM HAL driver
 
 KL26Z4 SIM HAL driver
 
 KL27Z4 SIM HAL driver
 
 KL27Z644 SIM HAL driver
 
 KL28T7 SIM HAL driver
 
 KL28Z7 SIM HAL driver
 
 KL33Z4 SIM HAL driver
 
 KL33Z644 SIM HAL driver
 
 KL34Z4 SIM HAL driver
 
 KL36Z4 SIM HAL driver
 
 KL43Z4 SIM HAL driver
 
 KL46Z4 SIM HAL driver
 
 KM34Z7 SIM HAL driver
 
 KV10Z7 SIM HAL driver
 
 KV10Z7128 SIM HAL driver
 
 KV11Z7 SIM HAL driver
 
 KV30F12810 SIM HAL driver
 
 KV31F12810 SIM HAL driver
 
 KV31F25612 SIM HAL driver
 
 KV31F51212 SIM HAL driver
 
 KW01Z4 SIM HAL driver
 
 KW20Z4 SIM HAL driver
 
 KW21D5 SIM HAL driver
 
 KW22D5 SIM HAL driver
 
 KW24D5 SIM HAL driver
 
 KW30Z4 SIM HAL driver
 
 KW40Z4 SIM HAL driver
 

Files

file  fsl_sim_hal.h
 
file  fsl_sim_hal_MKL14Z4.h
 
file  fsl_sim_hal_MKL15Z4.h
 
file  fsl_sim_hal_MKL24Z4.h
 
file  fsl_sim_hal_MKL25Z4.h
 
file  fsl_sim_hal_MKV40F15.h
 
file  fsl_sim_hal_MKV43F15.h
 
file  fsl_sim_hal_MKV44F15.h
 
file  fsl_sim_hal_MKV45F15.h
 
file  fsl_sim_hal_MKV46F15.h
 

Macros

#define FSL_SIM_SCGC_BIT(SCGCx, n)   (((SCGCx-1U)<<5U) + n)
 SIM SCGC bit index. More...
 
#define FSL_SIM_SCGC_BIT(SCGCx, n)   (((SCGCx-1U)<<5U) + n)
 SIM SCGC bit index. More...
 
#define FSL_SIM_SCGC_BIT(SCGCx, n)   (((SCGCx-1U)<<5U) + n)
 SIM SCGC bit index. More...
 
#define FSL_SIM_SCGC_BIT(SCGCx, n)   (((SCGCx-1U)<<5U) + n)
 SIM SCGC bit index. More...
 
#define FSL_SIM_SCGC_BIT(SCGCx, n)   (((SCGCx-1U)<<5U) + n)
 SIM SCGC bit index. More...
 

Enumerations

enum  sim_hal_status_t {
  kSimHalSuccess,
  kSimHalFail
}
 SIM HAL API return status. More...
 
enum  clock_cop_src_t
 COP clock source select.
 
enum  clock_tpm_src_t
 TPM clock source select.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_lpsci_src_t
 UART0 clock source select.
 
enum  clock_pllfll_sel_t
 USB clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL) More...
 
enum  clock_clkout_src_t
 SIM CLKOUT_SEL clock source select.
 
enum  clock_rtcout_src_t
 SIM RTCCLKOUTSEL clock source select.
 
enum  sim_adc_pretrg_sel_t
 SIM USB voltage regulator in standby mode setting during stop modes. More...
 
enum  sim_adc_trg_sel_t
 SIM ADCx trigger select.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_lpsci_rxsrc_t
 SIM LPSCI receive data source select.
 
enum  sim_lpsci_txsrc_t
 SIM LPSCI transmit data source select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_cop_src_t
 COP clock source select.
 
enum  clock_tpm_src_t
 TPM clock source select.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_lpsci_src_t
 UART0 clock source select.
 
enum  clock_pllfll_sel_t
 USB clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL) More...
 
enum  clock_clkout_src_t
 SIM CLKOUT_SEL clock source select.
 
enum  clock_rtcout_src_t
 SIM RTCCLKOUTSEL clock source select.
 
enum  sim_adc_pretrg_sel_t
 SIM USB voltage regulator in standby mode setting during stop modes. More...
 
enum  sim_adc_trg_sel_t
 SIM ADCx trigger select.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_lpsci_rxsrc_t
 SIM LPSCI receive data source select.
 
enum  sim_lpsci_txsrc_t
 SIM LPSCI transmit data source select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_cop_src_t
 COP clock source select.
 
enum  clock_tpm_src_t
 TPM clock source select.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_lpsci_src_t
 UART0 clock source select.
 
enum  clock_pllfll_sel_t
 USB clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL) More...
 
enum  clock_clkout_src_t
 SIM CLKOUT_SEL clock source select.
 
enum  clock_rtcout_src_t
 SIM RTCCLKOUTSEL clock source select.
 
enum  sim_adc_pretrg_sel_t
 SIM USB voltage regulator in standby mode setting during stop modes. More...
 
enum  sim_adc_trg_sel_t
 SIM ADCx trigger select.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_lpsci_rxsrc_t
 SIM LPSCI receive data source select.
 
enum  sim_lpsci_txsrc_t
 SIM LPSCI transmit data source select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_cop_src_t
 COP clock source select.
 
enum  clock_tpm_src_t
 TPM clock source select.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_lpsci_src_t
 UART0 clock source select.
 
enum  clock_pllfll_sel_t
 USB clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL) More...
 
enum  clock_clkout_src_t
 SIM CLKOUT_SEL clock source select.
 
enum  clock_rtcout_src_t
 SIM RTCCLKOUTSEL clock source select.
 
enum  sim_adc_pretrg_sel_t
 SIM USB voltage regulator in standby mode setting during stop modes. More...
 
enum  sim_adc_trg_sel_t
 SIM ADCx trigger select.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_lpsci_rxsrc_t
 SIM LPSCI receive data source select.
 
enum  sim_lpsci_txsrc_t
 SIM LPSCI transmit data source select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_wdog_src_t { ,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk
}
 WDOG clock source select. More...
 
enum  clock_trace_src_t {
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk
}
 Debug trace clock source select. More...
 
enum  clock_nanoedge_clk2x_src {
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x
}
 Debug trace clock source select. More...
 
enum  sim_osc32k_clock_sel_t
 SIM OSC32KSEL clock source select.
 
enum  sim_nanoedge_clock_sel_t
 SIM NANOEDGECLK2XSEL clock source select.
 
enum  sim_trace_clock_sel_t
 SIM TRACECLKSEL clock source select.
 
enum  sim_clkout_clock_sel_t
 SIM CLKOUT_SEL clock source select.
 
enum  sim_adcb_trg_sel_t
 SIM ADCB trigger select.
 
enum  sim_adc_trg_sel_t
 SIM ADC trigger select.
 
enum  sim_cadc_conv_id_t {
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U
}
 Defines the type of enumerating ADC converter's ID. More...
 
enum  sim_adc_alt_trg_en
 SIM ADC alternate trigger enable.
 
enum  sim_dac_hw_trg_sel
 DAC0 Hardware Trigger Input Source.
 
enum  sim_ewm_in_src
 the ewm_in source of EWM module. More...
 
enum  sim_cmp_win_in_src
 CMP Sample/Window Input X Source.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_flexcan_src_t {
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk
}
 FLEXCAN clock source select. More...
 
enum  sim_clock_gate_name_t
 Clock gate name used for SIM_HAL_EnableClock/SIM_HAL_DisableClock. More...
 
enum  clock_source_names_t
 Clock source and sel names.
 
enum  clock_divider_names_t
 Clock Divider names.
 
enum  sim_usbsstby_stop_t
 SIM USB voltage regulator in standby mode setting during stop modes.
 
enum  sim_usbvstby_stop_t
 SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes.
 
enum  sim_cmtuartpad_strengh_t
 SIM CMT/UART pad drive strength.
 
enum  sim_ptd7pad_strengh_t
 SIM PTD7 pad drive strength.
 
enum  sim_flexbus_security_level_t
 SIM FlexBus security level.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_ftm_trg_src_t
 SIM FlexTimer x trigger y select.
 
enum  sim_ftm_clk_sel_t
 SIM FlexTimer external clock select.
 
enum  sim_ftm_ch_src_t
 SIM FlexTimer x channel y input capture source select.
 
enum  sim_ftm_ch_out_src_t
 SIM FlexTimer x channel y output source select.
 
enum  sim_ftm_flt_sel_t
 SIM FlexTimer x Fault y select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_wdog_src_t { ,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk
}
 WDOG clock source select. More...
 
enum  clock_trace_src_t {
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk
}
 Debug trace clock source select. More...
 
enum  clock_nanoedge_clk2x_src {
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x
}
 Debug trace clock source select. More...
 
enum  sim_osc32k_clock_sel_t
 SIM OSC32KSEL clock source select.
 
enum  sim_nanoedge_clock_sel_t
 SIM NANOEDGECLK2XSEL clock source select.
 
enum  sim_trace_clock_sel_t
 SIM TRACECLKSEL clock source select.
 
enum  sim_clkout_clock_sel_t
 SIM CLKOUT_SEL clock source select.
 
enum  sim_adcb_trg_sel_t
 SIM ADCB trigger select.
 
enum  sim_adc_trg_sel_t
 SIM ADC trigger select.
 
enum  sim_cadc_conv_id_t {
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U
}
 Defines the type of enumerating ADC converter's ID. More...
 
enum  sim_adc_alt_trg_en
 SIM ADC alternate trigger enable.
 
enum  sim_dac_hw_trg_sel
 DAC0 Hardware Trigger Input Source.
 
enum  sim_ewm_in_src
 the ewm_in source of EWM module. More...
 
enum  sim_cmp_win_in_src
 CMP Sample/Window Input X Source.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_flexcan_src_t {
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk
}
 FLEXCAN clock source select. More...
 
enum  sim_clock_gate_name_t
 Clock gate name used for SIM_HAL_EnableClock/SIM_HAL_DisableClock. More...
 
enum  clock_source_names_t
 Clock source and sel names.
 
enum  clock_divider_names_t
 Clock Divider names.
 
enum  sim_usbsstby_stop_t
 SIM USB voltage regulator in standby mode setting during stop modes.
 
enum  sim_usbvstby_stop_t
 SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes.
 
enum  sim_cmtuartpad_strengh_t
 SIM CMT/UART pad drive strength.
 
enum  sim_ptd7pad_strengh_t
 SIM PTD7 pad drive strength.
 
enum  sim_flexbus_security_level_t
 SIM FlexBus security level.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_ftm_trg_src_t
 SIM FlexTimer x trigger y select.
 
enum  sim_ftm_clk_sel_t
 SIM FlexTimer external clock select.
 
enum  sim_ftm_ch_src_t
 SIM FlexTimer x channel y input capture source select.
 
enum  sim_ftm_ch_out_src_t
 SIM FlexTimer x channel y output source select.
 
enum  sim_ftm_flt_sel_t
 SIM FlexTimer x Fault y select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_wdog_src_t { ,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk
}
 WDOG clock source select. More...
 
enum  clock_trace_src_t {
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk
}
 Debug trace clock source select. More...
 
enum  clock_nanoedge_clk2x_src {
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x
}
 Debug trace clock source select. More...
 
enum  sim_osc32k_clock_sel_t
 SIM OSC32KSEL clock source select.
 
enum  sim_nanoedge_clock_sel_t
 SIM NANOEDGECLK2XSEL clock source select.
 
enum  sim_trace_clock_sel_t
 SIM TRACECLKSEL clock source select.
 
enum  sim_clkout_clock_sel_t
 SIM CLKOUT_SEL clock source select.
 
enum  sim_adcb_trg_sel_t
 SIM ADCB trigger select.
 
enum  sim_adc_trg_sel_t
 SIM ADC trigger select.
 
enum  sim_cadc_conv_id_t {
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U
}
 Defines the type of enumerating ADC converter's ID. More...
 
enum  sim_adc_alt_trg_en
 SIM ADC alternate trigger enable.
 
enum  sim_dac_hw_trg_sel
 DAC0 Hardware Trigger Input Source.
 
enum  sim_ewm_in_src
 the ewm_in source of EWM module. More...
 
enum  sim_cmp_win_in_src
 CMP Sample/Window Input X Source.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_flexcan_src_t {
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk
}
 FLEXCAN clock source select. More...
 
enum  sim_clock_gate_name_t
 Clock gate name used for SIM_HAL_EnableClock/SIM_HAL_DisableClock. More...
 
enum  clock_source_names_t
 Clock source and sel names.
 
enum  clock_divider_names_t
 Clock Divider names.
 
enum  sim_usbsstby_stop_t
 SIM USB voltage regulator in standby mode setting during stop modes.
 
enum  sim_usbvstby_stop_t
 SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes.
 
enum  sim_cmtuartpad_strengh_t
 SIM CMT/UART pad drive strength.
 
enum  sim_ptd7pad_strengh_t
 SIM PTD7 pad drive strength.
 
enum  sim_flexbus_security_level_t
 SIM FlexBus security level.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_ftm_trg_src_t
 SIM FlexTimer x trigger y select.
 
enum  sim_ftm_clk_sel_t
 SIM FlexTimer external clock select.
 
enum  sim_ftm_ch_src_t
 SIM FlexTimer x channel y input capture source select.
 
enum  sim_ftm_ch_out_src_t
 SIM FlexTimer x channel y output source select.
 
enum  sim_ftm_flt_sel_t
 SIM FlexTimer x Fault y select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_wdog_src_t { ,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk
}
 WDOG clock source select. More...
 
enum  clock_trace_src_t {
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk
}
 Debug trace clock source select. More...
 
enum  clock_nanoedge_clk2x_src {
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x
}
 Debug trace clock source select. More...
 
enum  sim_osc32k_clock_sel_t
 SIM OSC32KSEL clock source select.
 
enum  sim_nanoedge_clock_sel_t
 SIM NANOEDGECLK2XSEL clock source select.
 
enum  sim_trace_clock_sel_t
 SIM TRACECLKSEL clock source select.
 
enum  sim_clkout_clock_sel_t
 SIM CLKOUT_SEL clock source select.
 
enum  sim_adcb_trg_sel_t
 SIM ADCB trigger select.
 
enum  sim_adc_trg_sel_t
 SIM ADC trigger select.
 
enum  sim_cadc_conv_id_t {
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U
}
 Defines the type of enumerating ADC converter's ID. More...
 
enum  sim_adc_alt_trg_en
 SIM ADC alternate trigger enable.
 
enum  sim_dac_hw_trg_sel
 DAC0 Hardware Trigger Input Source.
 
enum  sim_ewm_in_src
 the ewm_in source of EWM module. More...
 
enum  sim_cmp_win_in_src
 CMP Sample/Window Input X Source.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_flexcan_src_t {
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk
}
 FLEXCAN clock source select. More...
 
enum  sim_clock_gate_name_t
 Clock gate name used for SIM_HAL_EnableClock/SIM_HAL_DisableClock. More...
 
enum  clock_source_names_t
 Clock source and sel names.
 
enum  clock_divider_names_t
 Clock Divider names.
 
enum  sim_usbsstby_stop_t
 SIM USB voltage regulator in standby mode setting during stop modes.
 
enum  sim_usbvstby_stop_t
 SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes.
 
enum  sim_cmtuartpad_strengh_t
 SIM CMT/UART pad drive strength.
 
enum  sim_ptd7pad_strengh_t
 SIM PTD7 pad drive strength.
 
enum  sim_flexbus_security_level_t
 SIM FlexBus security level.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_ftm_trg_src_t
 SIM FlexTimer x trigger y select.
 
enum  sim_ftm_clk_sel_t
 SIM FlexTimer external clock select.
 
enum  sim_ftm_ch_src_t
 SIM FlexTimer x channel y input capture source select.
 
enum  sim_ftm_ch_out_src_t
 SIM FlexTimer x channel y output source select.
 
enum  sim_ftm_flt_sel_t
 SIM FlexTimer x Fault y select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 
enum  clock_wdog_src_t { ,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk,
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk
}
 WDOG clock source select. More...
 
enum  clock_trace_src_t {
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk,
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk
}
 Debug trace clock source select. More...
 
enum  clock_nanoedge_clk2x_src {
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x,
  kClockNanoedgeSrcMcgPllClk,
  kClockNanoedgeSrcMcgPllClk2x
}
 Debug trace clock source select. More...
 
enum  sim_osc32k_clock_sel_t
 SIM OSC32KSEL clock source select.
 
enum  sim_nanoedge_clock_sel_t
 SIM NANOEDGECLK2XSEL clock source select.
 
enum  sim_trace_clock_sel_t
 SIM TRACECLKSEL clock source select.
 
enum  sim_clkout_clock_sel_t
 SIM CLKOUT_SEL clock source select.
 
enum  sim_adcb_trg_sel_t
 SIM ADCB trigger select.
 
enum  sim_adc_trg_sel_t
 SIM ADC trigger select.
 
enum  sim_cadc_conv_id_t {
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U,
  kSimCAdcConvA = 0U,
  kSimCAdcConvB = 1U
}
 Defines the type of enumerating ADC converter's ID. More...
 
enum  sim_adc_alt_trg_en
 SIM ADC alternate trigger enable.
 
enum  sim_dac_hw_trg_sel
 DAC0 Hardware Trigger Input Source.
 
enum  sim_ewm_in_src
 the ewm_in source of EWM module. More...
 
enum  sim_cmp_win_in_src
 CMP Sample/Window Input X Source.
 
enum  clock_lptmr_src_t { ,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv,
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_er32k_src_t { ,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U,
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_flexcan_src_t {
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk,
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk
}
 FLEXCAN clock source select. More...
 
enum  sim_clock_gate_name_t
 Clock gate name used for SIM_HAL_EnableClock/SIM_HAL_DisableClock. More...
 
enum  clock_source_names_t
 Clock source and sel names.
 
enum  clock_divider_names_t
 Clock Divider names.
 
enum  sim_usbsstby_stop_t
 SIM USB voltage regulator in standby mode setting during stop modes.
 
enum  sim_usbvstby_stop_t
 SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes.
 
enum  sim_cmtuartpad_strengh_t
 SIM CMT/UART pad drive strength.
 
enum  sim_ptd7pad_strengh_t
 SIM PTD7 pad drive strength.
 
enum  sim_flexbus_security_level_t
 SIM FlexBus security level.
 
enum  sim_uart_rxsrc_t
 SIM UART receive data source select.
 
enum  sim_uart_txsrc_t
 SIM UART transmit data source select.
 
enum  sim_ftm_trg_src_t
 SIM FlexTimer x trigger y select.
 
enum  sim_ftm_clk_sel_t
 SIM FlexTimer external clock select.
 
enum  sim_ftm_ch_src_t
 SIM FlexTimer x channel y input capture source select.
 
enum  sim_ftm_ch_out_src_t
 SIM FlexTimer x channel y output source select.
 
enum  sim_ftm_flt_sel_t
 SIM FlexTimer x Fault y select.
 
enum  sim_tpm_clk_sel_t
 SIM Timer/PWM external clock select.
 
enum  sim_tpm_ch_src_t
 SIM Timer/PWM x channel y input capture source select.
 

Functions

static void SIM_HAL_EnableClock (SIM_Type *base, sim_clock_gate_name_t name)
 Enable the clock for specific module. More...
 
static void SIM_HAL_DisableClock (SIM_Type *base, sim_clock_gate_name_t name)
 Disable the clock for specific module. More...
 
static bool SIM_HAL_GetGateCmd (SIM_Type *base, sim_clock_gate_name_t name)
 Get the the clock gate state for specific module. More...
 
static void CLOCK_HAL_SetExternalRefClock32kSrc (SIM_Type *base, clock_er32k_src_t setting)
 Set the clock selection of ERCLK32K. More...
 
static clock_er32k_src_t CLOCK_HAL_GetExternalRefClock32kSrc (SIM_Type *base)
 Get the clock selection of ERCLK32K. More...
 
static void CLOCK_HAL_SetOsc32kOutSel (SIM_Type *base, clock_osc32kout_sel_t setting)
 Set OSC32KOUT selection. More...
 
static clock_osc32kout_sel_t CLOCK_HAL_GetOsc32kOutSel (SIM_Type *base)
 Get OSC32KOUT selection. More...
 
static uint32_t SIM_HAL_GetRamSize (SIM_Type *base)
 Gets RAM size. More...
 
static void CLOCK_HAL_SetPllfllSel (SIM_Type *base, clock_pllfll_sel_t setting)
 Set PLL/FLL clock selection. More...
 
static clock_pllfll_sel_t CLOCK_HAL_GetPllfllSel (SIM_Type *base)
 Get PLL/FLL clock selection. More...
 
static void CLOCK_HAL_SetTraceClkSrc (SIM_Type *base, clock_trace_src_t setting)
 Set debug trace clock selection. More...
 
static clock_trace_src_t CLOCK_HAL_GetTraceClkSrc (SIM_Type *base)
 Get debug trace clock selection. More...
 
static void CLOCK_HAL_SetClkOutSel (SIM_Type *base, clock_clkout_src_t setting)
 Set CLKOUTSEL selection. More...
 
static clock_clkout_src_t CLOCK_HAL_GetClkOutSel (SIM_Type *base)
 Get CLKOUTSEL selection. More...
 
static void CLOCK_HAL_SetOutDiv1 (SIM_Type *base, uint8_t setting)
 Set OUTDIV1. More...
 
static uint8_t CLOCK_HAL_GetOutDiv1 (SIM_Type *base)
 Get OUTDIV1. More...
 
static void CLOCK_HAL_SetOutDiv2 (SIM_Type *base, uint8_t setting)
 Set OUTDIV2. More...
 
static uint8_t CLOCK_HAL_GetOutDiv2 (SIM_Type *base)
 Get OUTDIV2. More...
 
static void CLOCK_HAL_SetOutDiv4 (SIM_Type *base, uint8_t setting)
 Set OUTDIV4. More...
 
static uint8_t CLOCK_HAL_GetOutDiv4 (SIM_Type *base)
 Get OUTDIV4. More...
 
void SIM_HAL_SetFtmTriggerSrcMode (SIM_Type *base, uint32_t instance, uint8_t trigger, sim_ftm_trg_src_t select)
 Sets the FlexTimer x hardware trigger y source select setting. More...
 
sim_ftm_trg_src_t SIM_HAL_GetFtmTriggerSrcMode (SIM_Type *base, uint32_t instance, uint8_t trigger)
 Gets the FlexTimer x hardware trigger y source select setting. 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 (SIM_Type *base, uint32_t instance)
 Gets the FlexTimer x external clock pin 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 capture source select setting. More...
 
sim_ftm_ch_src_t SIM_HAL_GetFtmChSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel)
 Gets the FlexTimer x channel y input capture source select setting. More...
 
void SIM_HAL_SetFtmFaultSelMode (SIM_Type *base, uint32_t instance, uint8_t fault, sim_ftm_flt_sel_t select)
 Sets the FlexTimer x fault y select setting. More...
 
sim_ftm_flt_sel_t SIM_HAL_GetFtmFaultSelMode (SIM_Type *base, uint32_t instance, uint8_t fault)
 Gets the FlexTimer x fault y select setting. 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 (SIM_Type *base, uint32_t instance, uint8_t channel)
 Gets the FlexTimer x channel y output 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 (SIM_Type *base, uint32_t instance)
 Get FlexTimer x hardware trigger 0 software synchronization setting. More...
 
static uint32_t SIM_HAL_GetFamilyId (SIM_Type *base)
 Gets the Kinetis Family ID in the System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetSubFamilyId (SIM_Type *base)
 Gets the Kinetis Sub-Family ID in the System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetSeriesId (SIM_Type *base)
 Gets the Kinetis SeriesID in the System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetRevId (SIM_Type *base)
 Gets the Kinetis Revision ID in the System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetDieId (SIM_Type *base)
 Gets the Kinetis Die ID in the System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetFamId (SIM_Type *base)
 Gets the Kinetis family identification in the System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetPinCntId (SIM_Type *base)
 Gets the Kinetis Pincount ID in System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetProgramFlashSize (SIM_Type *base)
 Gets the program flash size in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static void SIM_HAL_SetFlashDoze (SIM_Type *base, uint32_t setting)
 Sets the Flash Doze in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static uint32_t SIM_HAL_GetFlashDoze (SIM_Type *base)
 Gets the Flash Doze in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static void SIM_HAL_SetFlashDisableCmd (SIM_Type *base, bool disable)
 Sets the Flash disable setting. More...
 
static bool SIM_HAL_GetFlashDisableCmd (SIM_Type *base)
 Gets the Flash disable setting. More...
 
static uint32_t SIM_HAL_GetFlashMaxAddrBlock0 (SIM_Type *base)
 Gets the Flash maximum address block 0 in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static void CLOCK_HAL_SetSdhcSrc (SIM_Type *base, uint32_t instance, clock_sdhc_src_t setting)
 Set the SDHC clock source selection. More...
 
static clock_sdhc_src_t CLOCK_HAL_GetSdhcSrc (SIM_Type *base, uint32_t instance)
 Get the SDHC clock source selection. More...
 
static void CLOCK_HAL_SetTimeSrc (SIM_Type *base, uint32_t instance, clock_time_src_t setting)
 Set the ethernet timestamp clock source selection. More...
 
static clock_time_src_t CLOCK_HAL_GetTimeSrc (SIM_Type *base, uint32_t instance)
 Get the ethernet timestamp clock source selection. More...
 
static void CLOCK_HAL_SetRmiiSrc (SIM_Type *base, uint32_t instance, clock_rmii_src_t setting)
 Set the Ethernet RMII interface clock source selection. More...
 
static clock_rmii_src_t CLOCK_HAL_GetRmiiSrc (SIM_Type *base, uint32_t instance)
 Get the Ethernet RMII interface clock source selection. More...
 
static void CLOCK_HAL_SetRtcClkOutSel (SIM_Type *base, clock_rtcout_src_t setting)
 Set RTCCLKOUTSEL selection. More...
 
static clock_rtcout_src_t CLOCK_HAL_GetRtcClkOutSel (SIM_Type *base)
 Get RTCCLKOUTSEL selection. More...
 
static void CLOCK_HAL_SetOutDiv3 (SIM_Type *base, uint8_t setting)
 Set OUTDIV3. More...
 
static uint8_t CLOCK_HAL_GetOutDiv3 (SIM_Type *base)
 Get OUTDIV3. More...
 
static void SIM_HAL_SetPtd7PadDriveStrengthMode (SIM_Type *base, sim_ptd7pad_strengh_t setting)
 Sets the PTD7 pad drive strength setting. More...
 
static sim_ptd7pad_strengh_t SIM_HAL_GetPtd7PadDriveStrengthMode (SIM_Type *base)
 Gets the PTD7 pad drive strength setting. More...
 
static void SIM_HAL_SetFlexbusSecurityLevelMode (SIM_Type *base, sim_flexbus_security_level_t setting)
 Sets the FlexBus security level setting. More...
 
static sim_flexbus_security_level_t SIM_HAL_GetFlexbusSecurityLevelMode (SIM_Type *base)
 Gets the FlexBus security level setting. More...
 
static uint32_t SIM_HAL_GetFlexnvmSize (SIM_Type *base)
 Gets the FlexNVM size in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static uint32_t SIM_HAL_GetEepromSize (SIM_Type *base)
 Gets the EEProm size in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static uint32_t SIM_HAL_GetFlexnvmPartition (SIM_Type *base)
 Gets the FlexNVM partition in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static uint32_t SIM_HAL_GetFlashMaxAddrBlock1 (SIM_Type *base)
 Gets the Flash maximum address block 1 in Flash Configuration Register 2. More...
 
static uint32_t SIM_HAL_GetProgramFlashCmd (SIM_Type *base)
 Gets the program flash in the Flash Configuration Register 2. More...
 
static bool SIM_HAL_GetSwapProgramFlash (SIM_Type *base)
 Gets the Swap program flash flag in the Flash Configuration Register 2. More...
 
void CLOCK_HAL_SetUsbfsDiv (SIM_Type *base, uint8_t usbdiv, uint8_t usbfrac)
 Set USB FS divider setting. More...
 
void CLOCK_HAL_GetUsbfsDiv (SIM_Type *base, uint8_t *usbdiv, uint8_t *usbfrac)
 Get USB FS divider setting. More...
 
static void CLOCK_HAL_SetUsbfsSrc (SIM_Type *base, uint32_t instance, clock_usbfs_src_t setting)
 Set the selection of the clock source for the USB FS 48 MHz clock. More...
 
static clock_usbfs_src_t CLOCK_HAL_GetUsbfsSrc (SIM_Type *base, uint32_t instance)
 Get the selection of the clock source for the USB FS 48 MHz clock. More...
 
static void SIM_HAL_SetUsbVoltRegulatorCmd (SIM_Type *base, bool enable)
 Sets the USB voltage regulator enabled setting. More...
 
static bool SIM_HAL_GetUsbVoltRegulatorCmd (SIM_Type *base)
 Gets the USB voltage regulator enabled setting. More...
 
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringStopMode (SIM_Type *base, sim_usbsstby_mode_t setting)
 Sets the USB voltage regulator in a standby mode setting during Stop, VLPS, LLS, and VLLS. More...
 
static sim_usbsstby_mode_t SIM_HAL_GetUsbVoltRegulatorInStdbyDuringStopMode (SIM_Type *base)
 Gets the USB voltage regulator in a standby mode setting. More...
 
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringVlprwMode (SIM_Type *base, sim_usbvstby_mode_t setting)
 Sets the USB voltage regulator in a standby mode during the VLPR or the VLPW. More...
 
static sim_usbvstby_mode_t SIM_HAL_GetUsbVoltRegulatorInStdbyDuringVlprwMode (SIM_Type *base)
 Gets the USB voltage regulator in a standby mode during the VLPR or the VLPW. More...
 
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringStopCmd (SIM_Type *base, bool enable)
 Sets the USB voltage regulator stop standby write enable setting. More...
 
static bool SIM_HAL_GetUsbVoltRegulatorInStdbyDuringStopCmd (SIM_Type *base)
 Gets the USB voltage regulator stop standby write enable setting. More...
 
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringVlprwCmd (SIM_Type *base, bool enable)
 Sets the USB voltage regulator VLP standby write enable setting. More...
 
static bool SIM_HAL_GetUsbVoltRegulatorInStdbyDuringVlprwCmd (SIM_Type *base)
 Gets the USB voltage regulator VLP standby write enable setting. More...
 
static void SIM_HAL_SetUsbVoltRegulatorWriteCmd (SIM_Type *base, bool enable)
 Sets the USB voltage regulator enable write enable setting. More...
 
static bool SIM_HAL_GetUsbVoltRegulatorWriteCmd (SIM_Type *base)
 Gets the USB voltage regulator enable write enable setting. More...
 
static void CLOCK_HAL_SetLpuartSrc (SIM_Type *base, uint32_t instance, clock_lpuart_src_t setting)
 Set LPUART clock source. More...
 
static clock_lpuart_src_t CLOCK_HAL_GetLpuartSrc (SIM_Type *base, uint32_t instance)
 Get LPUART clock source. More...
 
static void SIM_HAL_SetLpuartRxSrcMode (SIM_Type *base, uint32_t instance, sim_lpuart_rxsrc_t select)
 Sets the LPUARTx receive data source select setting. More...
 
static sim_lpuart_rxsrc_t SIM_HAL_GetLpuartRxSrcMode (SIM_Type *base, uint32_t instance)
 Gets the LPUARTx receive data source select setting. More...
 
static void CLOCK_HAL_SetUsbhsSlowClockSrc (SIM_Type *base, uint32_t instance, clock_usbhs_slowclk_src_t setting)
 Set the selection of the clock source for the USB HS/USB PHY slow clock. More...
 
static clock_usbhs_slowclk_src_t CLOCK_HAL_GetUsbhsSlowClockSrc (SIM_Type *base, uint32_t instance)
 Get the selection of the clock source for the USB HS/USB PHY slow clock. More...
 
void CLOCK_HAL_SetPllFllDiv (SIM_Type *base, uint8_t pllflldiv, uint8_t pllfllfrac)
 Set PLL/FLL divider setting. More...
 
void CLOCK_HAL_GetPllFllDiv (SIM_Type *base, uint8_t *pllflldiv, uint8_t *pllfllfrac)
 Gets PLL/FLL divider setting. More...
 
void CLOCK_HAL_SetTraceDiv (SIM_Type *base, uint8_t tracediv, uint8_t tracefrac)
 Set TRACECLK divider setting. More...
 
void CLOCK_HAL_GetTraceDiv (SIM_Type *base, uint8_t *tracediv, uint8_t *tracefrac)
 Gets TRACECLK setting. More...
 
static void CLOCK_HAL_SetTpmSrc (SIM_Type *base, uint32_t instance, clock_tpm_src_t setting)
 Set the TPM clock source selection. More...
 
static clock_tpm_src_t CLOCK_HAL_GetTpmSrc (SIM_Type *base, uint32_t instance)
 Get the TPM clock source selection. More...
 
static void SIM_HAL_SetUsbVoltRegulatorInrushLimitCmd (SIM_Type *base, bool enable)
 Sets the USB voltage regulator inrush current limit setting. More...
 
static bool SIM_HAL_GetUsbVoltRegulatorInrushLimitCmd (SIM_Type *base)
 Gets the USB voltage regulator inrush current limit setting. More...
 
static void SIM_HAL_SetUsbVoltRegulatorOutputTargetCmd (SIM_Type *base, sim_usbvout_mode_t target)
 Sets the USB voltage regulator output target. More...
 
static sim_usbvout_mode_t SIM_HAL_GetUsbVoltRegulatorOutputTargetCmd (SIM_Type *base)
 Gets the USB voltage regulator output target. More...
 
static void SIM_HAL_SetUsbPhyPllRegulatorCmd (SIM_Type *base, bool enable)
 Sets the USB PHY PLL regulator enabled setting. More...
 
static bool SIM_HAL_GetUsbPhyPllRegulatorCmd (SIM_Type *base)
 Gets the USB PHY PLL regulator enabled setting. More...
 
static void SIM_HAL_SetLpuartTxSrcMode (SIM_Type *base, uint32_t instance, sim_lpuart_txsrc_t select)
 Sets the LPUARTx transmit data source select setting. More...
 
static sim_lpuart_rxsrc_t SIM_HAL_GetLpuartTxSrcMode (SIM_Type *base, uint32_t instance)
 Gets the LPUARTx transmit data source select setting. More...
 
static void CLOCK_HAL_SetEmvsimSrc (SIM_Type *base, uint32_t instance, clock_emvsim_src_t setting)
 Set EMVSIM clock source. More...
 
static clock_emvsim_src_t CLOCK_HAL_GetEmvsimSrc (SIM_Type *base, uint32_t instance)
 Get EMVSIM clock source. More...
 
static void CLOCK_HAL_SetFlexioSrc (SIM_Type *base, uint32_t instance, clock_flexio_src_t setting)
 Select the clock source for FLEXIO. More...
 
static clock_flexio_src_t CLOCK_HAL_GetFlexioSrc (SIM_Type *base, uint32_t instance)
 Get the clock source of FLEXIO. More...
 
static void CLOCK_HAL_SetLpsciSrc (SIM_Type *base, uint32_t instance, clock_lpsci_src_t setting)
 Set the LPSCI clock source selection. More...
 
static clock_lpsci_src_t CLOCK_HAL_GetLpsciSrc (SIM_Type *base, uint32_t instance)
 Get the LPSCI clock source selection. More...
 
static void SIM_HAL_SetLpsciRxSrcMode (SIM_Type *base, uint32_t instance, sim_lpsci_rxsrc_t select)
 Sets the LPSCIx receive data source select setting. More...
 
static sim_lpsci_rxsrc_t SIM_HAL_GetLpsciRxSrcMode (SIM_Type *base, uint32_t instance)
 Gets the LPSCIx receive data source select setting. More...
 
static void SIM_HAL_SetLpsciTxSrcMode (SIM_Type *base, uint32_t instance, sim_lpsci_txsrc_t select)
 Sets the LPSCIx transmit data source select setting. More...
 
static sim_lpsci_txsrc_t SIM_HAL_GetLpsciTxSrcMode (SIM_Type *base, uint32_t instance)
 Gets the LPSCIx transmit data source select setting. More...
 
static uint32_t SIM_HAL_GetSramSize (SIM_Type *base)
 Gets the Kinetis SramSize in the System Device ID register (SIM_SDID). More...
 
static void CLOCK_HAL_SetCopSrc (SIM_Type *base, clock_cop_src_t setting)
 Set the clock selection of COP. More...
 
static clock_cop_src_t CLOCK_HAL_GetCopSrc (SIM_Type *base)
 Get the clock selection of COP. More...
 
static void SIM_HAL_SetLpuartOpenDrainCmd (SIM_Type *base, uint32_t instance, bool enable)
 Sets the LPUARTx Open Drain Enable setting. More...
 
static bool SIM_HAL_GetLpuartOpenDrainCmd (SIM_Type *base, uint32_t instance)
 Gets the LPUARTx Open Drain Enable setting. More...
 
static void SIM_HAL_SetTpmChSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel, sim_tpm_ch_src_t select)
 Sets the Timer/PWM x channel y input capture source select setting. More...
 
static sim_tpm_ch_src_t SIM_HAL_GetTpmChSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel)
 Gets the Timer/PWM x channel y input capture source select setting. More...
 
void SIM_HAL_SetTpmExternalClkPinSelMode (SIM_Type *base, uint32_t instance, sim_tpm_clk_sel_t select)
 Sets the Timer/PWM x external clock pin select setting. More...
 
sim_tpm_clk_sel_t SIM_HAL_GetTpmExternalClkPinSelMode (SIM_Type *base, uint32_t instance)
 Gets the Timer/PWM x external clock pin select setting. More...
 
static void SIM_HAL_SetUartOpenDrainCmd (SIM_Type *base, uint32_t instance, bool enable)
 Sets the UARTx Open Drain Enable setting. More...
 
static bool SIM_HAL_GetUartOpenDrainCmd (SIM_Type *base, uint32_t instance)
 Gets the UARTx Open Drain Enable setting. More...
 
static uint32_t SIM_HAL_GetSramSizeId (SIM_Type *base)
 Gets the Kinetis SRAMSIZE ID in the System Device ID register (SIM_SDID). More...
 
static void CLOCK_HAL_SetOutDiv5ENCmd (SIM_Type *base, bool setting)
 Set OUTDIV5EN. More...
 
static bool CLOCK_HAL_GetOutDiv5ENCmd (SIM_Type *base)
 Get OUTDIV5EN. More...
 
static void CLOCK_HAL_SetOutDiv5 (SIM_Type *base, uint8_t setting)
 Set OUTDIV5. More...
 
static uint8_t CLOCK_HAL_GetOutDiv5 (SIM_Type *base)
 Get OUTDIV5. More...
 
void CLOCK_HAL_SetAdcAltClkSrc (SIM_Type *base, uint32_t instance, clock_adc_alt_src_t adcAltSrcSel)
 Sets the ADC ALT clock source selection setting. More...
 
clock_adc_alt_src_t CLOCK_HAL_GetAdcAltClkSrc (SIM_Type *base, uint32_t instance)
 Gets the ADC ALT clock source selection setting. More...
 
void SIM_HAL_SetAdcAlternativeTriggerMode (SIM_Type *base, uint32_t instance, sim_adc_alttrg_sel_t select)
 Sets the ADCx alternate trigger select setting. More...
 
sim_adc_alttrg_sel_t SIM_HAL_GetAdcAlternativeTriggerMode (SIM_Type *base, uint32_t instance)
 Gets the ADCx alternate trigger select setting. More...
 
void SIM_HAL_SetAdcTriggerModeOneStep (SIM_Type *base, uint32_t instance, sim_adc_alttrg_sel_t altTrigSel, sim_adc_pretrg_sel_t preTrigSel, sim_adc_trg_sel_t trigSel)
 Sets the ADCx trigger select setting in one function. More...
 
void SIM_HAL_SetWdogClkSrc (SIM_Type *base, bool select)
 WDOG Clock Select. More...
 
bool SIM_HAL_GetWdogClkSrc (SIM_Type *base)
 Get WDOG Clock Src. More...
 
void SIM_HAL_SetUartOpenDrainMode (SIM_Type *base, uint32_t instance, bool enable)
 Sets the UARTx open drain enable setting. More...
 
bool SIM_HAL_GetUartOpenDrainMode (SIM_Type *base, uint32_t instance)
 Gets the UARTx open drain enable setting. More...
 
static void CLOCK_HAL_SetFtmFixFreqClkSrc (SIM_Type *base, clock_ftm_fixedfreq_src_t ftmFixedFreqSel)
 Sets the FTM Fixed clock source selection setting. More...
 
static clock_ftm_fixedfreq_src_t CLOCK_HAL_GetFtmFixFreqClkSrc (SIM_Type *base)
 Gets the FTM Fixed clock source selection setting. More...
 
static void SIM_HAL_SetFtmCarrierFreqMode (SIM_Type *base, uint32_t instance, sim_ftm_flt_carrier_sel_t select)
 Sets the Carrier frequency selection for FTM0/2/3/4 output channel. More...
 
static sim_ftm_flt_carrier_sel_t SIM_HAL_GetFtmCarrierFreqMode (SIM_Type *base, uint32_t instance)
 Gets the Carrier frequency selection for FTM0/2 output channel. More...
 
static uint32_t SIM_HAL_GetSubFamId (SIM_Type *base)
 Gets the Kinetis SbuFam ID in System Device ID register (SIM_SDID). More...
 
static uint32_t SIM_HAL_GetFlashMaxAddrBlock (SIM_Type *base)
 Gets the Flash maximum address block in the Flash Configuration Register 1 (SIM_FCFG). More...
 
static void SIM_HAL_SetFtmCarrierFreqMode (SIM_Type *base, sim_ftm_flt_carrier_sel_t select)
 Sets the Carrier frequency selection for FTM0/2 output channel. More...
 
static sim_ftm_flt_carrier_sel_t SIM_HAL_GetFtmCarrierFreqMode (SIM_Type *base)
 Gets the Carrier frequency selection for FTM0/2 output channel. More...
 
sim_hal_status_t CLOCK_HAL_SetSource (SIM_Type *base, clock_source_names_t clockSource, uint8_t setting)
 Sets the clock source setting. More...
 
sim_hal_status_t CLOCK_HAL_GetSource (SIM_Type *base, clock_source_names_t clockSource, uint8_t *setting)
 Gets the clock source setting. More...
 
sim_hal_status_t CLOCK_HAL_SetDivider (SIM_Type *base, clock_divider_names_t clockDivider, uint32_t setting)
 Sets the clock divider setting. More...
 

IP related clock feature APIs

void CLOCK_HAL_SetOutDiv (SIM_Type *base, uint8_t outdiv1, uint8_t outdiv2, uint8_t outdiv3, uint8_t outdiv4)
 Sets the clock out dividers setting. More...
 
void CLOCK_HAL_GetOutDiv (SIM_Type *base, uint8_t *outdiv1, uint8_t *outdiv2, uint8_t *outdiv3, uint8_t *outdiv4)
 Gets the clock out dividers setting. More...
 
void SIM_HAL_SetAdcAlternativeTriggerCmd (SIM_Type *base, uint32_t instance, bool enable)
 Sets the ADCx alternate trigger enable setting. More...
 
bool SIM_HAL_GetAdcAlternativeTriggerCmd (SIM_Type *base, uint32_t instance)
 Gets the ADCx alternate trigger enable setting. 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 (SIM_Type *base, uint32_t instance)
 Gets the ADCx 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 (SIM_Type *base, uint32_t instance)
 Gets the ADCx trigger select setting. More...
 
void SIM_HAL_SetAdcTriggerModeOneStep (SIM_Type *base, uint32_t instance, bool altTrigEn, sim_adc_pretrg_sel_t preTrigSel, sim_adc_trg_sel_t trigSel)
 Sets the ADCx trigger select setting in one function. More...
 
void SIM_HAL_SetUartRxSrcMode (SIM_Type *base, uint32_t instance, sim_uart_rxsrc_t select)
 Sets the UARTx receive data source select setting. More...
 
sim_uart_rxsrc_t SIM_HAL_GetUartRxSrcMode (SIM_Type *base, uint32_t instance)
 Gets the UARTx receive data source select setting. More...
 
void SIM_HAL_SetUartTxSrcMode (SIM_Type *base, uint32_t instance, sim_uart_txsrc_t select)
 Sets the UARTx transmit data source select setting. More...
 
sim_uart_txsrc_t SIM_HAL_GetUartTxSrcMode (SIM_Type *base, uint32_t instance)
 Gets the UARTx transmit data source select setting. More...
 

Macro Definition Documentation

#define FSL_SIM_SCGC_BIT (   SCGCx,
 
)    (((SCGCx-1U)<<5U) + n)
#define FSL_SIM_SCGC_BIT (   SCGCx,
 
)    (((SCGCx-1U)<<5U) + n)
#define FSL_SIM_SCGC_BIT (   SCGCx,
 
)    (((SCGCx-1U)<<5U) + n)
#define FSL_SIM_SCGC_BIT (   SCGCx,
 
)    (((SCGCx-1U)<<5U) + n)
#define FSL_SIM_SCGC_BIT (   SCGCx,
 
)    (((SCGCx-1U)<<5U) + n)

Enumeration Type Documentation

Enumerator
kSimHalSuccess 

Success.

kSimHalFail 

Error occurs.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

SIM PLLFLLSEL clock source select

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

SIM ADCx pre-trigger select

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

SIM PLLFLLSEL clock source select

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

SIM ADCx pre-trigger select

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

SIM PLLFLLSEL clock source select

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

SIM ADCx pre-trigger select

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

SIM PLLFLLSEL clock source select

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

SIM ADCx pre-trigger select

Enumerator
kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

Enumerator
kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

Enumerator
kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

Enumerator
kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

enum sim_clock_gate_name_t
Enumerator
kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

Enumerator
kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

Enumerator
kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

Enumerator
kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

enum sim_clock_gate_name_t
Enumerator
kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

Enumerator
kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

Enumerator
kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

Enumerator
kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

enum sim_clock_gate_name_t
Enumerator
kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

Enumerator
kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

Enumerator
kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

Enumerator
kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

enum sim_clock_gate_name_t
Enumerator
kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for K64F12 it is Bus clock.

Enumerator
kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

Enumerator
kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

kClockNanoedgeSrcMcgPllClk 

MCG out clock.

kClockNanoedgeSrcMcgPllClk2x 

core clock

Enumerator
kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

kSimCAdcConvA 

ID for ADC converter A.

kSimCAdcConvB 

ID for ADC converter B.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

enum sim_clock_gate_name_t

Function Documentation

static void SIM_HAL_EnableClock ( SIM_Type *  base,
sim_clock_gate_name_t  name 
)
inlinestatic

This function enables the clock for specific module.

Parameters
baseBase address for current SIM instance.
nameName of the module to enable.
static void SIM_HAL_DisableClock ( SIM_Type *  base,
sim_clock_gate_name_t  name 
)
inlinestatic

This function disables the clock for specific module.

Parameters
baseBase address for current SIM instance.
nameName of the module to disable.
static bool SIM_HAL_GetGateCmd ( SIM_Type *  base,
sim_clock_gate_name_t  name 
)
inlinestatic

This function will get the clock gate state for specific module.

Parameters
baseBase address for current SIM instance.
nameName of the module to get.
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_HAL_SetExternalRefClock32kSrc ( SIM_Type *  base,
clock_er32k_src_t  setting 
)
inlinestatic

This function sets the clock selection of ERCLK32K.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static clock_er32k_src_t CLOCK_HAL_GetExternalRefClock32kSrc ( SIM_Type *  base)
inlinestatic

This function gets the clock selection of ERCLK32K.

Parameters
baseBase address for current SIM instance.
Returns
Current selection.
static void CLOCK_HAL_SetOsc32kOutSel ( SIM_Type *  base,
clock_osc32kout_sel_t  setting 
)
inlinestatic

This function sets ERCLK32K output pin.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static clock_osc32kout_sel_t CLOCK_HAL_GetOsc32kOutSel ( SIM_Type *  base)
inlinestatic

This function gets ERCLK32K output pin setting.

Parameters
baseBase address for current SIM instance.
Returns
Current selection.
static uint32_t SIM_HAL_GetRamSize ( SIM_Type *  base)
inlinestatic

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

Parameters
baseBase address for current SIM instance.
Returns
size RAM size on the device
static void CLOCK_HAL_SetPllfllSel ( SIM_Type *  base,
clock_pllfll_sel_t  setting 
)
inlinestatic

This function sets the selection of the high frequency clock for various peripheral clocking options

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static clock_pllfll_sel_t CLOCK_HAL_GetPllfllSel ( SIM_Type *  base)
inlinestatic

This function gets the selection of the high frequency clock for various peripheral clocking options

Parameters
baseBase address for current SIM instance.
Returns
Current selection.
static void CLOCK_HAL_SetTraceClkSrc ( SIM_Type *  base,
clock_trace_src_t  setting 
)
inlinestatic

This function sets debug trace clock selection.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static clock_trace_src_t CLOCK_HAL_GetTraceClkSrc ( SIM_Type *  base)
inlinestatic

This function gets debug trace clock selection.

Parameters
baseBase address for current SIM instance.
Returns
Current selection.
static void CLOCK_HAL_SetClkOutSel ( SIM_Type *  base,
clock_clkout_src_t  setting 
)
inlinestatic

This function sets the selection of the clock to output on the CLKOUT pin.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static clock_clkout_src_t CLOCK_HAL_GetClkOutSel ( SIM_Type *  base)
inlinestatic

This function gets the selection of the clock to output on the CLKOUT pin.

Parameters
baseBase address for current SIM instance.
Returns
Current selection.
static void CLOCK_HAL_SetOutDiv1 ( SIM_Type *  base,
uint8_t  setting 
)
inlinestatic

This function sets divide value OUTDIV1.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static uint8_t CLOCK_HAL_GetOutDiv1 ( SIM_Type *  base)
inlinestatic

This function gets divide value OUTDIV1.

Parameters
baseBase address for current SIM instance.
Returns
Current divide value.
static void CLOCK_HAL_SetOutDiv2 ( SIM_Type *  base,
uint8_t  setting 
)
inlinestatic

This function sets divide value OUTDIV2.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static uint8_t CLOCK_HAL_GetOutDiv2 ( SIM_Type *  base)
inlinestatic

This function gets divide value OUTDIV2.

Parameters
baseBase address for current SIM instance.
Returns
Current divide value.
static void CLOCK_HAL_SetOutDiv4 ( SIM_Type *  base,
uint8_t  setting 
)
inlinestatic

This function sets divide value OUTDIV4.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static uint8_t CLOCK_HAL_GetOutDiv4 ( SIM_Type *  base)
inlinestatic

This function gets divide value OUTDIV4.

Parameters
baseBase address for current SIM instance.
Returns
Current divide value.
void CLOCK_HAL_SetOutDiv ( SIM_Type *  base,
uint8_t  outdiv1,
uint8_t  outdiv2,
uint8_t  outdiv3,
uint8_t  outdiv4 
)

This function sets the setting for all clock out dividers at the same time.

Parameters
baseBase address for current SIM instance.
outdiv1Outdivider1 setting
outdiv2Outdivider2 setting
outdiv3Outdivider3 setting
outdiv4Outdivider4 setting

This function sets the setting for all clock out dividers at the same time. See the reference manual for a supported clock divider and value range and the clock_divider_names_t for clock out dividers.

Parameters
baseBase address for current SIM instance.
outdiv1Outdivider1 setting
outdiv2Outdivider2 setting
outdiv3Outdivider3 setting
outdiv4Outdivider4 setting
void CLOCK_HAL_GetOutDiv ( SIM_Type *  base,
uint8_t *  outdiv1,
uint8_t *  outdiv2,
uint8_t *  outdiv3,
uint8_t *  outdiv4 
)

This function gets the setting for all clock out dividers at the same time.

Parameters
baseBase address for current SIM instance.
outdiv1Outdivider1 setting
outdiv2Outdivider2 setting
outdiv3Outdivider3 setting
outdiv4Outdivider4 setting
void SIM_HAL_SetAdcAlternativeTriggerCmd ( SIM_Type *  base,
uint32_t  instance,
bool  enable 
)
inline

Sets the USB voltage regulator enabled setting.

This function enables/disables the alternative conversion triggers for ADCx.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
enableEnable alternative conversion triggers for ADCx
  • true: Select alternative conversion trigger.
  • false: Select PDB trigger.

This function controls whether the USB voltage regulator is enabled. This bit can only be written when the SOPT1CFG[URWE] bit is set.

Parameters
baseBase address for current SIM instance.
enableUSB voltage regulator enable setting
  • true: USB voltage regulator is enabled.
  • false: USB voltage regulator is disabled.

Sets the ADCx alternate trigger enable setting.

This function enables/disables the alternative conversion triggers for ADCx.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
enableEnable alternative conversion triggers for ADCx
  • true: Select alternative conversion trigger.
  • false: Select PDB trigger.
bool SIM_HAL_GetAdcAlternativeTriggerCmd ( SIM_Type *  base,
uint32_t  instance 
)
inline

This function gets the ADCx alternate trigger enable setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
enabled True if ADCx alternate trigger is enabled
void SIM_HAL_SetAdcPreTriggerMode ( SIM_Type *  base,
uint32_t  instance,
sim_adc_pretrg_sel_t  select 
)
inline

This function selects the ADCx pre-trigger source when the alternative triggers are enabled through ADCxALTTRGEN.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectpre-trigger select setting for ADCx
sim_adc_pretrg_sel_t SIM_HAL_GetAdcPreTriggerMode ( SIM_Type *  base,
uint32_t  instance 
)
inline

This function gets the ADCx pre-trigger select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select ADCx pre-trigger select setting
void SIM_HAL_SetAdcTriggerMode ( SIM_Type *  base,
uint32_t  instance,
sim_adc_trg_sel_t  select 
)
inline

This function selects the ADCx trigger source when alternative triggers are enabled through ADCxALTTRGEN.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selecttrigger select setting for ADCx
sim_adc_trg_sel_t SIM_HAL_GetAdcTriggerMode ( SIM_Type *  base,
uint32_t  instance 
)
inline

This function gets the ADCx trigger select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
ADCx trigger select setting
void SIM_HAL_SetAdcTriggerModeOneStep ( SIM_Type *  base,
uint32_t  instance,
bool  altTrigEn,
sim_adc_pretrg_sel_t  preTrigSel,
sim_adc_trg_sel_t  trigSel 
)

This function sets ADC alternate trigger, pre-trigger mode and trigger mode.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
altTrigEnAlternative trigger enable or not.
preTrigSelPre-trigger mode.
trigSelTrigger mode.
void SIM_HAL_SetUartRxSrcMode ( SIM_Type *  base,
uint32_t  instance,
sim_uart_rxsrc_t  select 
)
inline

This function selects the source for the UARTx receive data.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectthe source for the UARTx receive data
sim_uart_rxsrc_t SIM_HAL_GetUartRxSrcMode ( SIM_Type *  base,
uint32_t  instance 
)
inline

This function gets the UARTx receive data source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select UARTx receive data source select setting
void SIM_HAL_SetUartTxSrcMode ( SIM_Type *  base,
uint32_t  instance,
sim_uart_txsrc_t  select 
)
inline

This function selects the source for the UARTx transmit data.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectthe source for the UARTx transmit data
sim_uart_txsrc_t SIM_HAL_GetUartTxSrcMode ( SIM_Type *  base,
uint32_t  instance 
)
inline

This function gets the UARTx transmit data source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select UARTx transmit data source select setting
void SIM_HAL_SetFtmTriggerSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  trigger,
sim_ftm_trg_src_t  select 
)

This function selects the source of FTMx hardware trigger y.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
triggerhardware trigger y
selectFlexTimer x hardware trigger y
  • 0: Pre-trigger A selected for ADCx.
  • 1: Pre-trigger B selected for ADCx.
sim_ftm_trg_src_t SIM_HAL_GetFtmTriggerSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  trigger 
)

This function gets the FlexTimer x hardware trigger y source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
triggerhardware trigger y
Returns
select FlexTimer x hardware trigger y source select setting
void SIM_HAL_SetFtmExternalClkPinMode ( SIM_Type *  base,
uint32_t  instance,
sim_ftm_clk_sel_t  select 
)

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

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectFTMx external clock pin select
  • 0: FTMx external clock driven by FTM CLKIN0 pin.
  • 1: FTMx external clock driven by FTM CLKIN1 pin.
sim_ftm_clk_sel_t SIM_HAL_GetFtmExternalClkPinMode ( SIM_Type *  base,
uint32_t  instance 
)

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

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select FlexTimer x external clock pin select setting
void SIM_HAL_SetFtmChSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  channel,
sim_ftm_ch_src_t  select 
)

This function selects the FlexTimer x channel y input capture source.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
channelFlexTimer channel y
selectFlexTimer x channel y input capture source
sim_ftm_ch_src_t SIM_HAL_GetFtmChSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  channel 
)

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

Parameters
baseBase address for current SIM instance.
instancedevice instance.
channelFlexTimer channel y
Returns
select FlexTimer x channel y input capture source select setting
void SIM_HAL_SetFtmFaultSelMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  fault,
sim_ftm_flt_sel_t  select 
)

This function sets the FlexTimer x fault y select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
faultfault y
selectFlexTimer x fault y select setting
  • 0: FlexTimer x fault y select 0.
  • 1: FlexTimer x fault y select 1.
sim_ftm_flt_sel_t SIM_HAL_GetFtmFaultSelMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  fault 
)

This function gets the FlexTimer x fault y select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
faultfault y
Returns
select FlexTimer x fault y select setting
void SIM_HAL_SetFtmChOutSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  channel,
sim_ftm_ch_out_src_t  select 
)

This function selects the FlexTimer x channel y output source.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
channelFlexTimer channel y
selectFlexTimer x channel y output source
sim_ftm_ch_out_src_t SIM_HAL_GetFtmChOutSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  channel 
)

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

Parameters
baseBase address for current SIM instance.
instancedevice instance.
channelFlexTimer channel y
Returns
select FlexTimer x channel y output source select setting
void SIM_HAL_SetFtmSyncCmd ( SIM_Type *  base,
uint32_t  instance,
bool  sync 
)

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

Parameters
baseBase address for current SIM instance.
instancedevice instance.
syncSynchronize or not.
static bool SIM_HAL_GetFtmSyncCmd ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

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

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
The synchronization value.
static uint32_t SIM_HAL_GetFamilyId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis Family ID in the System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis Family ID
static uint32_t SIM_HAL_GetSubFamilyId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis Sub-Family ID in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis Sub-Family ID
static uint32_t SIM_HAL_GetSeriesId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis Series ID in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis Series ID
static uint32_t SIM_HAL_GetRevId ( SIM_Type *  base)
inlinestatic

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

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis Revision ID
static uint32_t SIM_HAL_GetDieId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis Die ID in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis Die ID
static uint32_t SIM_HAL_GetFamId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis family identification in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis family identification
static uint32_t SIM_HAL_GetPinCntId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis Pincount ID in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis Pincount ID
static uint32_t SIM_HAL_GetProgramFlashSize ( SIM_Type *  base)
inlinestatic

This function gets the program flash size in the Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
Returns
size Program flash Size
static void SIM_HAL_SetFlashDoze ( SIM_Type *  base,
uint32_t  setting 
)
inlinestatic

This function sets the Flash Doze in the Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
settingFlash Doze setting
static uint32_t SIM_HAL_GetFlashDoze ( SIM_Type *  base)
inlinestatic

This function gets the Flash Doze in the Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
Returns
setting Flash Doze setting
static void SIM_HAL_SetFlashDisableCmd ( SIM_Type *  base,
bool  disable 
)
inlinestatic

This function sets the Flash disable setting in the Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
disableFlash disable setting
static bool SIM_HAL_GetFlashDisableCmd ( SIM_Type *  base)
inlinestatic

This function gets the Flash disable setting in the Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
Returns
setting Flash disable setting
static uint32_t SIM_HAL_GetFlashMaxAddrBlock0 ( SIM_Type *  base)
inlinestatic

This function gets the Flash maximum block 0 in Flash Configuration Register 2.

Parameters
baseBase address for current SIM instance.
Returns
address Flash maximum block 0 address
static void CLOCK_HAL_SetSdhcSrc ( SIM_Type *  base,
uint32_t  instance,
clock_sdhc_src_t  setting 
)
inlinestatic

This function sets the SDHC clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_sdhc_src_t CLOCK_HAL_GetSdhcSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the SDHC clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
static void CLOCK_HAL_SetTimeSrc ( SIM_Type *  base,
uint32_t  instance,
clock_time_src_t  setting 
)
inlinestatic

This function sets the ethernet timestamp clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_time_src_t CLOCK_HAL_GetTimeSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the ethernet timestamp clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
static void CLOCK_HAL_SetRmiiSrc ( SIM_Type *  base,
uint32_t  instance,
clock_rmii_src_t  setting 
)
inlinestatic

This function sets the Ethernet RMII interface clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_rmii_src_t CLOCK_HAL_GetRmiiSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the Ethernet RMII interface clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
static void CLOCK_HAL_SetRtcClkOutSel ( SIM_Type *  base,
clock_rtcout_src_t  setting 
)
inlinestatic

This function sets the selection of the clock to output on the RTC_CLKOUT pin.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static clock_rtcout_src_t CLOCK_HAL_GetRtcClkOutSel ( SIM_Type *  base)
inlinestatic

This function gets the selection of the clock to output on the RTC_CLKOUT pin.

Parameters
baseBase address for current SIM instance.
Returns
Current selection.
static void CLOCK_HAL_SetOutDiv3 ( SIM_Type *  base,
uint8_t  setting 
)
inlinestatic

This function sets divide value OUTDIV3.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static uint8_t CLOCK_HAL_GetOutDiv3 ( SIM_Type *  base)
inlinestatic

This function gets divide value OUTDIV3.

Parameters
baseBase address for current SIM instance.
Returns
Current divide value.
static void SIM_HAL_SetPtd7PadDriveStrengthMode ( SIM_Type *  base,
sim_ptd7pad_strengh_t  setting 
)
inlinestatic

This function controls the output drive strength of the PTD7 pin by selecting either one or two pads to drive it.

Parameters
baseBase address for current SIM instance.
settingPTD7 pad drive strength setting
  • 0: Single-pad drive strength for PTD7.
  • 1: Double pad drive strength for PTD7.
static sim_ptd7pad_strengh_t SIM_HAL_GetPtd7PadDriveStrengthMode ( SIM_Type *  base)
inlinestatic

This function gets the PTD7 pad drive strength setting.

Parameters
baseBase address for current SIM instance.
Returns
setting PTD7 pad drive strength setting
static void SIM_HAL_SetFlexbusSecurityLevelMode ( SIM_Type *  base,
sim_flexbus_security_level_t  setting 
)
inlinestatic

This function sets the FlexBus security level setting. If the security is enabled, this field affects which CPU operations can access the off-chip via the FlexBus and DDR controller interfaces. This field has no effect if the security is not enabled.

Parameters
baseBase address for current SIM instance.
settingFlexBus security level setting
  • 00: All off-chip accesses (op code and data) via the FlexBus and DDR controller are disallowed.
  • 10: Off-chip op code accesses are disallowed. Data accesses are allowed.
  • 11: Off-chip op code accesses and data accesses are allowed.
static sim_flexbus_security_level_t SIM_HAL_GetFlexbusSecurityLevelMode ( SIM_Type *  base)
inlinestatic

This function gets the FlexBus security level setting.

Parameters
baseBase address for current SIM instance.
Returns
setting FlexBus security level setting
static uint32_t SIM_HAL_GetFlexnvmSize ( SIM_Type *  base)
inlinestatic

This function gets the FlexNVM size in the Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
Returns
size FlexNVM Size
static uint32_t SIM_HAL_GetEepromSize ( SIM_Type *  base)
inlinestatic

This function gets the EEProm size in the Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
Returns
size EEProm Size
static uint32_t SIM_HAL_GetFlexnvmPartition ( SIM_Type *  base)
inlinestatic

This function gets the FlexNVM partition in the Flash Configuration Register1

Parameters
baseBase address for current SIM instance.
Returns
setting FlexNVM partition setting
static uint32_t SIM_HAL_GetFlashMaxAddrBlock1 ( SIM_Type *  base)
inlinestatic

This function gets the Flash maximum block 1 in Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
Returns
address Flash maximum block 0 address
static uint32_t SIM_HAL_GetProgramFlashCmd ( SIM_Type *  base)
inlinestatic

This function gets the program flash maximum block 0 in Flash Configuration Register 1.

Parameters
baseBase address for current SIM instance.
Returns
status program flash status
static bool SIM_HAL_GetSwapProgramFlash ( SIM_Type *  base)
inlinestatic

This function gets the Swap program flash flag in the Flash Configuration Register 2.

Parameters
baseBase address for current SIM instance.
Returns
status - Swap program flash flag(Active or Inactive)
void CLOCK_HAL_SetUsbfsDiv ( SIM_Type *  base,
uint8_t  usbdiv,
uint8_t  usbfrac 
)

This function sets USB FS divider setting. Divider output clock = Divider input clock * [ (USBFSFRAC+1) / (USBFSDIV+1) ]

Parameters
baseBase address for current SIM instance.
usbdivValue of USBFSDIV.
usbfracValue of USBFSFRAC.
void CLOCK_HAL_GetUsbfsDiv ( SIM_Type *  base,
uint8_t *  usbdiv,
uint8_t *  usbfrac 
)

This function gets USB FS divider setting. Divider output clock = Divider input clock * [ (USBFSFRAC+1) / (USBFSDIV+1) ]

Parameters
baseBase address for current SIM instance.
usbdivValue of USBFSDIV.
usbfracValue of USBFSFRAC.
static void CLOCK_HAL_SetUsbfsSrc ( SIM_Type *  base,
uint32_t  instance,
clock_usbfs_src_t  setting 
)
inlinestatic

This function sets the selection of the clock source for the USB FS 48 MHz clock.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_usbfs_src_t CLOCK_HAL_GetUsbfsSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the selection of the clock source for the USB FS 48 MHz clock.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
static void SIM_HAL_SetUsbVoltRegulatorCmd ( SIM_Type *  base,
bool  enable 
)
inlinestatic

This function controls whether the USB voltage regulator is enabled. This bit can only be written when the SOPT1CFG[URWE] bit is set.

Parameters
baseBase address for current SIM instance.
enableUSB voltage regulator enable setting
  • true: USB voltage regulator is enabled.
  • false: USB voltage regulator is disabled.
static bool SIM_HAL_GetUsbVoltRegulatorCmd ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator enabled setting.

Parameters
baseBase address for current SIM instance.
Returns
enabled True if the USB voltage regulator is enabled.
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringStopMode ( SIM_Type *  base,
sim_usbsstby_mode_t  setting 
)
inlinestatic

This function controls whether the USB voltage regulator is placed in a standby mode during Stop, VLPS, LLS, and VLLS modes. This bit can only be written when the SOPT1CFG[USSWE] bit is set.

Parameters
baseBase address for current SIM instance.
settingUSB voltage regulator in standby mode setting
  • 0: USB voltage regulator not in standby during Stop, VLPS, LLS and VLLS modes.
  • 1: USB voltage regulator in standby during Stop, VLPS, LLS and VLLS modes.
static sim_usbsstby_mode_t SIM_HAL_GetUsbVoltRegulatorInStdbyDuringStopMode ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator in a standby mode setting.

Parameters
baseBase address for current SIM instance.
Returns
setting USB voltage regulator in a standby mode setting
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringVlprwMode ( SIM_Type *  base,
sim_usbvstby_mode_t  setting 
)
inlinestatic

This function controls whether the USB voltage regulator is placed in a standby mode during the VLPR and the VLPW modes. This bit can only be written when the SOPT1CFG[UVSWE] bit is set.

Parameters
baseBase address for current SIM instance.
settingUSB voltage regulator in standby mode setting
  • 0: USB voltage regulator not in standby during VLPR and VLPW modes.
  • 1: USB voltage regulator in standby during VLPR and VLPW modes.
static sim_usbvstby_mode_t SIM_HAL_GetUsbVoltRegulatorInStdbyDuringVlprwMode ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator in a standby mode during the VLPR or the VLPW.

Parameters
baseBase address for current SIM instance.
Returns
setting USB voltage regulator in a standby mode during the VLPR or the VLPW
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringStopCmd ( SIM_Type *  base,
bool  enable 
)
inlinestatic

This function controls whether the USB voltage regulator stop standby write feature is enabled. Writing one to this bit allows the SOPT1[USBSSTBY] bit to be written. This register bit clears after a write to SOPT1[USBSSTBY].

Parameters
baseBase address for current SIM instance.
enableUSB voltage regulator stop standby write enable setting
  • true: SOPT1[USBSSTBY] can be written.
  • false: SOPT1[USBSSTBY] cannot be written.
static bool SIM_HAL_GetUsbVoltRegulatorInStdbyDuringStopCmd ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator stop standby write enable setting.

Parameters
baseBase address for current SIM instance.
Returns
enabled True if the USB voltage regulator stop standby write is enabled.
static void SIM_HAL_SetUsbVoltRegulatorInStdbyDuringVlprwCmd ( SIM_Type *  base,
bool  enable 
)
inlinestatic

This function controls whether USB voltage regulator VLP standby write feature is enabled. Writing one to this bit allows the SOPT1[USBVSTBY] bit to be written. This register bit clears after a write to SOPT1[USBVSTBY].

Parameters
baseBase address for current SIM instance.
enableUSB voltage regulator VLP standby write enable setting
  • true: SOPT1[USBSSTBY] can be written.
  • false: SOPT1[USBSSTBY] cannot be written.
static bool SIM_HAL_GetUsbVoltRegulatorInStdbyDuringVlprwCmd ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator VLP standby write enable setting.

Parameters
baseBase address for current SIM instance.
Returns
enabled True if the USB voltage regulator VLP standby write is enabled.
static void SIM_HAL_SetUsbVoltRegulatorWriteCmd ( SIM_Type *  base,
bool  enable 
)
inlinestatic

This function controls whether the USB voltage regulator write enable feature is enabled. Writing one to this bit allows the SOPT1[USBREGEN] bit to be written. This register bit clears after a write to SOPT1[USBREGEN].

Parameters
baseBase address for current SIM instance.
enableUSB voltage regulator enable write enable setting
  • true: SOPT1[USBSSTBY] can be written.
  • false: SOPT1[USBSSTBY] cannot be written.
static bool SIM_HAL_GetUsbVoltRegulatorWriteCmd ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator enable write enable setting.

Parameters
baseBase address for current SIM instance.
Returns
enabled True if USB voltage regulator enable write is enabled.
static void CLOCK_HAL_SetLpuartSrc ( SIM_Type *  base,
uint32_t  instance,
clock_lpuart_src_t  setting 
)
inlinestatic

Set the clock selection of LPUART.

This function sets lpuart clock source selection.

Parameters
baseBase address for current SIM instance.
instanceLPUART instance.
settingThe value to set.

This function sets the clock selection of LPUART.

Parameters
baseBase address for current SIM instance.
instanceLPUART instance.
settingThe value to set.
static clock_lpuart_src_t CLOCK_HAL_GetLpuartSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

Get the clock selection of LPUART.

This function gets lpuart clock source selection.

Parameters
baseBase address for current SIM instance.
instanceLPUART instance.
Returns
Current selection.

This function gets the clock selection of LPUART.

Parameters
baseBase address for current SIM instance.
instanceLPUART instance.
Returns
Current selection.
static void SIM_HAL_SetLpuartRxSrcMode ( SIM_Type *  base,
uint32_t  instance,
sim_lpuart_rxsrc_t  select 
)
inlinestatic

This function selects the source for the LPUARTx receive data.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectthe source for the LPUARTx receive data

This function selects the source for the LPUARTx receive data.

Parameters
baseRegister base address of SIM.
instanceLPUART instance.
selectthe source for the LPUARTx receive data
static sim_lpuart_rxsrc_t SIM_HAL_GetLpuartRxSrcMode ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the LPUARTx receive data source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select LPUARTx receive data source select setting

This function gets the LPUARTx receive data source select setting.

Parameters
baseRegister base address of SIM.
instanceLPUART instance.
Returns
select UARTx receive data source select setting
static void CLOCK_HAL_SetUsbhsSlowClockSrc ( SIM_Type *  base,
uint32_t  instance,
clock_usbhs_slowclk_src_t  setting 
)
inlinestatic

This function sets the selection of the clock source for the USB HS/USB PHY slow clock.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_usbhs_slowclk_src_t CLOCK_HAL_GetUsbhsSlowClockSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the selection of the clock source for the USB HS/USB PHY slow clock.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
void CLOCK_HAL_SetPllFllDiv ( SIM_Type *  base,
uint8_t  pllflldiv,
uint8_t  pllfllfrac 
)

This function sets PLL/FLL divider setting. Divider output clock = Divider input clock * [ (PLLFLLFRAC+1) / (PLLFLLDIV+1) ]

Parameters
baseBase address for current SIM instance.
pllflldivValue of PLLFLLDIV.
pllfllfracValue of PLLFLLFRAC.
void CLOCK_HAL_GetPllFllDiv ( SIM_Type *  base,
uint8_t *  pllflldiv,
uint8_t *  pllfllfrac 
)

This function gets PLL/FLL divider setting. Divider output clock = Divider input clock * [ (PLLFLLFRAC+1) / (PLLFLLDIV+1) ]

Parameters
baseBase address for current SIM instance.
pllflldivValue of PLLFLLDIV.
pllfllfracValue of PLLFLLFRAC.
void CLOCK_HAL_SetTraceDiv ( SIM_Type *  base,
uint8_t  tracediv,
uint8_t  tracefrac 
)

This function sets TRACECLK divider setting. Divider output clock = Divider input clock * [ (TRACEFRAC+1) / (TRACEDIV+1) ]

Parameters
baseBase address for current SIM instance.
tracedivValue of TRACEDIV.
tracefracValue of PLLFLLFRAC.
void CLOCK_HAL_GetTraceDiv ( SIM_Type *  base,
uint8_t *  tracediv,
uint8_t *  tracefrac 
)

This function gets TRACECLK divider setting. Divider output clock = Divider input clock * [ (TRACEFRAC+1) / (TRACEDIV+1) ]

Parameters
baseBase address for current SIM instance.
tracedivValue of PLLFLLDIV.
tracefracValue of PLLFLLFRAC.
static void CLOCK_HAL_SetTpmSrc ( SIM_Type *  base,
uint32_t  instance,
clock_tpm_src_t  setting 
)
inlinestatic

This function sets the TPM clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_tpm_src_t CLOCK_HAL_GetTpmSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the TPM clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
static void SIM_HAL_SetUsbVoltRegulatorInrushLimitCmd ( SIM_Type *  base,
bool  enable 
)
inlinestatic

This function controls whether the USB voltage regulator inrush current limit is enabled.

Parameters
baseBase address for current SIM instance.
enableUSB voltage regulator inrush limit enable setting
  • true: USB voltage regulator inrush current limit is enabled.
  • false: USB voltage regulator inrush current limit is disabled.
static bool SIM_HAL_GetUsbVoltRegulatorInrushLimitCmd ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator inrush current limit enabled setting.

Parameters
baseBase address for current SIM instance.
Returns
enabled True if the USB voltage regulator is enabled.
static void SIM_HAL_SetUsbVoltRegulatorOutputTargetCmd ( SIM_Type *  base,
sim_usbvout_mode_t  target 
)
inlinestatic

This function controls the USB voltage regulator output voltage.

Parameters
baseBase address for current SIM instance.
targetUSB voltage regulator output target
static sim_usbvout_mode_t SIM_HAL_GetUsbVoltRegulatorOutputTargetCmd ( SIM_Type *  base)
inlinestatic

This function gets the USB voltage regulator output voltage.

Parameters
baseBase address for current SIM instance.
Returns
USB voltage regulator output target value.
static void SIM_HAL_SetUsbPhyPllRegulatorCmd ( SIM_Type *  base,
bool  enable 
)
inlinestatic

This function controls whether the PLL regulator in the USB PHY is enabled. The regulator must be enabled before enabling the PLL in the USB HS PHY.

Parameters
baseBase address for current SIM instance.
enableUSB PHY PLL regulator enable setting
  • true: USB PHY PLL regulator is enabled.
  • false: USB PHY PLL regulator is disabled.
static bool SIM_HAL_GetUsbPhyPllRegulatorCmd ( SIM_Type *  base)
inlinestatic

This function gets the USB PHY PLL regulator enabled setting.

Parameters
baseBase address for current SIM instance.
Returns
enabled True if the USB PHY PLL regulator is enabled.
static void SIM_HAL_SetLpuartTxSrcMode ( SIM_Type *  base,
uint32_t  instance,
sim_lpuart_txsrc_t  select 
)
inlinestatic

This function selects the source for the LPUARTx transmit data.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectthe source for the LPUARTx receive data

This function selects the source for the LPUARTx transmit data.

Parameters
baseRegister base address of SIM.
instanceLPUART instance.
selectthe source for the UARTx transmit data.

This function selects the source for the LPUARTx transmit data.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectthe source for the LPUARTx transmit data
static sim_lpuart_rxsrc_t SIM_HAL_GetLpuartTxSrcMode ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the LPUARTx transmit data source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select LPUARTx transmit data source select setting

This function gets the LPUARTx transmit data source select setting.

Parameters
baseRegister base address of SIM.
instanceLPUART instance.
Returns
select UARTx transmit data source select setting.
static void CLOCK_HAL_SetEmvsimSrc ( SIM_Type *  base,
uint32_t  instance,
clock_emvsim_src_t  setting 
)
inlinestatic

This function sets emvsim clock source selection.

Parameters
baseBase address for current SIM instance.
instanceEMVSIM instance.
settingThe value to set.
static clock_emvsim_src_t CLOCK_HAL_GetEmvsimSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets emvsim clock source selection.

Parameters
baseBase address for current SIM instance.
instanceEMVSIM instance.
Returns
Current selection.
static void CLOCK_HAL_SetFlexioSrc ( SIM_Type *  base,
uint32_t  instance,
clock_flexio_src_t  setting 
)
inlinestatic

This function selects the clock source for FLEXIO.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_flexio_src_t CLOCK_HAL_GetFlexioSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the clock source of FLEXIO.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
static void CLOCK_HAL_SetLpsciSrc ( SIM_Type *  base,
uint32_t  instance,
clock_lpsci_src_t  setting 
)
inlinestatic

This function sets the LPSCI clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
settingThe value to set.
static clock_lpsci_src_t CLOCK_HAL_GetLpsciSrc ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the LPSCI clock source selection.

Parameters
baseBase address for current SIM instance.
instanceIP instance.
Returns
Current selection.
static void SIM_HAL_SetLpsciRxSrcMode ( SIM_Type *  base,
uint32_t  instance,
sim_lpsci_rxsrc_t  select 
)
inlinestatic

This function selects the source for the LPSCIx receive data.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectthe source for the LPSCIx receive data
static sim_lpsci_rxsrc_t SIM_HAL_GetLpsciRxSrcMode ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the LPSCIx receive data source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select LPSCIx receive data source select setting
static void SIM_HAL_SetLpsciTxSrcMode ( SIM_Type *  base,
uint32_t  instance,
sim_lpsci_txsrc_t  select 
)
inlinestatic

This function selects the source for the LPSCIx transmit data.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectthe source for the LPSCIx transmit data
static sim_lpsci_txsrc_t SIM_HAL_GetLpsciTxSrcMode ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the LPSCIx transmit data source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select LPSCIx transmit data source select setting
static uint32_t SIM_HAL_GetSramSize ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis SramSize in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis SramSize
static void CLOCK_HAL_SetCopSrc ( SIM_Type *  base,
clock_cop_src_t  setting 
)
inlinestatic

This function sets the clock selection of COP.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static clock_cop_src_t CLOCK_HAL_GetCopSrc ( SIM_Type *  base)
inlinestatic

This function gets the clock selection of COP.

Parameters
baseBase address for current SIM instance.
Returns
Current selection.
void SIM_HAL_SetLpuartOpenDrainCmd ( SIM_Type *  base,
uint32_t  instance,
bool  enable 
)
inlinestatic

This function enables/disables the LPUARTx Open Drain.

Parameters
baseRegister base address of SIM.
instanceLPUART instance.
enableEnable/disable LPUARTx Open Drain
  • True: Enable LPUARTx Open Drain
  • False: Disable LPUARTx Open Drain
bool SIM_HAL_GetLpuartOpenDrainCmd ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the LPUARTx Open Drain Enable setting.

Parameters
baseRegister base address of SIM.
instanceLPUART instance.
Returns
enabled True if LPUARTx Open Drain is enabled.
void SIM_HAL_SetTpmChSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  channel,
sim_tpm_ch_src_t  select 
)
inlinestatic

This function selects the Timer/PWM x channel y input capture source.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
channelTPM channel y
selectTimer/PWM x channel y input capture source
sim_tpm_ch_src_t SIM_HAL_GetTpmChSrcMode ( SIM_Type *  base,
uint32_t  instance,
uint8_t  channel 
)
inlinestatic

This function gets the Timer/PWM x channel y input capture source select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
channelTpm channel y
Returns
select Timer/PWM x channel y input capture source select setting
void SIM_HAL_SetTpmExternalClkPinSelMode ( SIM_Type *  base,
uint32_t  instance,
sim_tpm_clk_sel_t  select 
)

This function selects the source of the Timer/PWM x external clock pin select.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectTimer/PWM x external clock pin select
  • 0: Timer/PWM x external clock driven by the TPM_CLKIN0 pin.
  • 1: Timer/PWM x external clock driven by the TPM_CLKIN1 pin.
sim_tpm_clk_sel_t SIM_HAL_GetTpmExternalClkPinSelMode ( SIM_Type *  base,
uint32_t  instance 
)

This function gets the Timer/PWM x external clock pin select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
select Timer/PWM x external clock pin select setting
static void SIM_HAL_SetUartOpenDrainCmd ( SIM_Type *  base,
uint32_t  instance,
bool  enable 
)
inlinestatic

This function enables/disables the UARTx Open Drain.

Parameters
baseRegister base address of SIM.
instanceUART instance.
enableEnable/disable UARTx Open Drain
  • True: Enable UARTx Open Drain
  • False: Disable UARTx Open Drain
static bool SIM_HAL_GetUartOpenDrainCmd ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets the UARTx Open Drain Enable setting.

Parameters
baseRegister base address of SIM.
instanceUART instance.
Returns
enabled True if UARTx Open Drain is enabled.
static uint32_t SIM_HAL_GetSramSizeId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis SRAMSIZE ID in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis SRAMSIZE ID
static void CLOCK_HAL_SetOutDiv5ENCmd ( SIM_Type *  base,
bool  setting 
)
inlinestatic

This function sets divide value OUTDIV5EN.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static bool CLOCK_HAL_GetOutDiv5ENCmd ( SIM_Type *  base)
inlinestatic

This function gets divide value OUTDIV5EN.

Parameters
baseBase address for current SIM instance.
Returns
Current divide value.
static void CLOCK_HAL_SetOutDiv5 ( SIM_Type *  base,
uint8_t  setting 
)
inlinestatic

This function sets divide value OUTDIV5.

Parameters
baseBase address for current SIM instance.
settingThe value to set.
static uint8_t CLOCK_HAL_GetOutDiv5 ( SIM_Type *  base)
inlinestatic

This function gets divide value OUTDIV5.

Parameters
baseBase address for current SIM instance.
Returns
Current divide value.
void CLOCK_HAL_SetAdcAltClkSrc ( SIM_Type *  base,
uint32_t  instance,
clock_adc_alt_src_t  adcAltSrcSel 
)

This function sets the ADC ALT clock source selection setting.

Parameters
baseBase address for current SIM instance.
instanceADC module instance.
adcAltSrcSelADC ALT clock source.
clock_adc_alt_src_t CLOCK_HAL_GetAdcAltClkSrc ( SIM_Type *  base,
uint32_t  instance 
)

This function gets the ADC ALT clock source selection setting.

Parameters
baseBase address for current SIM instance.
instanceADC module instance.
Returns
the ADC ALT clock source selection.
void SIM_HAL_SetAdcAlternativeTriggerMode ( SIM_Type *  base,
uint32_t  instance,
sim_adc_alttrg_sel_t  select 
)

This function selects the alternative conversion triggers for ADCx.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectalternative conversion triggers for ADCx
sim_adc_alttrg_sel_t SIM_HAL_GetAdcAlternativeTriggerMode ( SIM_Type *  base,
uint32_t  instance 
)

This function gets the ADCx alternate trigger select setting.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
selected ADCx alternate trigger select setting
void SIM_HAL_SetAdcTriggerModeOneStep ( SIM_Type *  base,
uint32_t  instance,
sim_adc_alttrg_sel_t  altTrigSel,
sim_adc_pretrg_sel_t  preTrigSel,
sim_adc_trg_sel_t  trigSel 
)

This function sets ADC alternate trigger mode, pre-trigger mode and trigger mode.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
altTrigSelAlternative trigger mode.
preTrigSelPre-trigger mode.
trigSelTrigger mode.
void SIM_HAL_SetWdogClkSrc ( SIM_Type *  base,
bool  select 
)

This function selects the clock source of the WDOG2008 watchdog.

Parameters
baseBase address for current SIM instance.
select0 Internal 1 kHz clock is source to WDOG2008 1 MCGIRCLK is source to WDOG2008

END

bool SIM_HAL_GetWdogClkSrc ( SIM_Type *  base)

This function gets the clock source of the WDOG2008 watchdog.

Parameters
baseBase address for current SIM instance.
Returns
select: 0 Internal 1 kHz clock is source to WDOG2008 1 MCGIRCLK is source to WDOG2008

END

void SIM_HAL_SetUartOpenDrainMode ( SIM_Type *  base,
uint32_t  instance,
bool  enable 
)

This function enables/disables open drain for UARTx.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
enableEnable open drain for UARTx
  • true: Open drain is enabled.
  • false: Open drain is disabled.
bool SIM_HAL_GetUartOpenDrainMode ( SIM_Type *  base,
uint32_t  instance 
)

This function Gets the UARTx open drain enable setting for UARTx.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
UARTx open drain setting

This function Gets the UARTx open drain enable setting for UARTx.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
enabled True if UARTx Open Drain is enabled.
static void CLOCK_HAL_SetFtmFixFreqClkSrc ( SIM_Type *  base,
clock_ftm_fixedfreq_src_t  ftmFixedFreqSel 
)
inlinestatic

This function sets the FTM Fixed clock source selection setting.

Parameters
baseBase address for current SIM instance.
ftmFixedFreqSelFTM Fixed clock source.
static clock_ftm_fixedfreq_src_t CLOCK_HAL_GetFtmFixFreqClkSrc ( SIM_Type *  base)
inlinestatic

This function gets the FTM Fixed clock source selection setting.

Parameters
baseBase address for current SIM instance.
Returns
the FTM Fixed clock source selection.
static void SIM_HAL_SetFtmCarrierFreqMode ( SIM_Type *  base,
uint32_t  instance,
sim_ftm_flt_carrier_sel_t  select 
)
inlinestatic

This function Sets the Carrier frequency selection for FTM0/2/3/4 output channel.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
selectCarrier frequency source select.
  • 0 : FTM1_CH1 output provides the carrier signal
  • 1 : LPTMR0 pre-scaler output provides the carrier signal
  • 2 : FTM5_CH1 pre-scaler output provides the carrier signal
static sim_ftm_flt_carrier_sel_t SIM_HAL_GetFtmCarrierFreqMode ( SIM_Type *  base,
uint32_t  instance 
)
inlinestatic

This function gets Carrier frequency selection setting for FTM0/2 output channel.

Parameters
baseBase address for current SIM instance.
instancedevice instance.
Returns
Carrier frequency selection
static uint32_t SIM_HAL_GetSubFamId ( SIM_Type *  base)
inlinestatic

This function gets the Kinetis SubFam ID in System Device ID register.

Parameters
baseBase address for current SIM instance.
Returns
id Kinetis SubFam ID
static uint32_t SIM_HAL_GetFlashMaxAddrBlock ( SIM_Type *  base)
inlinestatic

This function gets the Flash maximum block in Flash Configuration Register 2.

Parameters
baseBase address for current SIM instance.
Returns
address Flash maximum block address
static void SIM_HAL_SetFtmCarrierFreqMode ( SIM_Type *  base,
sim_ftm_flt_carrier_sel_t  select 
)
inlinestatic

This function Sets the Carrier frequency selection for FTM0/2 output channel.

Parameters
baseBase address for current SIM instance.
selectCarrier frequency source select.
  • 0 : FTM1_CH1 output provides the carrier signal
  • 1 : LPTMR0 pre-scaler output provides the carrier signal
static sim_ftm_flt_carrier_sel_t SIM_HAL_GetFtmCarrierFreqMode ( SIM_Type *  base)
inlinestatic

This function gets Carrier frequency selection setting for FTM0/2 output channel.

Parameters
baseBase address for current SIM instance.
Returns
Carrier frequency selection
sim_hal_status_t CLOCK_HAL_SetSource ( SIM_Type *  base,
clock_source_names_t  clockSource,
uint8_t  setting 
)

This function sets the settings for a specified clock source. Each clock source has its own clock selection settings. See the chip reference manual for clock source detailed settings and the clock_source_names_t for clock sources.

Parameters
baseBase address for current SIM instance.
clockSourceClock source name defined in sim_clock_source_names_t
settingSetting value
Returns
status If the clock source doesn't exist, it returns an error.
sim_hal_status_t CLOCK_HAL_GetSource ( SIM_Type *  base,
clock_source_names_t  clockSource,
uint8_t *  setting 
)

This function gets the settings for a specified clock source. Each clock source has its own clock selection settings. See the reference manual for clock source detailed settings and the clock_source_names_t for clock sources.

Parameters
baseBase address for current SIM instance.
clockSourceClock source name
settingCurrent setting for the clock source
Returns
status If the clock source doesn't exist, it returns an error.
sim_hal_status_t CLOCK_HAL_SetDivider ( SIM_Type *  base,
clock_divider_names_t  clockDivider,
uint32_t  setting 
)

This function sets the setting for a specified clock divider. See the reference manual for a supported clock divider and value range and the clock_divider_names_t for dividers.

Parameters
baseBase address for current SIM instance.
clockDividerClock divider name
settingDivider setting
Returns
status If the clock divider doesn't exist, it returns an error.