#include "../inc/hw_types.h"#include "../inc/hw_ccfg.h"#include "../inc/hw_fcfg1.h"#include "aon_batmon.h"#include "aon_rtc.h"#include "osc.h"#include "setup_rom.h"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... | |
| 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... | |
| void | OSC_AdjustXoscHfCapArray (int32_t capArrDelta) |
| Adjust the XOSC HF cap array relative to the factory setting. More... | |
| int32_t | OSC_HPOSCRelativeFrequencyOffsetGet (int32_t tempDegC) |
| Calculate the temperature dependent relative frequency offset of HPOSC. More... | |
| int16_t | OSC_HPOSCRelativeFrequencyOffsetToRFCoreFormatConvert (int32_t HPOSC_RelFreqOffset) |
| Converts the relative frequency offset of HPOSC to the RF Core parameter format. More... | |
| uint32_t | OSCHF_DebugGetCrystalAmplitude (void) |
| Get crystal amplitude (assuming crystal is running). More... | |
| uint32_t | OSCHF_DebugGetExpectedAverageCrystalAmplitude (void) |
| Get the expected average crystal amplitude. More... | |
Variables | |
| static OscHfGlobals_t | oscHfGlobals |
| #define RTC_CV_TO_MS | ( | x | ) | (( 1000 * ( x )) >> 16 ) |
Referenced by OSCHF_GetStartupTime().
| #define RTC_CV_TO_US | ( | x | ) | (( 1000000 * ( x )) >> 16 ) |
Referenced by OSCHF_AttemptToSwitchToXosc(), and OSCHF_GetStartupTime().
|
static |