#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <hamlib/rig.h>
Functions | |
int | rig_set_mem (RIG *rig, vfo_t vfo, int ch) |
set the current memory channel number | |
int | rig_get_mem (RIG *rig, vfo_t vfo, int *ch) |
get the current memory channel number | |
int | rig_set_bank (RIG *rig, vfo_t vfo, int bank) |
set the current memory bank | |
int | rig_set_channel (RIG *rig, const channel_t *chan) |
set channel data | |
int | rig_get_channel (RIG *rig, channel_t *chan) |
get channel data | |
int | rig_set_chan_all_cb (RIG *rig, chan_cb_t chan_cb, char *arg) |
set all channel data, by callback | |
int | rig_get_chan_all_cb (RIG *rig, chan_cb_t chan_cb, char *arg) |
get all channel data, by callback | |
int | rig_set_chan_all (RIG *rig, const channel_t chans[]) |
set all channel data | |
int | rig_get_chan_all (RIG *rig, channel_t chans[]) |
get all channel data | |
int | rig_set_mem_all_cb (RIG *rig, chan_cb_t chan_cb, confval_cb_t parm_cb, char *arg) |
set all channel and non-channel data by call-back | |
int | rig_get_mem_all_cb (RIG *rig, chan_cb_t chan_cb, confval_cb_t parm_cb, char *arg) |
get all channel and non-channel data by call-back | |
int | rig_set_mem_all (RIG *rig, const channel_t chans[], const struct confparams cfgps[], const value_t vals[]) |
set all channel and non-channel data | |
int | rig_get_mem_all (RIG *rig, channel_t chans[], const struct confparams cfgps[], value_t vals[]) |
get all channel and non-channel data |
|
get all channel data
|
|
get all channel data, by callback
chan_cb is called first with no data in (chan equals NULL). This means the application has to provide a struct where to store future data for channel channel_num. If channel_num == chan->channel_num, the application does not need to provide a new allocated structure.
|
|
get channel data
Example: channel_t chan; int err; chan->vfo = RIG_VFO_MEM; chan->channel_num = 10; err = rig_get_channel(rig, &chan); if (err != RIG_OK) error("get_channel failed: %s", rigerror(err)); The rig_get_channel is supposed to have no impact on the current VFO and memory number selected. Depending on backend and rig capabilities, the chan struct may not be filled in completely. Note: chan->ext_levels is a pointer to a newly mallocated memory. This is the responsability of the caller to manage and eventually free it.
|
|
get the current memory channel number
|
|
get all channel and non-channel data
|
|
get all channel and non-channel data by call-back
|
|
set the current memory bank
|
|
set all channel data
|
|
set all channel data, by callback
|
|
set channel data
The rig_set_channel is supposed to have no impact on the current VFO and memory number selected. Depending on backend and rig capabilities, the chan struct may not be set completely.
|
|
set the current memory channel number
|
|
set all channel and non-channel data
|
|
set all channel and non-channel data by call-back
|