CC26xx Driver Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osc.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <inc/hw_ddi.h>
#include <inc/hw_ddi_0_osc.h>
#include <driverlib/aon_wuc.h>
#include <driverlib/aux_wuc.h>
#include <driverlib/rom.h>
#include <driverlib/ddi.h>
#include <driverlib/debug.h>

Go to the source code of this file.

Macros

#define LOW_POWER_XOSC   1
 
#define HIGH_POWER_XOSC   0
 
#define OSC_SRC_CLK_HF   0x00000001
 
#define OSC_SRC_CLK_MF   0x00000002
 
#define OSC_SRC_CLK_LF   0x00000004
 
#define OSC_RCOSC_HF   0x00000000
 
#define OSC_XOSC_HF   0x00000001
 
#define OSC_RCOSC_LF   0x00000002
 
#define OSC_XOSC_LF   0x00000003
 
#define SCLK_HF_RCOSC_HF   0
 
#define SCLK_HF_XOSC_HF   1
 
#define SCLK_MF_RCOSC_HF   0
 
#define SCLK_MF_XOSC_HF   1
 
#define SCLK_LF_FROM_RCOSC_HF   0
 
#define SCLK_LF_FROM_XOSC_HF   1
 
#define SCLK_LF_FROM_RCOSC_LF   2
 
#define SCLK_LF_FROM_XOSC_LF   3
 

Functions

__STATIC_INLINE void OSCXHfPowerModeSet (uint32_t ui32Mode)
 Set Power Mode for High Frequency XTAL Oscillator. More...
 
void OSCClockSourceSet (uint32_t ui32SrcClk, uint32_t ui32Osc)
 Configure the oscillator input to the a source clock. More...
 
uint32_t OSCClockSourceGet (uint32_t ui32SrcClk)
 Get the source clock settings. More...
 
__STATIC_INLINE bool OSCHfSourceReady (void)
 Check if the HF clock source is ready to be switched. More...
 
__STATIC_INLINE void OSCHfSourceSwitch (void)
 Switch the high frequency clock. More...
 
void OSCInterfaceEnable (void)
 Enable CM3 access to the OSC_DIG module. More...
 
__STATIC_INLINE void OSCInterfaceDisable (void)
 Disable CM3 access to the OSC_DIG module. More...
 
uint32_t OSCHF_GetStartupTime (uint32_t timeUntilWakeupInMs)
 Returns maximum startup time (in microseconds) of XOSC_HF. More...
 
void OSCHF_TurnOnXosc (void)
 Turns on XOSC_HF (but without switching to XOSC_HF). More...
 
bool OSCHF_AttemptToSwitchToXosc (void)
 Switch to XOSC_HF if XOSC_HF is ready. More...
 
void OSCHF_SwitchToRcOscTurnOffXosc (void)
 Switch to RCOSC_HF and turn off XOSC_HF. More...