Kinetis SDK v.1.3 API Reference Manual  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
fsl_clock_MK21DA5.h File Reference
#include "fsl_mcg_hal.h"
#include "fsl_mcg_hal_modes.h"
#include "fsl_osc_hal.h"

Data Structures

struct  sim_config_k21da5_t
 SIM configuration structure for dynamic clock setting. More...
 

Macros

#define SDHC_EXT_CLK_COUNT   1
 SDHC external clock source count. More...
 
#define USB_EXT_CLK_COUNT   1
 USB external clock source count. More...
 
#define FTM_EXT_CLK_COUNT   2
 FTM external clock source count. More...
 
#define CLOCK_CONFIG_NUM   2
 Default clock configuration number. More...
 
#define CLOCK_CONFIG_INDEX_FOR_VLPR   0
 Clock configuration index for VLPR mode. More...
 
#define CLOCK_CONFIG_INDEX_FOR_RUN   1
 Clock configuration index for RUN mode. More...
 

Functions

static void CLOCK_SYS_SetOutDiv1 (uint8_t outdiv1)
 Sets the clock out divider1 setting(OUTDIV1). More...
 
static uint8_t CLOCK_SYS_GetOutDiv1 (void)
 Gets the clock out divider1 setting(OUTDIV1). More...
 
static void CLOCK_SYS_SetOutDiv2 (uint8_t outdiv2)
 Sets the clock out divider2 setting(OUTDIV2). More...
 
static uint8_t CLOCK_SYS_GetOutDiv2 (void)
 Gets the clock out divider2 setting(OUTDIV2). More...
 
static void CLOCK_SYS_SetOutDiv4 (uint8_t outdiv4)
 Sets the clock out divider4 setting(OUTDIV4). More...
 
static uint8_t CLOCK_SYS_GetOutDiv4 (void)
 Gets the clock out divider4 setting(OUTDIV4). More...
 
static void CLOCK_SYS_SetOutDiv (uint8_t outdiv1, uint8_t outdiv2, uint8_t outdiv3, uint8_t outdiv4)
 Sets the clock out dividers setting. More...
 
static void CLOCK_SYS_GetOutDiv (uint8_t *outdiv1, uint8_t *outdiv2, uint8_t *outdiv3, uint8_t *outdiv4)
 Gets the clock out dividers setting. More...
 
uint32_t CLOCK_SYS_GetFlexbusFreq (void)
 Get flexbus clock frequency. More...
 
uint32_t CLOCK_SYS_GetPllFllClockFreq (void)
 Get the MCGPLLCLK/MCGFLLCLK/IRC48MCLK clock frequency. More...
 
static void CLOCK_SYS_SetPllfllSel (clock_pllfll_sel_t setting)
 Set PLL/FLL clock selection. More...
 
static clock_pllfll_sel_t CLOCK_SYS_GetPllfllSel (void)
 Get PLL/FLL clock selection. More...
 
static uint32_t CLOCK_SYS_GetFixedFreqClockFreq (void)
 Gets the MCGFFCLK clock frequency. More...
 
static uint32_t CLOCK_SYS_GetInternalRefClockFreq (void)
 Get internal reference clock frequency. More...
 
uint32_t CLOCK_SYS_GetExternalRefClock32kFreq (void)
 Gets the external reference 32k clock frequency. More...
 
static void CLOCK_SYS_SetExternalRefClock32kSrc (clock_er32k_src_t src)
 Set the clock selection of ERCLK32K. More...
 
static clock_er32k_src_t CLOCK_SYS_GetExternalRefClock32kSrc (void)
 Get the clock selection of ERCLK32K. More...
 
uint32_t CLOCK_SYS_GetOsc0ExternalRefClockFreq (void)
 Gets the OSC0ERCLK frequency. More...
 
static uint32_t CLOCK_SYS_GetRtcFreq (uint32_t instance)
 Gets RTC input clock frequency. More...
 
uint32_t CLOCK_SYS_GetRtcOutFreq (void)
 Gets RTC_CLKOUT frequency. More...
 
static clock_rtcout_src_t CLOCK_SYS_GetRtcOutSrc (void)
 Gets RTC_CLKOUT source. More...
 
