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

int rig_set_mem_all_cb ( RIG rig,
chan_cb_t  chan_cb,
confval_cb_t  parm_cb,
rig_ptr_t  arg 

set all channel and non-channel data by call-back

rig The rig handle
chan_cb The callback for channel data
parm_cb The callback for non-channel(aka parm) data
arg Cookie passed to chan_cb and parm_cb
Writes the data associated with all the memory channels, and rigs memory parameters, by callback.

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_get_mem_all_cb(), rig_set_mem_all()
finish coding and testing of mem_all functions

Definition at line 816 of file mem.c.

References rig::caps, rig_set_chan_all_cb(), and rig_caps::set_mem_all_cb.

      struct rig_caps *rc;
      int retval;

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

      rc = rig->caps;

      if (rc->set_mem_all_cb)
            return rc->set_mem_all_cb(rig, chan_cb, parm_cb, arg);

      /* if not available, emulate it */
      retval = rig_set_chan_all_cb (rig, chan_cb, arg);
      if (retval != RIG_OK)
            return retval;

#if 0
      retval = rig_set_parm_all_cb (rig, parm_cb, arg);
      if (retval != RIG_OK)
            return retval;
      return -RIG_ENIMPL;

      return retval;

Generated by  Doxygen 1.6.0   Back to index