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

Parameters:
rig The rig handle
parm The parameter
val The 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.

Returns:
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_caps::get_parm, 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);
}


Generated by  Doxygen 1.6.0   Back to index