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

Overview

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

Files

file  fsl_sim_hal_MKL02Z4.h
 

Macros

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

Enumerations

enum  clock_cop_src_kl02z4_t {
  kClockCopSrcLpoClk,
  kClockCopSrcAltClk
}
 COP clock source select. More...
 
enum  clock_tpm_src_kl02z4_t {
  kClockTpmSrcNone,
  kClockTpmSrcFll,
  kClockTpmSrcOsc0erClk,
  kClockTpmSrcMcgIrClk
}
 TPM clock source select. More...
 
enum  clock_lptmr_src_kl02z4_t {
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClk
}
 LPTMR clock source select. More...
 
enum  clock_lpsci_src_kl02z4_t {
  kClockLpsciSrcNone,
  kClockLpsciSrcFll,
  kClockLpsciSrcOsc0erClk,
  kClockLpsciSrcMcgIrClk
}
 UART0 clock source select. More...
 
enum  clock_clkout_src_kl02z4_t {
  kClockClkoutReserved = 0U,
  kClockClkoutReserved1 = 1U,
  kClockClkoutBusClk = 2U,
  kClockClkoutLpoClk = 3U,
  kClockClkoutMcgIrClk = 4U,
  kClockClkoutReserved2 = 5U,
  kClockClkoutOsc0erClk = 6U,
  kClockClkoutReserved3 = 7U
}
 SIM CLKOUT_SEL clock source select. More...
 
enum  sim_adc_pretrg_sel_kl02z4_t {
  kSimAdcPretrgselA,
  kSimAdcPretrgselB
}
 SIM ADCx pre-trigger select. More...
 
enum  sim_adc_trg_sel_kl02z4_t {
  kSimAdcTrgselExt = 0U,
  kSimAdcTrgSelComp0 = 1U,
  kSimAdcTrgSelReserved2 = 2U,
  kSimAdcTrgSelReserved3 = 3U,
  kSimAdcTrgSelReserved4 = 4U,
  kSimAdcTrgSelReserved5 = 5U,
  kSimAdcTrgSelReserved6 = 6U,
  kSimAdcTrgSelReserved7 = 7U,
  kSimAdcTrgSelTpm0 = 8U,
  kSimAdcTrgSelTpm1 = 9U,
  kSimAdcTrgSelReserved10 = 10U,
  kSimAdcTrgSelReserved11 = 11U,
  kSimAdcTrgSelReserved12 = 12U,
  kSimAdcTrgSelReserved13 = 13U,
  kSimAdcTrgSelLptimer = 14U,
  kSimAdcTrgSelReserved15 = 15U
}
 SIM ADCx trigger select. More...
 
enum  sim_lpsci_rxsrc_kl02z4_t {
  kSimLpsciRxsrcPin,
  kSimLpsciRxsrcCmp0
}
 SIM LPSCI receive data source select. More...
 
enum  sim_lpsci_txsrc_kl02z4_t {
  kSimLpsciTxsrcPin,
  kSimLpsciTxsrcTpm1
}
 SIM LPSCI transmit data source select. More...
 
enum  sim_tpm_clk_sel_kl02z4_t {
  kSimTpmClkSel0,
  kSimTpmClkSel1
}
 SIM Timer/PWM external clock select. More...
 
enum  sim_tpm_ch_src_kl02z4_t {
  kSimTpmChSrc0,
  kSimTpmChSrc1
}
 SIM Timer/PWM x channel y input capture source select. More...
 
enum  sim_clock_gate_name_kl02z4_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.

kClockCopSrcAltClk 

Alternative clock, for KL02Z4 it is Bus clock.

Enumerator
kClockTpmSrcNone 

clock disabled

kClockTpmSrcFll 

MCGFLLCLK.

kClockTpmSrcOsc0erClk 

OSCERCLK clock.

kClockTpmSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockLptmrSrcMcgIrClk 

MCG out clock.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClk 

OSCERCLK clock.

Enumerator
kClockLpsciSrcNone 

clock disabled

kClockLpsciSrcFll 

MCGFLLCLK.

kClockLpsciSrcOsc0erClk 

OSCERCLK clock.

kClockLpsciSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockClkoutReserved 

Reserved.

kClockClkoutReserved1 

Reserved.

kClockClkoutBusClk 

Bus clock.

kClockClkoutLpoClk 

LPO clock.

kClockClkoutMcgIrClk 

MCG ir clock.

kClockClkoutReserved2 

Reserved.

kClockClkoutOsc0erClk 

OSC0ER clock.

kClockClkoutReserved3 

Reserved.

Enumerator
kSimAdcPretrgselA 

Pre-trigger A selected for ADCx.

kSimAdcPretrgselB 

Pre-trigger B selected for ADCx.

Enumerator
kSimAdcTrgselExt 

External trigger.

kSimAdcTrgSelComp0 

CMP0 output.

kSimAdcTrgSelReserved2 

Reserved.

kSimAdcTrgSelReserved3 

Reserved.

kSimAdcTrgSelReserved4 

Reserved.

kSimAdcTrgSelReserved5 

Reserved.

kSimAdcTrgSelReserved6 

Reserved.

kSimAdcTrgSelReserved7 

Reserved.

kSimAdcTrgSelTpm0 

TPM0 overflow.

kSimAdcTrgSelTpm1 

TPM1 overflow.

kSimAdcTrgSelReserved10 

Reserved.

kSimAdcTrgSelReserved11 

Reserved.

kSimAdcTrgSelReserved12 

Reserved.

kSimAdcTrgSelReserved13 

Reserved.

kSimAdcTrgSelLptimer 

Low-power timer trigger.

kSimAdcTrgSelReserved15 

Reserved.

Enumerator
kSimLpsciRxsrcPin 

LPSCIx_RX Pin.

kSimLpsciRxsrcCmp0 

CMP0.

Enumerator
kSimLpsciTxsrcPin 

LPSCIx_TX Pin.

kSimLpsciTxsrcTpm1 

LPSCIx_TX pin modulated with TPM1 channel 0 output.

Enumerator
kSimTpmClkSel0 

Timer/PWM TPM_CLKIN0 pin.

kSimTpmClkSel1 

Timer/PWM TPM_CLKIN1 pin.

Enumerator
kSimTpmChSrc0 

TPMx_CH0 signal.

kSimTpmChSrc1 

CMP0 output.