Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_hfo.c
/***************************************************************************/
/**
 *
 *  EtaCspHfoTuneUpdate - Tuning algorithm used for warm starts. Only uses fine
 *  tuning.  Can be used infrequently to retune the HFO over time/temperature.
 *
 *  @param ui32Window The +/- tolerance for success
 *  @param ui32NumSamples How many samples to average for getting frequency
 *  @param ui32Timeout Number of calibration cycles after which the algorithm
 *                     gives up.
 *  @return Return the frequency.
 *
 ******************************************************************************/
Tuning algorithm used for warm starts. Only uses fine
tuning.  Can be used infrequently to retune the HFO over time/temperature.

@param ui32Window The +/- tolerance for success
@param ui32NumSamples How many samples to average for getting frequency
@param ui32Timeout Number of calibration cycles after which the algorithm
gives up.
@return Return the frequency.
Tuning algorithm used for warm starts . Only uses fine tuning . Can be used infrequently to retune the HFO over time / temperature . @param ui32Window The + / - tolerance for success @param ui32NumSamples How many samples to average for getting frequency @param ui32Timeout Number of calibration cycles after which the algorithm gives up . @return Return the frequency .
uint32_t
EtaCspHfoTuneUpdate(uint32_t ui32Window, uint32_t ui32NumSamples,
                    uint32_t ui32Timeout)
{
    uint32_t ui32Freq;
     Check HFO tuning
    HfoLinFineTune(ui32Window, ui32NumSamples, ui32Timeout, 1);
     Check fine tuning using a large number of samples.
    ui32Freq = HfoLinFineTune(ui32Window, 128, 2, 1);
     Return the frequency.
    return(ui32Freq);
}
uint32_t EtaCspHfoTuneUpdate ( uint32_t ui32Window , uint32_t ui32NumSamples , uint32_t ui32Timeout ) { uint32_t ui32Freq ; HfoLinFineTune ( ui32Window , ui32NumSamples , ui32Timeout , 1 ) ; ui32Freq = HfoLinFineTune ( ui32Window , 128 , 2 , 1 ) ; return ( ui32Freq ) ; }
EtaCspHfoTuneUpdate - Tuning algorithm used for warm starts.
EtaCspHfoTuneUpdate - Tuning algorithm used for warm starts .
// // Check HFO tuning // // // Check fine tuning using a large number of samples. // // // Return the frequency. //