static void CLOCK_SYS_SetRtcOutSrc (clock_rtcout_src_t src)
 Gets RTC_CLKOUT source. More...
 
uint32_t CLOCK_SYS_GetWdogFreq (uint32_t instance, clock_wdog_src_t wdogSrc)
 Gets the watch dog clock frequency. More...
 
static clock_trace_src_t CLOCK_SYS_GetTraceSrc (uint32_t instance)
 Gets the debug trace clock source. More...
 
static void CLOCK_SYS_SetTraceSrc (uint32_t instance, clock_trace_src_t src)
 Sets the debug trace clock source. More...
 
uint32_t CLOCK_SYS_GetTraceFreq (uint32_t instance)
 Gets the debug trace clock frequency. More...
 
uint32_t CLOCK_SYS_GetPortFilterFreq (uint32_t instance, clock_port_filter_src_t src)
 Gets PORTx digital input filter clock frequency. More...
 
uint32_t CLOCK_SYS_GetLptmrFreq (uint32_t instance, clock_lptmr_src_t lptmrSrc)
 Gets LPTMRx pre-scaler/glitch filter clock frequency. More...
 
static uint32_t CLOCK_SYS_GetEwmFreq (uint32_t instance)
 Gets the clock frequency for EWM module. More...
 
static uint32_t CLOCK_SYS_GetFtfFreq (uint32_t instance)
 Gets the clock frequency for FTF module. More...
 
static uint32_t CLOCK_SYS_GetCrcFreq (uint32_t instance)
 Gets the clock frequency for CRC module. More...
 
static uint32_t CLOCK_SYS_GetCmpFreq (uint32_t instance)
 Gets the clock frequency for CMP module. More...
 
static uint32_t CLOCK_SYS_GetVrefFreq (uint32_t instance)
 Gets the clock frequency for VREF module. More...
 
static uint32_t CLOCK_SYS_GetPdbFreq (uint32_t instance)
 Gets the clock frequency for PDB module. More...
 
static uint32_t CLOCK_SYS_GetPitFreq (uint32_t instance)
 Gets the clock frequency for PIT module. More...
 
static uint32_t CLOCK_SYS_GetCmtFreq (uint32_t instance)
 Gets the clock frequency for CMT module. More...
 
static clock_usbfs_src_t CLOCK_SYS_GetUsbfsSrc (uint32_t instance)
 Gets the clock source for USB FS OTG module. More...
 
static void CLOCK_SYS_SetUsbfsSrc (uint32_t instance, clock_usbfs_src_t usbfsSrc)
 Sets the clock source for USB FS OTG module. More...
 
uint32_t CLOCK_SYS_GetUsbfsFreq (uint32_t instance)
 Gets the clock frequency for USB FS OTG module. More...
 
static void CLOCK_SYS_SetUsbfsDiv (uint32_t instance, uint8_t usbdiv, uint8_t usbfrac)
 Set USB FS divider setting. More...
 
static void CLOCK_SYS_GetUsbfsDiv (uint32_t instance, uint8_t *usbdiv, uint8_t *usbfrac)
 Get USB FS divider setting. More...
 
uint32_t CLOCK_SYS_GetSaiFreq (uint32_t instance, clock_sai_src_t saiSrc)
 Gets the clock frequency for SAI. More...
 
static uint32_t CLOCK_SYS_GetUsbdcdFreq (uint32_t instance)
 Gets the clock frequency for USB DCD module. More...
 
static uint32_t CLOCK_SYS_GetSpiFreq (uint32_t instance)
 Gets the clock frequency for SPI module. More...
 
static uint32_t CLOCK_SYS_GetI2cFreq (uint32_t instance)
 Gets the clock frequency for I2C module. More...
 
static uint32_t CLOCK_SYS_GetAdcAltFreq (uint32_t instance)
 Gets ADC alternate clock frequency. More...
 
static uint32_t CLOCK_SYS_GetFtmFixedFreq (uint32_t instance)
 Gets FTM fixed frequency clock frequency. More...
 
static uint32_t CLOCK_SYS_GetFtmSystemClockFreq (uint32_t instance)
 Gets FTM's system clock frequency. More...
 
uint32_t CLOCK_SYS_GetFtmExternalFreq (uint32_t instance)
 Gets FTM external clock frequency. More...
 
