CC26xx Driver Library
XoscLf_Params_t Struct Reference

A structure that defines the polynomial coefficients for calculating the XOSC LF ppm offset as function of temperature. More...

#include <osc.h>

Data Fields

int32_t coeffA
 
int32_t coeffB
 
int32_t coeffC
 
int32_t coeffD
 
uint8_t shift
 

Detailed Description

A structure that defines the polynomial coefficients for calculating the XOSC LF ppm offset as function of temperature.

ppm(T) = (a*T^2 + b*T + c - d) >> shift

The coefficients a, b, and c are typically defined by the application, while d is calculated by calling OSC_LFXOSCInitStaticOffset. The fixed point coefficients stored in this structure are the rounded result of the true floating point coefficients, multiplied by a factor of 2^shift. This struct is used in OSC_LFXOSCRelativeFrequencyOffsetGet.

Note
Before calling OSC_LFXOSCInitStaticOffset, the symbol _lfXoscParams must be defined with type XoscLf_Params_t
// Example of _lfXoscParams definition
XoscLf_Params_t _lfXoscParams = {.coeffA = -167772, .coeffB = 6710886, .coeffC = -62914560, .shift = 22};

Field Documentation

§ coeffA

int32_t XoscLf_Params_t::coeffA

§ coeffB

int32_t XoscLf_Params_t::coeffB

§ coeffC

int32_t XoscLf_Params_t::coeffC

§ coeffD

int32_t XoscLf_Params_t::coeffD

§ shift

uint8_t XoscLf_Params_t::shift