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

int HAMLIB_API rig_set_conf ( RIG rig,
token_t  token,
const char *  val 

set a radio configuration parameter

rig The rig handle
token The parameter
val The value to set the parameter to
Sets a configuration parameter.

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:

Definition at line 449 of file conf.c.

References caps, IS_TOKEN_FRONTEND, RIG_EINVAL, RIG_ENAVAIL, and rig_caps::set_conf.

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

      if (IS_TOKEN_FRONTEND(token))
            return frontend_set_conf(rig, token, val);

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

      return rig->caps->set_conf(rig, token, val);

Generated by  Doxygen 1.6.0   Back to index