static sim_ftm_clk_sel_t CLOCK_SYS_GetFtmExternalSrc (uint32_t instance)
 Gets FTM external clock source. More...
 
static void CLOCK_SYS_SetFtmExternalSrc (uint32_t instance, sim_ftm_clk_sel_t ftmSrc)
 Sets FTM external clock source. More...
 
uint32_t CLOCK_SYS_GetUartFreq (uint32_t instance)
 Gets the clock frequency for UART module. More...
 
static uint32_t CLOCK_SYS_GetGpioFreq (uint32_t instance)
 Gets the clock frequency for GPIO module. More...
 
static void CLOCK_SYS_EnableDmaClock (uint32_t instance)
 Enable the clock for DMA module. More...
 
static void CLOCK_SYS_DisableDmaClock (uint32_t instance)
 Disable the clock for DMA module. More...
 
static bool CLOCK_SYS_GetDmaGateCmd (uint32_t instance)
 Get the the clock gate state for DMA module. More...
 
static void CLOCK_SYS_EnableDmamuxClock (uint32_t instance)
 Enable the clock for DMAMUX module. More...
 
static void CLOCK_SYS_DisableDmamuxClock (uint32_t instance)
 Disable the clock for DMAMUX module. More...
 
static bool CLOCK_SYS_GetDmamuxGateCmd (uint32_t instance)
 Get the the clock gate state for DMAMUX module. More...
 
void CLOCK_SYS_EnablePortClock (uint32_t instance)
 Enable the clock for PORT module. More...
 
void CLOCK_SYS_DisablePortClock (uint32_t instance)
 Disable the clock for PORT module. More...
 
bool CLOCK_SYS_GetPortGateCmd (uint32_t instance)
 Get the the clock gate state for PORT module. More...
 
static void CLOCK_SYS_EnableEwmClock (uint32_t instance)
 Enable the clock for EWM module. More...
 
static void CLOCK_SYS_DisableEwmClock (uint32_t instance)
 Disable the clock for EWM module. More...
 
static bool CLOCK_SYS_GetEwmGateCmd (uint32_t instance)
 Get the the clock gate state for EWM module. More...
 
static void CLOCK_SYS_EnableFtfClock (uint32_t instance)
 Enable the clock for FTF module. More...
 
static void CLOCK_SYS_DisableFtfClock (uint32_t instance)
 Disable the clock for FTF module. More...
 
static bool CLOCK_SYS_GetFtfGateCmd (uint32_t instance)
 Get the the clock gate state for FTF module. More...
 
static void CLOCK_SYS_EnableCrcClock (uint32_t instance)
 Enable the clock for CRC module. More...
 
static void CLOCK_SYS_DisableCrcClock (uint32_t instance)
 Disable the clock for CRC module. More...
 
static bool CLOCK_SYS_GetCrcGateCmd (uint32_t instance)
 Get the the clock gate state for CRC module. More...
 
static void CLOCK_SYS_EnableRngaClock (uint32_t instance)
 Enable the clock for RNGA module. More...
 
static void CLOCK_SYS_DisableRngaClock (uint32_t instance)
 Disable the clock for RNGA module. More...
 
static bool CLOCK_SYS_GetRngaGateCmd (uint32_t instance)
 Get the the clock gate state for RNGA module. More...
 
void CLOCK_SYS_EnableAdcClock (uint32_t instance)
 Enable the clock for ADC module. More...
 
void CLOCK_SYS_DisableAdcClock (uint32_t instance)
 Disable the clock for ADC module. More...
 
bool CLOCK_SYS_GetAdcGateCmd (uint32_t instance)
 Get the the clock gate state for ADC module. More...
 
static void CLOCK_SYS_EnableCmpClock (uint32_t instance)
 Enable the clock for CMP module. More...
 
static void CLOCK_SYS_DisableCmpClock (uint32_t instance)
 Disable the clock for CMP module. More...
 
static bool CLOCK_SYS_GetCmpGateCmd (uint32_t instance)
 Get the the clock gate state for CMP module. More...
 
void CLOCK_SYS_EnableDacClock (uint32_t instance)
 Enable the clock for DAC module. More...
 
