MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / rig_get_cache_freq

Function rig_get_cache_freq

src/cache.c:553–570  ·  view source on GitHub ↗

* \brief get cached values for a VFO * \param rig The rig handle * \param vfo The VFO to get information from * \param freq The frequency is stored here * \param cache_ms_freq The age of the last frequency update in ms -- NULL if you don't want it * Use this to query the frequency cache and then determine to actually fetch data from * the rig. * * \return RIG_

Source from the content-addressed store, hash-verified

551 *
552 */
553int rig_get_cache_freq(RIG *rig, vfo_t vfo, freq_t *freq, int *cache_ms_freq_p)
554{
555 rmode_t mode;
556 int cache_ms_freq;
557 int cache_ms_mode;
558 pbwidth_t width;
559 int cache_ms_width;
560 int retval;
561 retval = rig_get_cache(rig, vfo, freq, &cache_ms_freq, &mode, &cache_ms_mode,
562 &width, &cache_ms_width);
563
564 if (retval == RIG_OK)
565 {
566 if (cache_ms_freq_p) { *cache_ms_freq_p = cache_ms_freq; }
567 }
568
569 return retval;
570}
571
572/* Get cache timeout period
573 * Returns value in msec, -1 if error

Callers 2

icom_get_split_freqFunction · 0.85
ft736_get_freqFunction · 0.85

Calls 1

rig_get_cacheFunction · 0.85

Tested by

no test coverage detected