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

vfo_op_t HAMLIB_API rig_has_vfo_op ( RIG rig,
vfo_op_t  op 

check retrieval ability of VFO operations

rig The rig handle
op The VFO op
Checks if a rig is capable of executing a VFO operation. Since the op is an OR'ed bitmap argument, more than one op can be checked at the same time.

EXAMPLE: if (rig_has_vfo_op(my_rig, RIG_OP_CPY)) disp_VFOcpy_btn();

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

Definition at line 2451 of file rig.c.

References rig::caps, and rig_caps::vfo_ops.

Referenced by rig_get_split_freq(), rig_get_split_mode(), rig_set_split_freq(), rig_set_split_mode(), and rig_vfo_op().

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

      return (rig->caps->vfo_ops & op);

Generated by  Doxygen 1.6.0   Back to index