void CLOCK_SYS_DisableDacClock (uint32_t instance)
 Disable the clock for DAC module. More...
 
bool CLOCK_SYS_GetDacGateCmd (uint32_t instance)
 Get the the clock gate state for DAC module. More...
 
static void CLOCK_SYS_EnableVrefClock (uint32_t instance)
 Enable the clock for VREF module. More...
 
static void CLOCK_SYS_DisableVrefClock (uint32_t instance)
 Disable the clock for VREF module. More...
 
static bool CLOCK_SYS_GetVrefGateCmd (uint32_t instance)
 Get the the clock gate state for VREF module. More...
 
static void CLOCK_SYS_EnableSaiClock (uint32_t instance)
 Enable the clock for SAI module. More...
 
static void CLOCK_SYS_DisableSaiClock (uint32_t instance)
 Disable the clock for SAI module. More...
 
static bool CLOCK_SYS_GetSaiGateCmd (uint32_t instance)
 Get the the clock gate state for SAI module. More...
 
static void CLOCK_SYS_EnablePdbClock (uint32_t instance)
 Enable the clock for PDB module. More...
 
static void CLOCK_SYS_DisablePdbClock (uint32_t instance)
 Disable the clock for PDB module. More...
 
static bool CLOCK_SYS_GetPdbGateCmd (uint32_t instance)
 Get the the clock gate state for PDB module. More...
 
void CLOCK_SYS_EnableFtmClock (uint32_t instance)
 Enable the clock for FTM module. More...
 
void CLOCK_SYS_DisableFtmClock (uint32_t instance)
 Disable the clock for FTM module. More...
 
bool CLOCK_SYS_GetFtmGateCmd (uint32_t instance)
 Get the the clock gate state for FTM module. More...
 
static void CLOCK_SYS_EnablePitClock (uint32_t instance)
 Enable the clock for PIT module. More...
 
static void CLOCK_SYS_DisablePitClock (uint32_t instance)
 Disable the clock for PIT module. More...
 
static bool CLOCK_SYS_GetPitGateCmd (uint32_t instance)
 Get the the clock gate state for PIT module. More...
 
static void CLOCK_SYS_EnableLptmrClock (uint32_t instance)
 Enable the clock for LPTIMER module. More...
 
static void CLOCK_SYS_DisableLptmrClock (uint32_t instance)
 Disable the clock for LPTIMER module. More...
 
static bool CLOCK_SYS_GetLptmrGateCmd (uint32_t instance)
 Get the the clock gate state for LPTIMER module. More...
 
static void CLOCK_SYS_EnableCmtClock (uint32_t instance)
 Enable the clock for CMT module. More...
 
static void CLOCK_SYS_DisableCmtClock (uint32_t instance)
 Disable the clock for CMT module. More...
 
static bool CLOCK_SYS_GetCmtGateCmd (uint32_t instance)
 Get the the clock gate state for CMT module. More...
 
static void CLOCK_SYS_EnableRtcClock (uint32_t instance)
 Enable the clock for RTC module. More...
 
static void CLOCK_SYS_DisableRtcClock (uint32_t instance)
 Disable the clock for RTC module. More...
 
static bool CLOCK_SYS_GetRtcGateCmd (uint32_t instance)
 Get the the clock gate state for RTC module. More...
 
static void CLOCK_SYS_EnableUsbfsClock (uint32_t instance)
 Enable the clock for USBFS module. More...
 
static void CLOCK_SYS_DisableUsbfsClock (uint32_t instance)
 Disable the clock for USBFS module. More...
 
static bool CLOCK_SYS_GetUsbfsGateCmd (uint32_t instance)
 Get the the clock gate state for USB module. More...
 
static void CLOCK_SYS_EnableUsbdcdClock (uint32_t instance)
 Enable the clock for USBDCD module. More...
 
static void CLOCK_SYS_DisableUsbdcdClock (uint32_t instance)
 Disable the clock for USBDCD module. More...
 
static bool CLOCK_SYS_GetUsbdcdGateCmd (uint32_t instance)
 Get the the clock gate state for USBDCD module. More...
 
void CLOCK_SYS_EnableSpiClock (uint32_t instance)
 Enable the clock for SPI module. More...
 
