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

int HAMLIB_API rig_set_parm ( RIG rig,
setting_t  parm,
value_t  val 
)

set a radio parameter

Parameters:
rigThe rig handle
parmThe parameter
valThe value to set the parameter

Sets a parameter. 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_set_parm(), rig_get_parm()

Definition at line 195 of file settings.c.

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

{
      if (CHECK_RIG_ARG(rig))
            return -RIG_EINVAL;

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

      return rig->caps->set_parm(rig, parm, val);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index