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

Overview

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

Files

file  fsl_sim_hal_MKW40Z4.h
 

Macros

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

Enumerations

enum  clock_cop_src_kw40z4_t {
  kClockCopSrcLpoClk,
  kClockCopSrcAltClk
}
 COP clock source select. More...
 
enum  clock_tpm_src_kw40z4_t {
  kClockTpmSrcNone,
  kClockTpmSrcMcgFllClk,
  kClockTpmSrcOsc0erClk,
  kClockTpmSrcMcgIrClk
}
 TPM clock source select. More...
 
enum  clock_lptmr_src_kw40z4_t {
  kClockLptmrSrcMcgIrClk,
  kClockLptmrSrcLpoClk,
  kClockLptmrSrcEr32kClk,
  kClockLptmrSrcOsc0erClk
}
 LPTMR clock source select. More...
 
enum  clock_lpuart_src_kw40z4_t {
  kClockLpuartSrcNone,
  kClockLpuartSrcMcgFllClk,
  kClockLpuartSrcOsc0erClk,
  kClockLpuartSrcMcgIrClk
}
 LPUART0 clock source select. More...
 
enum  clock_pllfll_sel_kw40z4_t {
  kClockPllFllSelFll,
  kClockPllFllSelPll
}
 SIM PLLFLLSEL clock source select. More...
 
enum  clock_er32k_src_kw40z4_t {
  kClockEr32kSrcOsc0 = 0U,
  kClockEr32kSrcReserved = 1U,
  kClockEr32kSrcRtc = 2U,
  kClockEr32kSrcLpo = 3U
}
 SIM external reference clock source select (OSC32KSEL) More...
 
enum  clock_clkout_src_kw40z4_t {
  kClockClkoutOsc0erClkDiv2 = 0U,
  kClockClkoutOsc0erClkDiv4 = 1U,
  kClockClkoutBusClk = 2U,
  kClockClkoutLpoClk = 3U,
  kClockClkoutMcgIrClk = 4U,
  kClockClkoutOsc0erClkDiv8 = 5U,
  kClockClkoutOsc0erClk = 6U,
  kClockClkoutReserved3 = 7U
}
 SIM CLKOUT_SEL clock source select. More...
 
enum  clock_rtcout_src_kw40z4_t {
  kClockRtcoutSrc1Hz,
  kClockRtcoutSrc32kHz
}
 SIM RTCCLKOUTSEL clock source select. More...
 
enum  sim_adc_pretrg_sel_kw40z4_t {
  kSimAdcPretrgselA,
  kSimAdcPretrgselB
}
 SIM ADCx pre-trigger select. More...
 
enum  sim_adc_trg_sel_kw40z4_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,
  kSimAdcTrgSelRadioTsm = 15U
}
 SIM ADCx trigger select. More...
 
enum  sim_lpuart_rxsrc_kw40z4_t {
  kSimLpuartRxsrcPin,
  kSimLpuartRxsrcCmp0
}
 SIM LPUART receive data source select. More...
 
enum  sim_lpuart_txsrc_kw40z4_t {
  kSimLpuartTxsrcPin,
  kSimLpuartTxsrcTpm1,
  kSimLpuartTxsrcTpm2,
  kSimLpuartTxsrcReserved
}
 SIM LPUART transmit data source select. More...
 
enum  sim_tpm_clk_sel_kw40z4_t {
  kSimTpmClkSel0,
  kSimTpmClkSel1
}
 SIM Timer/PWM external clock select. More...
 
enum  sim_tpm_ch_src_kw40z4_t {
  kSimTpmChSrc0,
  kSimTpmChSrc1
}
 SIM Timer/PWM x channel y input capture source select. More...
 
enum  sim_clock_gate_name_kw40z4_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 KW40Z4 it is Bus clock.

Enumerator
kClockTpmSrcNone 

clock disabled

kClockTpmSrcMcgFllClk 

FLL clock.

kClockTpmSrcOsc0erClk 

OSCERCLK clock.

kClockTpmSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockLptmrSrcMcgIrClk 

MCG out clock.

kClockLptmrSrcLpoClk 

LPO clock.

kClockLptmrSrcEr32kClk 

ERCLK32K clock.

kClockLptmrSrcOsc0erClk 

OSCERCLK clock.

Enumerator
kClockLpuartSrcNone 

clock disabled

kClockLpuartSrcMcgFllClk 

FLL clock.

kClockLpuartSrcOsc0erClk 

OSCERCLK clock.

kClockLpuartSrcMcgIrClk 

MCGIR clock.

Enumerator
kClockPllFllSelFll 

Fll clock.

kClockPllFllSelPll 

Pll0 clock.

Enumerator
kClockEr32kSrcOsc0 

OSC 32k clock.

kClockEr32kSrcReserved 

Reserved.

kClockEr32kSrcRtc 

RTC 32k clock.

kClockEr32kSrcLpo 

LPO clock.

Enumerator
kClockClkoutOsc0erClkDiv2 

Reserved.

kClockClkoutOsc0erClkDiv4 

Reserved.

kClockClkoutBusClk 

Bus clock.

kClockClkoutLpoClk 

LPO clock.

kClockClkoutMcgIrClk 

MCG ir clock.

kClockClkoutOsc0erClkDiv8 

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.

kSimAdcTrgSelRadioTsm 

Radio TSM.

Enumerator
kSimLpuartRxsrcPin 

UARTx_RX Pin.

kSimLpuartRxsrcCmp0 

CMP0.

Enumerator
kSimLpuartTxsrcPin 

LPUARTx_TX Pin.

kSimLpuartTxsrcTpm1 

LPUARTx_TX pin modulated with TPM1 channel 0 output.

kSimLpuartTxsrcTpm2 

LPUARTx_TX pin modulated with TPM2 channel 0 output.

kSimLpuartTxsrcReserved 

Reserved.

Enumerator
kSimTpmClkSel0 

Timer/PWM TPM_CLKIN0 pin.

kSimTpmClkSel1 

Timer/PWM TPM_CLKIN1 pin.

Enumerator
kSimTpmChSrc0 

TPMx_CH0 signal.

kSimTpmChSrc1 

CMP0 output.