void CLOCK_SYS_DisableSpiClock (uint32_t instance)
 Disable the clock for SPI module. More...
 
bool CLOCK_SYS_GetSpiGateCmd (uint32_t instance)
 Get the the clock gate state for SPI module. More...
 
void CLOCK_SYS_EnableI2cClock (uint32_t instance)
 Enable the clock for I2C module. More...
 
void CLOCK_SYS_DisableI2cClock (uint32_t instance)
 Disable the clock for I2C module. More...
 
bool CLOCK_SYS_GetI2cGateCmd (uint32_t instance)
 Get the the clock gate state for I2C module. More...
 
void CLOCK_SYS_EnableUartClock (uint32_t instance)
 Enable the clock for UART module. More...
 
void CLOCK_SYS_DisableUartClock (uint32_t instance)
 Disable the clock for UART module. More...
 
bool CLOCK_SYS_GetUartGateCmd (uint32_t instance)
 Get the the clock gate state for UART module. More...
 

Variables

uint32_t g_usbClkInFreq [USB_EXT_CLK_COUNT]
 USB external clock frequency(USB_CLKIN). More...
 
uint32_t g_ftmClkFreq [FTM_EXT_CLK_COUNT]
 FTM external clock frequency(FTM_CLK). More...
 

Function Documentation

static void CLOCK_SYS_SetOutDiv1 ( uint8_t  outdiv1)
inlinestatic

This function sets divide value OUTDIV1.

Parameters
outdiv1Outdivider1 setting
static uint8_t CLOCK_SYS_GetOutDiv1 ( void  )
inlinestatic

This function gets divide value OUTDIV1.

Returns
Outdivider1 setting
static void CLOCK_SYS_SetOutDiv2 ( uint8_t  outdiv2)
inlinestatic

This function sets divide value OUTDIV2.

Parameters
outdiv2Outdivider2 setting
static uint8_t CLOCK_SYS_GetOutDiv2 ( void  )
inlinestatic

This function gets divide value OUTDIV2.

Returns
Outdivider2 setting
static void CLOCK_SYS_SetOutDiv4 ( uint8_t  outdiv4)
inlinestatic

This function sets divide value OUTDIV4.

Parameters
outdiv4Outdivider4 setting
static uint8_t CLOCK_SYS_GetOutDiv4 ( void  )
inlinestatic

This function gets divide value OUTDIV4.

Returns
Outdivider4 setting
static void CLOCK_SYS_SetOutDiv ( uint8_t  outdiv1,
uint8_t  outdiv2,
uint8_t  outdiv3,
uint8_t  outdiv4 
)
inlinestatic

This function sets the setting for all clock out dividers at the same time.

Parameters
outdiv1Outdivider1 setting
outdiv2Outdivider2 setting
outdiv3Outdivider3 setting
outdiv4Outdivider4 setting
static void CLOCK_SYS_GetOutDiv ( uint8_t *  outdiv1,
uint8_t *  outdiv2,
uint8_t *  outdiv3,
uint8_t *  outdiv4 
)
inlinestatic

This function gets the setting for all clock out dividers at the same time.

Parameters
outdiv1Outdivider1 setting
outdiv2Outdivider2 setting
outdiv3Outdivider3 setting
outdiv4Outdivider4 setting
static void CLOCK_SYS_SetPllfllSel ( clock_pllfll_sel_t  setting)
inlinestatic

This function sets the selection of the high frequency clock for various peripheral clocking options

Parameters
settingThe value to set.
static clock_pllfll_sel_t CLOCK_SYS_GetPllfllSel ( void  )
inlinestatic

This function gets the selection of the high frequency clock for various peripheral clocking options

Returns
Current selection.
static uint32_t CLOCK_SYS_GetFixedFreqClockFreq ( void  )
inlinestatic

This function gets the MCG fixed frequency clock (MCGFFCLK) frequency.

Returns
Current clock frequency.
static uint32_t CLOCK_SYS_GetInternalRefClockFreq ( void  )
inlinestatic

This function gets the internal reference clock frequency.

Returns
Current clock frequency.
static void CLOCK_SYS_SetExternalRefClock32kSrc ( clock_er32k_src_t  src)
inlinestatic

