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

Function rig_has_scan

src/rig.c:7227–7241  ·  view source on GitHub ↗

* \brief check availability of scanning functions * \param rig The rig handle * \param scan The scan op * * Checks if a rig is capable of performing a scan operation. * Since the \a scan parameter is an OR'ed bitmap argument, more than * one op can be checked at the same time. * * EXAMPLE: if (rig_has_scan(my_rig, RIG_SCAN_PRIO)) disp_SCANprio_btn(); * * \return a bit map of suppo

Source from the content-addressed store, hash-verified

7225 * \sa rig_scan()
7226 */
7227scan_t HAMLIB_API rig_has_scan(RIG *rig, scan_t scan)
7228{
7229 int retcode;
7230
7231 if (!rig || !rig->caps)
7232 {
7233 rig_debug(RIG_DEBUG_ERR, "%s: rig or rig->caps is NULL\n", __func__);
7234 return (0);
7235 }
7236
7237 ENTERFUNC;
7238
7239 retcode = rig->caps->scan_ops & scan;
7240 RETURNFUNC(retcode);
7241}
7242
7243
7244/**

Callers 2

hasScanMethod · 0.85
rig_scanFunction · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected