Logo Search packages:      
Sourcecode: hamlib version File versions

scan_t HAMLIB_API rig_has_scan ( RIG rig,
scan_t  scan 
)

check availability of scaning functions

Parameters:
rig The rig handle
scan The 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();

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

Definition at line 2527 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);
}


Generated by  Doxygen 1.6.0   Back to index