This function sets the clock selection of ERCLK32K.

Parameters
srcclock source.
static clock_er32k_src_t CLOCK_SYS_GetExternalRefClock32kSrc ( void  )
inlinestatic

This function gets the clock selection of ERCLK32K.

Returns
Current selection.
static uint32_t CLOCK_SYS_GetRtcFreq ( uint32_t  instance)
inlinestatic

This function gets the RTC input clock frequency.

Parameters
instancemodule device instance
Returns
Current frequency.
static clock_rtcout_src_t CLOCK_SYS_GetRtcOutSrc ( void  )
inlinestatic

This function gets the source of RTC_CLKOUT. It is determined by RTCCLKOUTSEL.

Returns
Current source.
static void CLOCK_SYS_SetRtcOutSrc ( clock_rtcout_src_t  src)
inlinestatic

This function sets the source of RTC_CLKOUT.

Parameters
srcRTC_CLKOUT source to set.
static clock_trace_src_t CLOCK_SYS_GetTraceSrc ( uint32_t  instance)
inlinestatic

This function gets the debug trace clock source.

Parameters
instancemodule device instance
Returns
Current source.
static void CLOCK_SYS_SetTraceSrc ( uint32_t  instance,
clock_trace_src_t  src 
)
inlinestatic

This function sets the debug trace clock source.

Parameters
instancemodule device instance.
srcdebug trace clock source.
static uint32_t CLOCK_SYS_GetEwmFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for EWM module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetFtfFreq ( uint32_t  instance)
inlinestatic

(Flash Memory)

This function gets the clock frequency for FTF module. (Flash Memory)

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetCrcFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for CRC module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetCmpFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for CMP module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetVrefFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for VREF module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetPdbFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for PDB module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetPitFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for PIT module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetCmtFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for CMT module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static void CLOCK_SYS_SetUsbfsDiv ( uint32_t  instance,
uint8_t  usbdiv,
uint8_t  usbfrac 
)
inlinestatic

This function sets USB FS divider setting. Divider output clock = Divider input clock * [ (USBFSFRAC+1) / (USBFSDIV+1) ]

Parameters
instanceUSB FS module instance.
usbdivValue of USBFSDIV.
usbfracValue of USBFSFRAC.
static void CLOCK_SYS_GetUsbfsDiv ( uint32_t  instance,
uint8_t *  usbdiv,
uint8_t *  usbfrac 
)
inlinestatic

This function gets USB FS divider setting. Divider output clock = Divider input clock * [ (USBFSFRAC+1) / (USBFSDIV+1) ]

Parameters
instanceUSB FS module instance.
usbdivValue of USBFSDIV.
usbfracValue of USBFSFRAC.
static uint32_t CLOCK_SYS_GetUsbdcdFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for USB DCD module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetSpiFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for SPI module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetI2cFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for I2C module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static uint32_t CLOCK_SYS_GetAdcAltFreq ( uint32_t  instance)
inlinestatic

This function gets the ADC alternate clock frequency.

Parameters
instancemodule device instance
Returns
freq Current frequency.
static uint32_t CLOCK_SYS_GetFtmFixedFreq ( uint32_t  instance)
inlinestatic

This function gets the FTM fixed frequency clock frequency.

Parameters
instancemodule device instance
Returns
freq Current frequency.
static uint32_t CLOCK_SYS_GetFtmSystemClockFreq ( uint32_t  instance)
inlinestatic

This function gets the FTM's system clock frequency.

Parameters
instancemodule device instance
Returns
Current frequency.
static sim_ftm_clk_sel_t CLOCK_SYS_GetFtmExternalSrc ( uint32_t  instance)
inlinestatic

This function gets the FTM external clock source.

Parameters
instancemodule device instance.
Returns
Ftm external clock source.
static void CLOCK_SYS_SetFtmExternalSrc ( uint32_t  instance,
sim_ftm_clk_sel_t  ftmSrc 
)
inlinestatic

This function sets the FTM external clock source.

Parameters
instancemodule device instance.
ftmSrcFTM clock source setting.
static uint32_t CLOCK_SYS_GetGpioFreq ( uint32_t  instance)
inlinestatic

This function gets the clock frequency for GPIO module.

