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

Overview

The section describes the enumerations, macros and data structures for K66F18 SIM HAL driver.

Files

file  fsl_sim_hal_MK66F18.h
 

Macros

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

Enumerations

enum  clock_wdog_src_k66f18_t {
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk
}
 WDOG clock source select. More...
 
enum  clock_trace_src_k66f18_t {
  kClockTraceSrcMcgoutClkDiv,
  kClockTraceSrcCoreClk
}
 Debug trace clock source select. More...
 
enum  clock_port_filter_src_k66f18_t {
  kClockPortFilterSrcBusClk,
  kClockPortFilterSrcLpoClk
}
 PORTx digital input filter clock source select. More...
 
enum  clock_tpm_src_k66f18_t {
  kClockTpmSrcNone,
  kClockTpmSrcPllFllSelDiv,
  kClockTpmSrcOsc0erClk,
  kClockTpmSrcMcgIrClk
}
 TPM clock source select. More...
 
enum  clock_lptmr_src_k66f18_t {
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClkUndiv
}
 LPTMR clock source select. More...
 
enum  clock_lpuart_src_k66f18_t {
  kClockLpuartSrcNone,
  kClockLpuartSrcPllFllSel,
  kClockLpuartSrcOsc0erClk,
  kClockLpuartSrcMcgIrClk
}
 SIM LPUART clock source. More...
 
enum  sim_lpuart_rxsrc_k66f18_t {
  kSimLpuartRxsrcPin,
  kSimLpuartRxsrcCmp0,
  kSimLpuartRxsrcCmp1
}
 SIM LPUART RX source. More...
 
enum  sim_lpuart_txsrc_k66f18_t {
  kSimLpuartTxsrcPin,
  kSimLpuartTxsrcTpm1,
  kSimLpuartTxsrcTpm2
}
 SIM LPUART TX source. More...
 
enum  clock_time_src_k66f18_t {
  kClockTimeSrcCoreSysClk,
  kClockTimeSrcPllFllSel,
  kClockTimeSrcOsc0erClk,
  kClockTimeSrcExt
}
 SIM timestamp clock source. More...
 
enum  clock_rmii_src_k66f18_t {
  kClockRmiiSrcExtalClk,
  kClockRmiiSrcExt
}
 SIM RMII clock source. More...
 
enum  clock_usbfs_src_k66f18_t {
  kClockUsbfsSrcExt,
  kClockUsbfsSrcPllFllSel
}
 SIM USB FS clock source. More...
 
enum  clock_flexcan_src_k66f18_t {
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk
}
 FLEXCAN clock source select. More...
 
enum  clock_sdhc_src_k66f18_t {
  kClockSdhcSrcCoreSysClk,
  kClockSdhcSrcPllFllSel,
  kClockSdhcSrcOsc0erClk,
  kClockSdhcSrcExt
}
 SDHC clock source. More...
 
enum  clock_sai_src_k66f18_t {
  kClockSaiSrcSysClk = 0U,
  kClockSaiSrcOsc0erClk = 1U,
  kClockSaiSrcPllFllSel = 3U
}
 SAI clock source. More...
 
enum  clock_pllfll_sel_k66f18_t {
  kClockPllFllSelFll = 0U,
  kClockPllFllSelPll = 1U,
  kClockPllFllSelUsb1pfd = 2U,
  kClockPllFllSelIrc48M = 3U
}
 SIM PLLFLLSEL clock source select. More...
 
