| Kinetis SDK API Reference Manual 1.0.0-beta Freescale Semiconductor, Inc.

- Introduction
- Related Pages
- API Usage

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Enumerations
fsl_clock_manager.h File Reference
Clock Manager (Clock)
`#include <stdint.h>`
`#include <stdbool.h>`
`#include <assert.h>`

## Enumerations
enum | clock_names_t { kCoreClock, kSystemClock, kPlatformClock, kBusClock, kFlexBusClock, kFlashClock, kOsc32kClock, kOsc0ErClock, kOsc1ErClock, kIrc48mClock, kRtc32kClock, kRtc1hzClock, kLpoClock, kMcgFllClock, kMcgPll0Clock, kMcgPll1Clock, kMcgOutClock, kMcgIrClock, kSDHC0_CLKIN, kENET_1588_CLKIN, kEXTAL_Clock, kEXTAL1_Clock, kUSB_CLKIN, kReserved, kClockNameCount }
| Clock names.
enum | clock_gate_module_names_t { kClockModuleDMA, kClockModuleDMAMUX, kClockModulePORT, kClockModuleMPU, kClockModuleLLWU, kClockModuleEWM, kClockModuleOSC1, kClockModuleFTF, kClockModuleNFC, kClockModuleFLEXBUS, kClockModuleDDR, kClockModuleCRC, kClockModuleRNGA, kClockModuleREGFILE, kClockModuleDRYICESECREG, kClockModuleDRYICE, kClockModuleADC, kClockModuleCMP, kClockModuleDAC, kClockModuleVREF, kClockModuleSAI, kClockModuleTPM, kClockModulePDB, kClockModuleFTM, kClockModulePIT, kClockModuleLPTIMER, kClockModuleCMT, kClockModuleRTC, kClockModuleENET, kClockModuleUSBHS, kClockModuleUSBFS, kClockModuleUSBDCD, kClockModuleFLEXCAN, kClockModuleSPI, kClockModuleI2C, kClockModuleUART, kClockModuleESDHC, kClockModuleLPUART, kClockModuleTSI, kClockModuleLCDC, kClockModuleMax }
| Clock gate module names.
enum | clock_source_names_t { kClockNfcSrc, kClockEsdhcSrc, kClockSdhcSrc, kClockLcdcSrc, kClockTimeSrc, kClockRmiiSrc, kClockUsbfSrc, kClockUsbSrc, kClockUsbhSrc, kClockUart0Src, kClockTpmSrc, kClockOsc32kSel, kClockUsbfSel, kClockPllfllSel, kClockNfcSel, kClockLcdcSel, kClockTraceSel, kClockClkoutSel, kClockRtcClkoutSel, kClockSourceMax }
| Clock source and SEL names.
enum | clock_manager_error_code_t { kClockManagerSuccess, kClockManagerNoSuchClockName, kClockManagerNoSuchClockModule, kClockManagerNoSuchClockSource, kClockManagerNoSuchDivider, kClockManagerUnknown }
| Error code definition for the clock manager APIs. More...

## Functions
Clock Gating
clock_manager_error_code_t | clock_manager_set_gate (clock_gate_module_names_t moduleName, uint8_t instance, bool enable)
| Enables or disables the clock for a specific clock module. More...
clock_manager_error_code_t | clock_manager_get_gate (clock_gate_module_names_t moduleName, uint8_t instance, bool *isEnabled)
| Gets the current clock gate status for a specific clock module. More...
Clock Frequencies
clock_manager_error_code_t | clock_manager_get_frequency (clock_names_t clockName, uint32_t *frequency)
| Gets the clock frequency for a specific clock name. More...
clock_manager_error_code_t | clock_manager_get_frequency_by_source (clock_source_names_t clockSource, uint32_t *frequency)
| Gets the clock frequency for a specified clock source. More...