Parameters
instancemodule device instance
Returns
freq clock frequency for this module
static void CLOCK_SYS_EnableDmaClock ( uint32_t  instance)
inlinestatic

This function enables the clock for DMA module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableDmaClock ( uint32_t  instance)
inlinestatic

This function disables the clock for DMA module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetDmaGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for DMA module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableDmamuxClock ( uint32_t  instance)
inlinestatic

This function enables the clock for DMAMUX module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableDmamuxClock ( uint32_t  instance)
inlinestatic

This function disables the clock for DMAMUX module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetDmamuxGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for DMAMUX module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableEwmClock ( uint32_t  instance)
inlinestatic

This function enables the clock for EWM module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableEwmClock ( uint32_t  instance)
inlinestatic

This function disables the clock for EWM module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetEwmGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for EWM module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableFtfClock ( uint32_t  instance)
inlinestatic

This function enables the clock for FTF module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableFtfClock ( uint32_t  instance)
inlinestatic

This function disables the clock for FTF module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetFtfGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for FTF module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableCrcClock ( uint32_t  instance)
inlinestatic

This function enables the clock for CRC module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableCrcClock ( uint32_t  instance)
inlinestatic

This function disables the clock for CRC module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetCrcGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for CRC module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableRngaClock ( uint32_t  instance)
inlinestatic

This function enables the clock for RNGA module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableRngaClock ( uint32_t  instance)
inlinestatic

This function disables the clock for RNGA module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetRngaGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for RNGA module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableCmpClock ( uint32_t  instance)
inlinestatic

This function enables the clock for CMP module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableCmpClock ( uint32_t  instance)
inlinestatic

This function disables the clock for CMP module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetCmpGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for CMP module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableVrefClock ( uint32_t  instance)
inlinestatic

This function enables the clock for VREF module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableVrefClock ( uint32_t  instance)
inlinestatic

This function disables the clock for VREF module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetVrefGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for VREF module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableSaiClock ( uint32_t  instance)
inlinestatic

This function enables the clock for SAI module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableSaiClock ( uint32_t  instance)
inlinestatic

This function disables the clock for SAI module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetSaiGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for SAI module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnablePdbClock ( uint32_t  instance)
inlinestatic

This function enables the clock for PDB module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisablePdbClock ( uint32_t  instance)
inlinestatic

This function disables the clock for PDB module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetPdbGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for PDB module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnablePitClock ( uint32_t  instance)
inlinestatic

This function enables the clock for PIT module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisablePitClock ( uint32_t  instance)
inlinestatic

This function disables the clock for PIT module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetPitGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for PIT module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableLptmrClock ( uint32_t  instance)
inlinestatic

This function enables the clock for LPTIMER module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableLptmrClock ( uint32_t  instance)
inlinestatic

This function disables the clock for LPTIMER module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetLptmrGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for LPTIMER module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableCmtClock ( uint32_t  instance)
inlinestatic

This function enables the clock for CMT module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableCmtClock ( uint32_t  instance)
inlinestatic

This function disables the clock for CMT module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetCmtGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for CMT module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableRtcClock ( uint32_t  instance)
inlinestatic

This function enables the clock for RTC module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableRtcClock ( uint32_t  instance)
inlinestatic

This function disables the clock for RTC module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetRtcGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for RTC module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableUsbfsClock ( uint32_t  instance)
inlinestatic

This function enables the clock for USBFS module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableUsbfsClock ( uint32_t  instance)
inlinestatic

This function disables the clock for USBFS module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetUsbfsGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for USB module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)
static void CLOCK_SYS_EnableUsbdcdClock ( uint32_t  instance)
inlinestatic

This function enables the clock for USBDCD module.

Parameters
instancemodule device instance
static void CLOCK_SYS_DisableUsbdcdClock ( uint32_t  instance)
inlinestatic

This function disables the clock for USBDCD module.

Parameters
instancemodule device instance
static bool CLOCK_SYS_GetUsbdcdGateCmd ( uint32_t  instance)
inlinestatic

This function will get the clock gate state for USBDCD module.

Parameters
instancemodule device instance
Returns
state true - ungated(Enabled), false - gated (Disabled)