Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

scan_t HAMLIB_API rig_has_scan ( RIG rig,
scan_t  scan 

check availability of scanning functions

rigThe rig handle
scanThe scan op

Checks if a rig is capable of performing a scan operation. Since the 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();

a bit map of supported scan settings that can be retrieved, otherwise 0 if none supported.
See also:

Definition at line 2606 of file rig.c.

References caps, and rig_caps::scan_ops.

Referenced by rig_scan().

      if (!rig || !rig->caps)
            return 0;

      return (rig->caps->scan_ops & scan);

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index