enum  clock_er32k_src_k66f18_t {
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcRtc = 2U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_clkout_src_k66f18_t {
  kClockClkoutSelFlexbusClk = 0U,
  kClockClkoutSelFlashClk = 2U,
  kClockClkoutSelLpoClk = 3U,
  kClockClkoutSelMcgIrClk = 4U,
  kClockClkoutSelRtc = 5U,
  kClockClkoutSelOsc0erClk = 6U,
  kClockClkoutSelIrc48M = 7U
}
 SIM CLKOUT_SEL clock source select. More...
 
enum  clock_rtcout_src_k66f18_t {
  kClockRtcoutSrc1Hz,
  kClockRtcoutSrc32kHz
}
 SIM RTCCLKOUTSEL clock source select. More...
 
enum  clock_usbhs_slowclk_src_k66f18_t {
  kClockUsbhsSlowClkSrcMcgIrClk,
  kClockUsbhsSlowClkSrcRtc32kHz
}
 SIM USBHS/USBPHY slow clock source select. More...
 
enum  sim_usbsstby_mode_k66f18_t {
  kSimUsbsstbyNoRegulator,
  kSimUsbsstbyWithRegulator
}
 SIM USB voltage regulator in standby mode setting during stop modes. More...
 
enum  sim_usbvstby_mode_k66f18_t {
  kSimUsbvstbyNoRegulator,
  kSimUsbvstbyWithRegulator
}
 SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes. More...
 
enum  sim_usbvout_mode_k66f18_t {
  kSimUsbvout2_733V,
  kSimUsbvout3_020V,
  kSimUsbvout3_074V,
  kSimUsbvout3_130V,
  kSimUsbvout3_188V,
  kSimUsbvout3_248V,
  kSimUsbvout3_310V
}
 SIM USB voltage regulator 3.3 output target. More...
 
enum  sim_adc_pretrg_sel_k66f18_t {
  kSimAdcPretrgselA,
  kSimAdcPretrgselB
}
 SIM ADCx pre-trigger select. More...
 
enum  sim_adc_trg_sel_k66f18_t {
  kSimAdcTrgselExt = 0U,
  kSimAdcTrgSelHighSpeedComp0 = 1U,
  kSimAdcTrgSelHighSpeedComp1 = 2U,
  kSimAdcTrgSelHighSpeedComp2 = 3U,
  kSimAdcTrgSelPit0 = 4U,
  kSimAdcTrgSelPit1 = 5U,
  kSimAdcTrgSelPit2 = 6U,
  kSimAdcTrgSelPit3 = 7U,
  kSimAdcTrgSelFtm0 = 8U,
  kSimAdcTrgSelFtm1 = 9U,
  kSimAdcTrgSelFtm2 = 10U,
  kSimAdcTrgSelFtm3 = 11U,
  kSimAdcTrgSelRtcAlarm = 12U,
  kSimAdcTrgSelRtcSec = 13U,
  kSimAdcTrgSelLptimer = 14U,
  kSimAdcTrgSelTpm = 15U
}
 SIM ADCx trigger select. More...
 
enum  sim_uart_rxsrc_k66f18_t {
  kSimUartRxsrcPin,
  kSimUartRxsrcCmp0,
  kSimUartRxsrcCmp1
}
 SIM UART receive data source select. More...
 
enum  sim_uart_txsrc_k66f18_t {
  kSimUartTxsrcPin,
  kSimUartTxsrcFtm1,
  kSimUartTxsrcFtm2
}
 SIM UART transmit data source select. More...
 
enum  sim_ftm_trg_src_k66f18_t {
  kSimFtmTrgSrc0,
  kSimFtmTrgSrc1
}
 SIM FlexTimer x trigger y select. More...
 
enum  sim_ftm_clk_sel_k66f18_t {
  kSimFtmClkSel0,
  kSimFtmClkSel1
}
 SIM FlexTimer external clock select. More...
 
enum  sim_ftm_ch_src_k66f18_t {
  kSimFtmChSrc0,
  kSimFtmChSrc1,
  kSimFtmChSrc2,
  kSimFtmChSrc3
}
 SIM FlexTimer x channel y input capture source select. More...
 
enum  sim_ftm_ch_out_src_k66f18_t {
  kSimFtmChOutSrc0,
  kSimFtmChOutSrc1
}
 SIM FlexTimer x channel y output source select. More...
 
enum  sim_ftm_flt_sel_k66f18_t {
  kSimFtmFltSel0,
  kSimFtmFltSel1
}
 SIM FlexTimer x Fault y select. More...
 
enum  sim_tpm_clk_sel_k66f18_t {
  kSimTpmClkSel0,
  kSimTpmClkSel1
}
 SIM Timer/PWM external clock select. More...
 
enum  sim_tpm_ch_src_k66f18_t {
  kSimTpmChSrc0,
  kSimTpmChSrc1,
  kSimTpmChSrc2,
  kSimTpmChSrc3
}
 SIM Timer/PWM x channel y input capture source select. More...
 
enum  sim_cmtuartpad_strengh_k66f18_t {
  kSimCmtuartSinglePad,
  kSimCmtuartDualPad
}
 SIM CMT/UART pad drive strength. More...
 
enum  sim_ptd7pad_strengh_k66f18_t {
  kSimPtd7padSinglePad,
  kSimPtd7padDualPad
}
 SIM PTD7 pad drive strength. More...
 
enum  sim_flexbus_security_level_k66f18_t {
  kSimFbslLevel0,
  kSimFbslLevel1,
  kSimFbslLevel2,
  kSimFbslLevel3
}
 SIM FlexBus security level. More...
 
enum  sim_clock_gate_name_k66f18_t
 Clock gate name used for SIM_HAL_EnableClock/SIM_HAL_DisableClock. More...
 

Macro Definition Documentation

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

Enumeration Type Documentation

Enumerator
kClockWdogSrcLpoClk 

LPO.

kClockWdogSrcAltClk 

Alternative clock, for this SOC it is Bus clock.

Enumerator
kClockTraceSrcMcgoutClkDiv 

MCG out clock divided by the fractional divider configured by SIM_CLKDIV4[TRACEFRAC, TRACEDIV].

kClockTraceSrcCoreClk 

core clock

Enumerator
kClockPortFilterSrcBusClk 

Bus clock.

kClockPortFilterSrcLpoClk 

LPO.

Enumerator
kClockTpmSrcNone 

clock disabled

kClockTpmSrcPllFllSelDiv 

clock as selected by SOPT2[PLLFLLSEL] and divided by the fractional divider configured by SIM_CLKDIV3[PLLFLLFRAC, PLLFLLDIV].

kClockTpmSrcOsc0erClk 

OSCERCLK clock.

kClockTpmSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClkUndiv 

OSCERCLK_UNDIV clock.

Enumerator
kClockLpuartSrcNone 

Clock disabled.

kClockLpuartSrcPllFllSel 

Clock as selected by SOPT2[PLLFLLSEL].

kClockLpuartSrcOsc0erClk 

OSCERCLK.

kClockLpuartSrcMcgIrClk 

MCGIRCLK.

Enumerator
kSimLpuartRxsrcPin 

LPUARTx_RX Pin.

kSimLpuartRxsrcCmp0 

CMP0.

kSimLpuartRxsrcCmp1 

CMP1.

Enumerator
kSimLpuartTxsrcPin 

UARTx_TX Pin.

kSimLpuartTxsrcTpm1 

UARTx_TX pin modulated with TPM1 channel 0 output.

kSimLpuartTxsrcTpm2 

UARTx_TX pin modulated with TPM2 channel 0 output.

Enumerator
kClockTimeSrcCoreSysClk 

Core/system clock.

kClockTimeSrcPllFllSel 

clock as selected by SOPT2[PLLFLLSEL].

kClockTimeSrcOsc0erClk 

OSCERCLK clock.

kClockTimeSrcExt 

ENET 1588 clock in (ENET_1588_CLKIN)

Enumerator
kClockRmiiSrcExtalClk 

EXTAL Clock.

kClockRmiiSrcExt 

ENET 1588 clock in (ENET_1588_CLKIN)

Enumerator
kClockUsbfsSrcExt 

External bypass clock (USB_CLKIN)

kClockUsbfsSrcPllFllSel 

Clock divider USB FS clock.

Enumerator
kClockFlexcanSrcOsc0erClk 

OSCERCLK.

kClockFlexcanSrcBusClk 

Bus clock.

Enumerator
kClockSdhcSrcCoreSysClk 

Core/system clock.

kClockSdhcSrcPllFllSel 

clock as selected by SOPT2[PLLFLLSEL].

kClockSdhcSrcOsc0erClk 

OSCERCLK clock.

kClockSdhcSrcExt 

External bypass clock (SDHC0_CLKIN)

Enumerator
kClockSaiSrcSysClk 

SYSCLK.

kClockSaiSrcOsc0erClk 

OSC0ERCLK.

kClockSaiSrcPllFllSel 

MCGPLLFLLCLK.

Enumerator
kClockPllFllSelFll 

Fll clock.

kClockPllFllSelPll 

Pll0 clock.

kClockPllFllSelUsb1pfd 

USB1 PFD clock.

kClockPllFllSelIrc48M 

IRC48MCLK.

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcRtc 

RTC 32k clock .

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockClkoutSelFlexbusClk 

Flexbus clock.

kClockClkoutSelFlashClk 

Flash clock.

kClockClkoutSelLpoClk 

LPO clock.

kClockClkoutSelMcgIrClk 

MCGIRCLK.

kClockClkoutSelRtc 

RTC 32k clock.

kClockClkoutSelOsc0erClk 

OSC0ERCLK.

kClockClkoutSelIrc48M 

IRC48MCLK.

Enumerator
kClockRtcoutSrc1Hz 

1Hz clock

kClockRtcoutSrc32kHz 

32kHz clock

Enumerator
kClockUsbhsSlowClkSrcMcgIrClk 

MCGIRCLK clock.

kClockUsbhsSlowClkSrcRtc32kHz 

RTC 32kHz clock.

Enumerator
kSimUsbsstbyNoRegulator 

regulator not in standby during Stop modes

kSimUsbsstbyWithRegulator 

regulator in standby during Stop modes

Enumerator
kSimUsbvstbyNoRegulator 

regulator not in standby during VLPR and VLPW modes

kSimUsbvstbyWithRegulator 

regulator in standby during VLPR and VLPW modes

Enumerator
kSimUsbvout2_733V 

USB 3V regulator output voltage set to 2.733V.

kSimUsbvout3_020V 

USB 3V regulator output voltage set to 3.020V.

kSimUsbvout3_074V 

USB 3V regulator output voltage set to 3.074V.

kSimUsbvout3_130V 

USB 3V regulator output voltage set to 3.130V.

kSimUsbvout3_188V 

USB 3V regulator output voltage set to 3.188V.

kSimUsbvout3_248V 

USB 3V regulator output voltage set to 3.248V.

kSimUsbvout3_310V 

USB 3V regulator output voltage set to 3.310V.

Enumerator
kSimAdcPretrgselA 

Pre-trigger A selected for ADCx.

kSimAdcPretrgselB 

Pre-trigger B selected for ADCx.

Enumerator
kSimAdcTrgselExt 

External trigger.

kSimAdcTrgSelHighSpeedComp0 

High speed comparator 0 output.

kSimAdcTrgSelHighSpeedComp1 

High speed comparator 1 output.

kSimAdcTrgSelHighSpeedComp2 

High speed comparator 2 output.

kSimAdcTrgSelPit0 

PIT trigger 0.

kSimAdcTrgSelPit1 

PIT trigger 1.

kSimAdcTrgSelPit2 

PIT trigger 2.

kSimAdcTrgSelPit3 

PIT trigger 3.

kSimAdcTrgSelFtm0 

FTM0 trigger.

kSimAdcTrgSelFtm1 

FTM1 trigger.

kSimAdcTrgSelFtm2 

FTM2 trigger.

kSimAdcTrgSelFtm3 

FTM3 trigger.

kSimAdcTrgSelRtcAlarm 

RTC alarm.

kSimAdcTrgSelRtcSec 

RTC seconds.

kSimAdcTrgSelLptimer 

Low-power timer trigger.

kSimAdcTrgSelTpm 

TPMx channel 0 (A pretrigger) and channel 1 (B pretrigger)

Enumerator
kSimUartRxsrcPin 

UARTx_RX Pin.

kSimUartRxsrcCmp0 

CMP0.

kSimUartRxsrcCmp1 

CMP1.

Enumerator
kSimUartTxsrcPin 

UARTx_TX Pin.

kSimUartTxsrcFtm1 

UARTx_TX pin modulated with FTM1 channel 0 output.

kSimUartTxsrcFtm2 

UARTx_TX pin modulated with FTM2 channel 0 output.

Enumerator
kSimFtmTrgSrc0 

FlexTimer x trigger y select 0.

kSimFtmTrgSrc1 

FlexTimer x trigger y select 1.

Enumerator
kSimFtmClkSel0 

FTM CLKIN0 pin.

kSimFtmClkSel1 

FTM CLKIN1 pin.

Enumerator
kSimFtmChSrc0 

FlexTimer x channel y input capture source 0.

kSimFtmChSrc1 

FlexTimer x channel y input capture source 1.

kSimFtmChSrc2 

FlexTimer x channel y input capture source 2.

kSimFtmChSrc3 

FlexTimer x channel y input capture source 3.

Enumerator
kSimFtmChOutSrc0 

FlexTimer x channel y output source selection 0.

kSimFtmChOutSrc1 

FlexTimer x channel y output source selection 1.

Enumerator
kSimFtmFltSel0 

FlexTimer x fault y select 0.

kSimFtmFltSel1 

FlexTimer x fault y select 1.

Enumerator
kSimTpmClkSel0 

Timer/PWM TPM_CLKIN0 pin.

kSimTpmClkSel1 

Timer/PWM TPM_CLKIN1 pin.

Enumerator
kSimTpmChSrc0 

TPM x channel y input capture source 0.

kSimTpmChSrc1 

TPM x channel y input capture source 1.

kSimTpmChSrc2 

TPM x channel y input capture source 2.

kSimTpmChSrc3 

TPM x channel y input capture source 3.

Enumerator
kSimCmtuartSinglePad 

Single-pad drive strength for CMT IRO or UART0_TXD.

kSimCmtuartDualPad 

Dual-pad drive strength for CMT IRO or UART0_TXD.

Enumerator
kSimPtd7padSinglePad 

Single-pad drive strength for PTD7.

kSimPtd7padDualPad 

Dual-pad drive strength for PTD7.

Enumerator
kSimFbslLevel0 

FlexBus security level 0.

kSimFbslLevel1 

FlexBus security level 1.

kSimFbslLevel2 

FlexBus security level 2.

kSimFbslLevel3 

FlexBus security level 3.