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

Overview

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

Files

file  fsl_sim_hal_MKL36Z4.h
 

Macros

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

Enumerations

enum  clock_cop_src_kl36z4_t {
  kClockCopSrcLpoClk,
  kClockCopSrcAltClk
}
 COP clock source select. More...
 
enum  clock_tpm_src_kl36z4_t {
  kClockTpmSrcNone,
  kClockTpmSrcPllFllSel,
  kClockTpmSrcOsc0erClk,
  kClockTpmSrcMcgIrClk
}
 TPM clock source select. More...
 
enum  clock_lptmr_src_kl36z4_t {
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClk
}
 LPTMR clock source select. More...
 
enum  clock_lpsci_src_kl36z4_t {
  kClockLpsciSrcNone,
  kClockLpsciSrcPllFllSel,
  kClockLpsciSrcOsc0erClk,
  kClockLpsciSrcMcgIrClk
}
 UART0 clock source select. More...
 
enum  clock_sai_src_kl36z4_t {
  kClockSaiSrcSysClk = 0U,
  kClockSaiSrcOsc0erClk = 1U,
  kClockSaiSrcPllClk = 3U
}
 SAI clock source. More...
 
enum  clock_pllfll_sel_kl36z4_t {
  kClockPllFllSelFll,
  kClockPllFllSelPll
}
 SIM PLLFLLSEL clock source select. More...
 
enum  clock_er32k_src_kl36z4_t {
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcReserved = 1U,
  kClockEr32kSrcRtc = 2U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL) More...
 
enum  clock_clkout_src_kl36z4_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  clock_rtcout_src_kl36z4_t {
  kClockRtcoutSrc1Hz,
  kClockRtcoutSrc32kHz
}
 SIM RTCCLKOUTSEL clock source select. More...
 
enum  sim_adc_pretrg_sel_kl36z4_t {
  kSimAdcPretrgselA,
  kSimAdcPretrgselB
}
 SIM ADCx pre-trigger select. More...
 
enum  sim_adc_trg_sel_kl36z4_t {
  kSimAdcTrgselExt = 0U,
  kSimAdcTrgSelComp0 = 1U,
  kSimAdcTrgSelReserved = 2U,
  kSimAdcTrgSelReserved1 = 3U,
  kSimAdcTrgSelPit0 = 4U,
  kSimAdcTrgSelPit1 = 5U,
  kSimAdcTrgSelReserved2 = 6U,
  kSimAdcTrgSelReserved3 = 7U,
  kSimAdcTrgSelTpm0 = 8U,
  kSimAdcTrgSelTpm1 = 9U,
  kSimAdcTrgSelTpm2 = 10U,
  kSimAdcTrgSelReserved4 = 11U,
  kSimAdcTrgSelRtcAlarm = 12U,
  kSimAdcTrgSelRtcSec = 13U,
  kSimAdcTrgSelLptimer = 14U,
  kSimAdcTrgSelReserved5 = 15U
}
 SIM ADCx trigger select. More...
 
enum  sim_uart_rxsrc_kl36z4_t {
  kSimUartRxsrcPin,
  kSimUartRxsrcCmp0
}
 SIM UART receive data source select. More...
 
enum  sim_uart_txsrc_kl36z4_t {
  kSimUartTxsrcPin,
  kSimUartTxsrcTpm1,
  kSimUartTxsrcTpm2,
  kSimUartTxsrcReserved
}
 SIM UART transmit data source select. More...
 
enum  sim_lpsci_rxsrc_kl36z4_t {
  kSimLpsciRxsrcPin,
  kSimLpsciRxsrcCmp0
}
 SIM LPSCI receive data source select. More...
 
enum  sim_lpsci_txsrc_kl36z4_t {
  kSimLpsciTxsrcPin,
  kSimLpsciTxsrcTpm1,
  kSimLpsciTxsrcTpm2,
  kSimLpsciTxsrcReserved
}
 SIM LPSCI transmit data source select. More...
 
enum  sim_tpm_clk_sel_kl36z4_t {
  kSimTpmClkSel0,
  kSimTpmClkSel1
}
 SIM Timer/PWM external clock select. More...
 
enum  sim_tpm_ch_src_kl36z4_t {
  kSimTpmChSrc0,
  kSimTpmChSrc1,
  kSimTpmChSrc2,
  kSimTpmChSrc3
}
 SIM Timer/PWM x channel y input capture source select. More...
 
