* \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_
| 551 | * |
| 552 | */ |
| 553 | int 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 |
no test coverage detected