A structure that defines the polynomial coefficients for calculating the XOSC LF ppm offset as function of temperature.
More...
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};