enum  sim_clock_gate_name_kl36z4_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 KL36Z4 it is Bus clock.

Enumerator
kClockTpmSrcNone 

clock disabled

kClockTpmSrcPllFllSel 

clock as selected by SOPT2[PLLFLLSEL].

kClockTpmSrcOsc0erClk 

OSCERCLK clock.

kClockTpmSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockLptmrSrcMcgIrClk 

MCG out clock.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClk 

OSCERCLK clock.

Enumerator
kClockLpsciSrcNone 

clock disabled

kClockLpsciSrcPllFllSel 

clock as selected by SOPT2[PLLFLLSEL].

kClockLpsciSrcOsc0erClk 

OSCERCLK clock.

kClockLpsciSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockSaiSrcSysClk 

SYSCLK.

kClockSaiSrcOsc0erClk 

OSC0ERCLK.

kClockSaiSrcPllClk 

MCGPLLCLK.

Enumerator
kClockPllFllSelFll 

Fll clock.

kClockPllFllSelPll 

Pll0 clock.

Enumerator
kClockEr32kSrcOsc0 

OSC 32k clock.

kClockEr32kSrcReserved 

Reserved.

kClockEr32kSrcRtc 

RTC 32k clock.

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockClkoutReserved 

Reserved.

kClockClkoutReserved1 

Reserved.

kClockClkoutBusClk 

Bus clock.

kClockClkoutLpoClk 

LPO clock.

kClockClkoutMcgIrClk 

MCG ir clock.

kClockClkoutReserved2 

Reserved.

kClockClkoutOsc0erClk 

OSC0ER clock.

kClockClkoutReserved3 

Reserved.

Enumerator
kClockRtcoutSrc1Hz 

1Hz clock

kClockRtcoutSrc32kHz 

32KHz clock

Enumerator
kSimAdcPretrgselA 

Pre-trigger A selected for ADCx.

kSimAdcPretrgselB 

Pre-trigger B selected for ADCx.

Enumerator
kSimAdcTrgselExt 

External trigger.

kSimAdcTrgSelComp0 

CMP0 output.

kSimAdcTrgSelReserved 

Reserved.

kSimAdcTrgSelReserved1 

Reserved.

kSimAdcTrgSelPit0 

PIT trigger 0.

kSimAdcTrgSelPit1 

PIT trigger 1.

kSimAdcTrgSelReserved2 

Reserved.

kSimAdcTrgSelReserved3 

Reserved.

kSimAdcTrgSelTpm0 

TPM0 overflow.

kSimAdcTrgSelTpm1 

TPM1 overflow.

kSimAdcTrgSelTpm2 

TPM2 overflow.

kSimAdcTrgSelReserved4 

Reserved.

kSimAdcTrgSelRtcAlarm 

RTC alarm.

kSimAdcTrgSelRtcSec 

RTC seconds.

kSimAdcTrgSelLptimer 

Low-power timer trigger.

kSimAdcTrgSelReserved5 

Reserved.

Enumerator
kSimUartRxsrcPin 

UARTx_RX Pin.

kSimUartRxsrcCmp0 

CMP0.

Enumerator
kSimUartTxsrcPin 

UARTx_TX Pin.

kSimUartTxsrcTpm1 

UARTx_TX pin modulated with TPM1 channel 0 output.

kSimUartTxsrcTpm2 

UARTx_TX pin modulated with TPM2 channel 0 output.

kSimUartTxsrcReserved 

Reserved.

Enumerator
kSimLpsciRxsrcPin 

LPSCIx_RX Pin.

kSimLpsciRxsrcCmp0 

CMP0.

Enumerator
kSimLpsciTxsrcPin 

LPSCIx_TX Pin.

kSimLpsciTxsrcTpm1 

LPSCIx_TX pin modulated with TPM1 channel 0 output.

kSimLpsciTxsrcTpm2 

LPSCIx_TX pin modulated with TPM2 channel 0 output.

kSimLpsciTxsrcReserved 

Reserved.

Enumerator
kSimTpmClkSel0 

Timer/PWM TPM_CLKIN0 pin.

kSimTpmClkSel1 

Timer/PWM TPM_CLKIN1 pin.

Enumerator
kSimTpmChSrc0 

TPMx_CH0 signal.

kSimTpmChSrc1 

CMP0 output.

kSimTpmChSrc2 

Reserved.

kSimTpmChSrc3 

USB start of frame pulse.