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

int HAMLIB_API rig_get_parm ( RIG rig,
setting_t  parm,
value_t val 

get the value of a parameter

rigThe rig handle
parmThe parameter
valThe location where to store the value of parm

Retrieves the value of a parm. The parameter value val can be a float or an integer. See value_t for more information.

RIG_OK if the operation has been sucessful, otherwise a negative value if an error occured (in which case, cause is set appropriately).
See also:
rig_has_get_parm(), rig_set_parm()

Definition at line 222 of file settings.c.

References caps, RIG_EINVAL, RIG_ENAVAIL, and rig_has_get_parm().

      if (CHECK_RIG_ARG(rig) || !val)
            return -RIG_EINVAL;

      if (rig->caps->get_parm == NULL || !rig_has_get_parm(rig,parm))
            return -RIG_ENAVAIL;

      return rig->caps->get_parm(rig, parm, val);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index