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

setting_t HAMLIB_API rig_has_get_parm ( RIG rig,
setting_t  parm 

check retrieval ability of parameter settings

rigThe rig handle
parmThe parameter settings

Checks if a rig is capable of *getting* a parm setting. Since the parm is an OR'ed bitwise argument, more than one parameter can be checked at the same time.

EXAMPLE: if (rig_has_get_parm(my_rig, RIG_PARM_ANN)) good4you();

a bit map of supported parameter settings that can be retrieved, otherwise 0 if none supported.
See also:
rig_has_set_parm(), rig_get_parm()

Definition at line 298 of file settings.c.

References caps, rig_state::has_get_parm, and state.

Referenced by rig_get_parm().

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

      return (rig->state.has_get_parm & parm);

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index