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

Overview

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

Files

file  fsl_sim_hal_MKL03Z4.h
 

Macros

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

Enumerations

enum  clock_cop_src_kl03z4_t {
  kClockCopSrcLpoClk,
  kClockCopSrcMcgIrClk,
  kClockCopSrcOsc0erClk,
  kClockCopSrcBusClk
}
 COP clock source selection. More...
 
enum  clock_er32k_src_kl03z4_t {
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcRtc = 2U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL). More...
 
enum  clock_osc32kout_sel_kl03z4_t {
  kClockOsc32koutNone,
  kClockOsc32koutPtb13
}
 SIM external reference clock output pin select (OSC32KOUT). More...
 
enum  clock_lpuart_src_kl03z4_t {
  kClockLpuartSrcNone,
  kClockLpuartSrcIrc48M,
  kClockLpuartSrcOsc0erClk,
  kClockLpuartSrcMcgIrClk
}
 SIM LPUART0 clock source. More...
 
enum  clock_tpm_src_kl03z4_t {
  kClockTpmSrcNone,
  kClockTpmSrcIrc48M,
  kClockTpmSrcOsc0erClk,
  kClockTpmSrcMcgIrClk
}
 SIM TPM clock source. More...
 
enum  clock_lptmr_src_kl03z4_t {
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClk
}
 LPTMR clock source select. More...
 
enum  clock_clkout_src_kl03z4_t {
  kClockClkoutSelFlashClk = 2U,
  kClockClkoutSelLpoClk = 3U,
  kClockClkoutSelMcgIrClk = 4U,
  kClockClkoutSelOsc0erClk = 6U,
  kClockClkoutSelIrc48M = 7U
}
 SIM CLKOUT_SEL clock source select. More...
 
enum  clock_rtcout_src_kl03z4_t {
  kClockRtcoutSrc1Hz,
  kClockRtcoutSrcOsc0erClk
}
 SIM RTCCLKOUTSEL clock source select. More...
 
enum  sim_adc_pretrg_sel_kl03z4_t {
  kSimAdcPretrgselA,
  kSimAdcPretrgselB
}
 SIM ADCx pre-trigger select. More...
 
enum  sim_adc_trg_sel_kl03z4_t {
  kSimAdcTrgselExt = 0U,
  kSimAdcTrgSelHighSpeedComp0 = 1U,
  kSimAdcTrgSelTpm0 = 8U,
  kSimAdcTrgSelTpm1 = 9U,
  kSimAdcTrgSelRtcAlarm = 12U,
  kSimAdcTrgSelRtcSec = 13U,
  kSimAdcTrgSelLptimer = 14U
}
 SIM ADCx trigger select. More...
 
enum  sim_lpuart_rxsrc_kl03z4_t {
  kSimLpuartRxsrcPin,
  kSimLpuartRxsrcCmp0
}
 SIM LPUART receive data source select. More...
 
enum  sim_lpuart_txsrc_kl03z4_t {
  kSimLpuartTxsrcPin,
  kSimLpuartTxsrcFtm1
}
 SIM LPUART transmit data source select. More...
 
enum  sim_tpm_clk_sel_kl03z4_t {
  kSimTpmClkSel0,
  kSimTpmClkSel1
}
 SIM Timer/PWM external clock select. More...
 
enum  sim_tpm_ch_src_kl03z4_t {
  kSimTpmChSrc0,
  kSimTpmChSrc1
}
 SIM Timer/PWM x channel y input capture source select. More...
 
enum  sim_ptd7pad_strengh_kl03z4_t {
  kSimPtd7padSinglePad,
  kSimPtd7padDualPad
}
 SIM PTD7 pad drive strength. More...
 
enum  sim_clock_gate_name_kl03z4_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.

kClockOsc32koutPtb13 

ERCLK32K output on PTB13.

Enumerator
kClockLpuartSrcNone 

disabled

kClockLpuartSrcIrc48M 

IRC48M.

kClockLpuartSrcOsc0erClk 

OSCER clock.

kClockLpuartSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockTpmSrcNone 

disabled

kClockTpmSrcIrc48M 

IRC48M.

kClockTpmSrcOsc0erClk 

OSCER clock.

kClockTpmSrcMcgIrClk 

MCGIR clock.

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.

kSimAdcTrgSelHighSpeedComp0 

High speed comparator 0 output.

kSimAdcTrgSelTpm0 

TPM0 trigger.

kSimAdcTrgSelTpm1 

TPM1 trigger.

kSimAdcTrgSelRtcAlarm 

RTC alarm.

kSimAdcTrgSelRtcSec 

RTC seconds.

kSimAdcTrgSelLptimer 

Low-power timer trigger.

Enumerator
kSimLpuartRxsrcPin 

LPUARTx_RX Pin.

kSimLpuartRxsrcCmp0 

CMP0.

Enumerator
kSimLpuartTxsrcPin 

LPUARTx_TX Pin.

kSimLpuartTxsrcFtm1 

LPUARTx_TX pin modulated with FTM1 channel 0 output.

Enumerator
kSimTpmClkSel0 

Timer/PWM TPM_CLKIN0 pin.

kSimTpmClkSel1 

Timer/PWM TPM_CLKIN1 pin.

Enumerator
kSimTpmChSrc0 

TPMx_CH0 signal.

kSimTpmChSrc1 

CMP0 output.

Enumerator
kSimPtd7padSinglePad 

Single-pad drive strength for PTD7.

kSimPtd7padDualPad 

Dual-pad drive strength for PTD7.