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

Overview

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

Files

file  fsl_sim_hal_MK21FA12.h
 

Macros

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

Enumerations

enum  clock_wdog_src_k21fa12_t {
  kClockWdogSrcLpoClk,
  kClockWdogSrcAltClk
}
 WDOG clock source select. More...
 
enum  clock_trace_src_k21fa12_t {
  kClockTraceSrcMcgoutClk,
  kClockTraceSrcCoreClk
}
 Debug trace clock source select. More...
 
enum  clock_port_filter_src_k21fa12_t {
  kClockPortFilterSrcBusClk,
  kClockPortFilterSrcLpoClk
}
 PORTx digital input filter clock source select. More...
 
enum  clock_lptmr_src_k21fa12_t {
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClk
}
 LPTMR clock source select. More...
 
enum  clock_usbfs_src_k21fa12_t {
  kClockUsbfsSrcExt,
  kClockUsbfsSrcPllFllSel
}
 SIM USB FS clock source. More...
 
enum  clock_flexcan_src_k21fa12_t {
  kClockFlexcanSrcOsc0erClk,
  kClockFlexcanSrcBusClk
}
 FLEXCAN clock source select. More...
 
enum  clock_sdhc_src_k21fa12_t {
  kClockSdhcSrcCoreSysClk,
  kClockSdhcSrcPllFllSel,
  kClockSdhcSrcOsc0erClk,
  kClockSdhcSrcExt
}
 SDHC clock source. More...
 
enum  clock_sai_src_k21fa12_t {
  kClockSaiSrcSysClk = 0U,
  kClockSaiSrcOsc0erClk = 1U,
  kClockSaiSrcPllClk = 3U
}
 SAI clock source. More...
 
enum  clock_pllfll_sel_k21fa12_t {
  kClockPllFllSelFll = 0U,
  kClockPllFllSelPll = 1U,
  kClockPllFllSelIrc48M = 3U
}
 SIM PLLFLLSEL clock source select. More...
 
enum  clock_er32k_src_k21fa12_t {
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcRtc = 2U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_clkout_src_k21fa12_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_k21fa12_t {
  kClockRtcoutSrc1Hz,
  kClockRtcoutSrc32kHz
}
 SIM RTCCLKOUTSEL clock source select. More...
 
enum  sim_usbsstby_mode_k21fa12_t {
  kSimUsbsstbyNoRegulator,
  kSimUsbsstbyWithRegulator
}
 SIM USB voltage regulator in standby mode setting during stop modes. More...
 
enum  sim_usbvstby_mode_k21fa12_t {
  kSimUsbvstbyNoRegulator,
  kSimUsbvstbyWithRegulator
}
 SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes. More...
 
enum  sim_adc_pretrg_sel_k21fa12_t {
  kSimAdcPretrgselA,
  kSimAdcPretrgselB
}
 SIM ADCx pre-trigger select. More...
 
enum  sim_adc_trg_sel_k21fa12_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
}
 SIM ADCx trigger select. More...
 
enum  sim_uart_rxsrc_k21fa12_t {
  kSimUartRxsrcPin,
  kSimUartRxsrcCmp0,
  kSimUartRxsrcCmp1
}
 SIM UART receive data source select. More...
 
enum  sim_uart_txsrc_k21fa12_t {
  kSimUartTxsrcPin,
  kSimUartTxsrcFtm1,
  kSimUartTxsrcFtm2
}
 SIM UART transmit data source select. More...
 
enum  sim_ftm_trg_src_k21fa12_t {
  kSimFtmTrgSrc0,
  kSimFtmTrgSrc1
}
 SIM FlexTimer x trigger y select. More...
 
enum  sim_ftm_clk_sel_k21fa12_t {
  kSimFtmClkSel0,
  kSimFtmClkSel1
}
 SIM FlexTimer external clock select. More...
 
enum  sim_ftm_ch_src_k21fa12_t {
  kSimFtmChSrc0,
  kSimFtmChSrc1,
  kSimFtmChSrc2,
  kSimFtmChSrc3
}
 SIM FlexTimer x channel y input capture source select. More...
 
enum  sim_ftm_flt_sel_k21fa12_t {
  kSimFtmFltSel0,
  kSimFtmFltSel1
}
 SIM FlexTimer x Fault y select. More...
 
enum  sim_tpm_clk_sel_k21fa12_t {
  kSimTpmClkSel0,
  kSimTpmClkSel1
}
 SIM Timer/PWM external clock select. More...
 
enum  sim_tpm_ch_src_k21fa12_t {
  kSimTpmChSrc0,
  kSimTpmChSrc1,
  kSimTpmChSrc2,
  kSimTpmChSrc3
}
 SIM Timer/PWM x channel y input capture source select. More...
 
enum  sim_cmtuartpad_strengh_k21fa12_t {
  kSimCmtuartSinglePad,
  kSimCmtuartDualPad
}
 SIM CMT/UART pad drive strength. More...
 
enum  sim_ptd7pad_strengh_k21fa12_t {
  kSimPtd7padSinglePad,
  kSimPtd7padDualPad
}
 SIM PTD7 pad drive strength. More...
 
enum  sim_flexbus_security_level_k21fa12_t {
  kSimFbslLevel0,
  kSimFbslLevel1,
  kSimFbslLevel2,
  kSimFbslLevel3
}
 SIM FlexBus security level. More...
 
enum  sim_clock_gate_name_k21fa12_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 MK21FA12 it is Bus clock.

Enumerator
kClockTraceSrcMcgoutClk 

MCG out clock.

kClockTraceSrcCoreClk 

core clock

Enumerator
kClockPortFilterSrcBusClk 

Bus clock.

kClockPortFilterSrcLpoClk 

LPO.

Enumerator
kClockLptmrSrcMcgIrClk 

MCGIRCLK.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClk 

OSCERCLK clock.

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.

kClockSaiSrcPllClk 

MCGPLLCLK.

Enumerator
kClockPllFllSelFll 

Fll clock.

kClockPllFllSelPll 

Pll0 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
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
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.

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
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.