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

Overview

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

Files

file  fsl_sim_hal_MKL27Z4.h
 

Macros

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

Enumerations

enum  clock_cop_src_kl27z4_t {
  kClockCopSrcLpoClk,
  kClockCopSrcMcgIrClk,
  kClockCopSrcOsc0erClk,
  kClockCopSrcBusClk
}
 COP clock source selection. More...
 
enum  clock_er32k_src_kl27z4_t {
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcRtc = 2U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_osc32kout_sel_kl27z4_t {
  kClockOsc32koutNone = 0U,
  kClockOsc32koutPte0 = 1U,
  kClockOsc32koutPte26 = 2U
}
 SIM external reference clock output pin select (OSC32KOUT). More...
 
enum  clock_lpuart_src_kl27z4_t {
  kClockLpuartSrcNone,
  kClockLpuartSrcIrc48M,
  kClockLpuartSrcOsc0erClk,
  kClockLpuartSrcMcgIrClk
}
 SIM LPUART clock source. More...
 
enum  clock_tpm_src_kl27z4_t {
  kClockTpmSrcNone,
  kClockTpmSrcIrc48M,
  kClockTpmSrcOsc0erClk,
  kClockTpmSrcMcgIrClk
}
 SIM TPM clock source. More...
 
enum  clock_flexio_src_kl27z4_t {
  kClockFlexioSrcNone,
  kClockFlexioSrcIrc48M,
  kClockFlexioSrcOsc0erClk,
  kClockFlexioSrcMcgIrClk
}
 FLEXIO clock source. More...
 
enum  clock_lptmr_src_kl27z4_t {
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClk
}
 LPTMR clock source select. More...
 
enum  clock_clkout_src_kl27z4_t {
  kClockClkoutSelFlashClk = 2U,
  kClockClkoutSelLpoClk = 3U,
  kClockClkoutSelMcgIrClk = 4U,
  kClockClkoutSelOsc0erClk = 6U,
  kClockClkoutSelIrc48M = 7U
}
 SIM CLKOUT_SEL clock source select. More...
 
enum  clock_rtcout_src_kl27z4_t {
  kClockRtcoutSrc1Hz,
  kClockRtcoutSrcOsc0erClk
}
 SIM RTCCLKOUTSEL clock source select. More...
 
enum  sim_adc_pretrg_sel_kl27z4_t {
  kSimAdcPretrgselA,
  kSimAdcPretrgselB
}
 SIM ADCx pre-trigger select. More...
 
enum  sim_adc_trg_sel_kl27z4_t {
  kSimAdcTrgselExt = 0U,
  kSimAdcTrgSelComp0 = 1U,
  kSimAdcTrgSelPit0 = 4U,
  kSimAdcTrgSelPit1 = 5U,
  kSimAdcTrgSelTpm0 = 8U,
  kSimAdcTrgSelTpm1 = 9U,
  kSimAdcTrgSelTpm2 = 10U,
  kSimAdcTrgSelRtcAlarm = 12U,
  kSimAdcTrgSelRtcSec = 13U,
  kSimAdcTrgSelLptimer = 14U
}
 SIM ADCx trigger select. More...
 
enum  sim_lpuart_rxsrc_kl27z4_t {
  kSimLpuartRxsrcPin,
  kSimLpuartRxsrcCmp0
}
 LPUART receive data source. More...
 
enum  sim_lpuart_txsrc_kl27z4_t {
  kSimLpuartTxsrcPin,
  kSimLpuartTxsrcTpm1,
  kSimLpuartTxsrcTpm2
}
 LPUART transmit data source. More...
 
enum  clock_sai_src_kl27z4_t {
  kClockSaiSrcSysClk = 0U,
  kClockSaiSrcOsc0erClk = 1U,
  kClockSaiSrcMcgIrClk = 2U,
  kClockSaiSrcIrc48M = 3U
}
 SAI clock source. More...
 
enum  sim_tpm_clk_sel_kl27z4_t {
  kSimTpmClkSel0,
  kSimTpmClkSel1
}
 SIM Timer/PWM external clock select. More...
 
enum  sim_tpm_ch_src_kl27z4_t {
  kSimTpmChSrc0,
  kSimTpmChSrc1,
  kSimTpmChSrc2,
  kSimTpmChSrc3
}
 SIM Timer/PWM x channel y input capture source select. More...
 
enum  sim_clock_gate_name_kl27z4_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
kClockCopSrcLpoClk 

LPO clock 1K HZ.

kClockCopSrcMcgIrClk 

MCG IRC Clock.

kClockCopSrcOsc0erClk 

OSCER Clock.

kClockCopSrcBusClk 

BUS clock.

Enumerator
kClockEr32kSrcOsc0 

OSC0 clock (OSC032KCLK).

kClockEr32kSrcRtc 

RTC 32k clock .

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockOsc32koutNone 

ERCLK32K is not output.

kClockOsc32koutPte0 

ERCLK32K is output on PTE0.

kClockOsc32koutPte26 

ERCLK32K is output on PTE26.

Enumerator
kClockLpuartSrcNone 

disabled

kClockLpuartSrcIrc48M 

IRC48M.

kClockLpuartSrcOsc0erClk 

OSCER clock.

kClockLpuartSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockTpmSrcNone 

disabled

kClockTpmSrcIrc48M 

IRC48M/MCGPCLK.

kClockTpmSrcOsc0erClk 

OSCER clock.

kClockTpmSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockFlexioSrcNone 

Clock disabled.

kClockFlexioSrcIrc48M 

MCGPCLK/IRC48M.

kClockFlexioSrcOsc0erClk 

OSCERCLK.

kClockFlexioSrcMcgIrClk 

MCGIRCLK.

Enumerator
kClockLptmrSrcMcgIrClk 

MCG out clock.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClk 

OSCERCLK clock.

Enumerator
kClockClkoutSelFlashClk 

Flash clock.

kClockClkoutSelLpoClk 

LPO clock.

kClockClkoutSelMcgIrClk 

MCG out clock.

kClockClkoutSelOsc0erClk 

OSCER clock.

kClockClkoutSelIrc48M 

IRC48M clock.

Enumerator
kClockRtcoutSrc1Hz 

1Hz clock

kClockRtcoutSrcOsc0erClk 

OSCER clock.

Enumerator
kSimAdcPretrgselA 

Pre-trigger A selected for ADCx.

kSimAdcPretrgselB 

Pre-trigger B selected for ADCx.

Enumerator
kSimAdcTrgselExt 

External trigger.

kSimAdcTrgSelComp0 

CMP0 output.

kSimAdcTrgSelPit0 

PIT trigger 0.

kSimAdcTrgSelPit1 

PIT trigger 1.

kSimAdcTrgSelTpm0 

TPM0 overflow.

kSimAdcTrgSelTpm1 

TPM1 overflow.

kSimAdcTrgSelTpm2 

TPM2 overflow.

kSimAdcTrgSelRtcAlarm 

RTC alarm.

kSimAdcTrgSelRtcSec 

RTC seconds.

kSimAdcTrgSelLptimer 

Low-power timer trigger.

Enumerator
kSimLpuartRxsrcPin 

LPUARTx_RX Pin.

kSimLpuartRxsrcCmp0 

CMP0.

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
kClockSaiSrcSysClk 

SYSCLK.

kClockSaiSrcOsc0erClk 

OSC0ERCLK.

kClockSaiSrcMcgIrClk 

MCGIRCLK.

kClockSaiSrcIrc48M 

MCGPCLK/IRC48M.

Enumerator
kSimTpmClkSel0 

Timer/PWM TPM_CLKIN0 pin.

kSimTpmClkSel1 

Timer/PWM TPM_CLKIN1 pin.

Enumerator
kSimTpmChSrc0 

Channel y input capture source uses 0.

kSimTpmChSrc1 

Channel y input capture source uses 1.

kSimTpmChSrc2 

Channel y input capture source uses 2.

kSimTpmChSrc3 

Channel y input capture source uses 3.