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

int HAMLIB_API rig_set_chan_all ( RIG rig,
const channel_t  chans[] 
)

set all channel data

Parameters:
rigThe rig handle
chansThe location of data to set for all channels

Write the data associated with all the memory channels.

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_chan_all_cb(), rig_get_chan_all()

Definition at line 720 of file mem.c.

References caps, and RIG_EINVAL.

Referenced by rig_set_mem_all().

{
      struct rig_caps *rc;
      struct map_all_s map_arg;
      int retval;

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

      rc = rig->caps;
      map_arg.chans = (channel_t *) chans;

      if (rc->set_chan_all_cb)
            return rc->set_chan_all_cb(rig, map_chan, (rig_ptr_t)&map_arg);


      /* if not available, emulate it */
      retval = set_chan_all_cb_generic (rig, map_chan, (rig_ptr_t)&map_arg);

      return retval;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index