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

int HAMLIB_API rig_get_ext_parm ( RIG rig,
token_t  token,
value_t val 
)

get the value of a parm extra parameter

Parameters:
rig The rig handle
token The parameter
val The location where to store the value of token
Retrieves the value of a parm extra parameter associated with token.

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_set_ext_parm()

Definition at line 606 of file settings.c.

References caps, rig_caps::get_ext_parm, RIG_EINVAL, and RIG_ENAVAIL.

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

      if (rig->caps->get_ext_parm == NULL)
            return -RIG_ENAVAIL;

      return rig->caps->get_ext_parm(rig, token, val);
}


Generated by  Doxygen 1.6.0   Back to index