EFM32 Pearl Gecko Software Documentation
efm32pg1-doc-4.2.1
|
Clock management unit (CMU) Peripheral API. More...
#include "em_cmu.h"
#include <stddef.h>
#include <limits.h>
#include "em_assert.h"
#include "em_bus.h"
#include "em_emu.h"
#include "em_system.h"
Go to the source code of this file.
Functions | |
static uint32_t | CMU_AUXHFRCODevinfoGet (CMU_AUXHFRCOFreq_TypeDef freq) |
Get a pointer to the AUXHFRCO frequency calibration word in DEVINFO. More... | |
CMU_AUXHFRCOFreq_TypeDef | CMU_AUXHFRCOFreqGet (void) |
Get AUXHFRCO frequency enumeration in use. More... | |
void | CMU_AUXHFRCOFreqSet (CMU_AUXHFRCOFreq_TypeDef freq) |
Set AUXHFRCO calibration for the selected target frequency. More... | |
uint32_t | CMU_Calibrate (uint32_t HFCycles, CMU_Osc_TypeDef ref) |
Calibrate clock. More... | |
void | CMU_CalibrateConfig (uint32_t downCycles, CMU_Osc_TypeDef downSel, CMU_Osc_TypeDef upSel) |
Configure clock calibration. More... | |
uint32_t | CMU_CalibrateCountGet (void) |
Get calibration count register. More... | |
CMU_ClkDiv_TypeDef | CMU_ClockDivGet (CMU_Clock_TypeDef clock) |
Get clock divisor/prescaler. More... | |
void | CMU_ClockDivSet (CMU_Clock_TypeDef clock, CMU_ClkDiv_TypeDef div) |
Set clock divisor/prescaler. More... | |
void | CMU_ClockEnable (CMU_Clock_TypeDef clock, bool enable) |
Enable/disable a clock. More... | |
uint32_t | CMU_ClockFreqGet (CMU_Clock_TypeDef clock) |
Get clock frequency for a clock point. More... | |
uint32_t | CMU_ClockPrescGet (CMU_Clock_TypeDef clock) |
Get clock prescaler. More... | |
void | CMU_ClockPrescSet (CMU_Clock_TypeDef clock, CMU_ClkPresc_TypeDef presc) |
Set clock prescaler. More... | |
CMU_Select_TypeDef | CMU_ClockSelectGet (CMU_Clock_TypeDef clock) |
Get currently selected reference clock used for a clock branch. More... | |
void | CMU_ClockSelectSet (CMU_Clock_TypeDef clock, CMU_Select_TypeDef ref) |
Select reference clock/oscillator used for a clock branch. More... | |
void | CMU_FreezeEnable (bool enable) |
CMU low frequency register synchronization freeze control. More... | |
static uint32_t | CMU_HFRCODevinfoGet (CMU_HFRCOFreq_TypeDef freq) |
Get a pointer to the HFRCO frequency calibration word in DEVINFO. More... | |
CMU_HFRCOFreq_TypeDef | CMU_HFRCOFreqGet (void) |
Get HFRCO frequency enumeration in use. More... | |
void | CMU_HFRCOFreqSet (CMU_HFRCOFreq_TypeDef freq) |
Set HFRCO calibration for the selected target frequency. More... | |
void | CMU_HFXOAutostartEnable (bool enRACStartSel, bool enEM0EM1Start, bool enEM0EM1StartSel) |
Enable or disable HFXO autostart. More... | |
void | CMU_HFXOInit (CMU_HFXOInit_TypeDef *hfxoInit) |
Set HFXO control registers. More... | |
uint32_t | CMU_LCDClkFDIVGet (void) |
Get the LCD framerate divisor (FDIV) setting. More... | |
void | CMU_LCDClkFDIVSet (uint32_t div) |
Set the LCD framerate divisor (FDIV) setting. More... | |
void | CMU_LFXOInit (CMU_LFXOInit_TypeDef *lfxoInit) |
Set LFXO control registers. More... | |
void | CMU_OscillatorEnable (CMU_Osc_TypeDef osc, bool enable, bool wait) |
Enable/disable oscillator. More... | |
uint32_t | CMU_OscillatorTuningGet (CMU_Osc_TypeDef osc) |
Get oscillator frequency tuning setting. More... | |
void | CMU_OscillatorTuningSet (CMU_Osc_TypeDef osc, uint32_t val) |
Set the oscillator frequency tuning control. More... | |
bool | CMU_PCNTClockExternalGet (unsigned int instance) |
Determine if currently selected PCNTn clock used is external or LFBCLK. More... | |
void | CMU_PCNTClockExternalSet (unsigned int instance, bool external) |
Select PCNTn clock. More... | |
(C) Copyright 2015 Silicon Labs, http://www.silabs.com
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no obligation to support this Software. Silicon Labs is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.
Silicon Labs will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.
Definition in file em_cmu.c.