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

setting_t HAMLIB_API rig_has_set_parm ( RIG rig,
setting_t  parm 

check settable ability of parameter settings

rig The rig handle
parm The parameter settings
Checks if a rig can *set* a parameter setting. Since the parm is an OR'ed bitwise argument, more than one parameter can be check at the same time.

EXAMPLE: if (rig_has_set_parm(my_rig, RIG_PARM_ANN)) announce_all();

a bit map of supported parameter settings that can be set, otherwise 0 if none supported.
See also:
rig_has_get_parm(), rig_set_parm()

Definition at line 322 of file settings.c.

References caps, rig_state::has_set_parm, and state.

Referenced by rig_set_parm().

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

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

Generated by  Doxygen 1.6.0   Back to index