CC26xx Driver Library |

- Main Page
- Related Pages
- CC26xx APIs
- Register Descriptions
- Online Resources

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Functions
osc.c File Reference
`#include <inc/hw_types.h>`
`#include <inc/hw_ccfg.h>`
`#include <driverlib/aon_batmon.h>`
`#include <driverlib/aon_rtc.h>`
`#include <driverlib/osc.h>`

Go to the source code of this file.

## Data Structures
struct | OscHfGlobals_t

## Macros
#define | RTC_CV_TO_MS(x) (( 1000 * ( x )) >> 16 )
#define | RTC_CV_TO_US(x) (( 1000000 * ( x )) >> 16 )

## Functions
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...
void | OSCInterfaceEnable (void)
| Enable 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...

## Macro Definition Documentation

#define RTC_CV_TO_MS | ( |  | x | ) | (( 1000 * ( x )) >> 16 )

Definition at line 66 of file osc.c.

Referenced by OSCHF_GetStartupTime().

#define RTC_CV_TO_US | ( |  | x | ) | (( 1000000 * ( x )) >> 16 )

Definition at line 67 of file osc.c.

Referenced by OSCHF_AttemptToSwitchToXosc(), and OSCHF_GetStartupTime().