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

mem.c File Reference


Detailed Description

Memory and channel interface.

Author:
Stephane Fillod
Date:
2000-2006
Hamlib interface is a frontend implementing wrapper functions.

Definition in file mem.c.

#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>

Go to the source code of this file.

Classes

struct  map_all_s

Defines

#define CHECK_RIG_ARG(r)   (!(r) || !(r)->caps || !(r)->state.comm_state)

Functions

static int generic_restore_channel (RIG *rig, const channel_t *chan)
static int generic_retr_extl (RIG *rig, const struct confparams *cfp, rig_ptr_t ptr)
static int generic_save_channel (RIG *rig, channel_t *chan)
int get_chan_all_cb_generic (RIG *rig, chan_cb_t chan_cb, rig_ptr_t arg)
int get_parm_all_cb_generic (RIG *rig, confval_cb_t parm_cb, rig_ptr_t cfgps, rig_ptr_t vals)
static int map_chan (RIG *rig, channel_t **chan, int channel_num, const chan_t *chan_list, rig_ptr_t arg)
static int map_parm (RIG *rig, const struct confparams *cfgps, value_t *value, rig_ptr_t arg)
int HAMLIB_API rig_copy_channel (RIG *rig, channel_t *chan1, const channel_t *chan2)
int HAMLIB_API rig_get_chan_all (RIG *rig, channel_t chans[])
 get all channel data
int HAMLIB_API rig_get_chan_all_cb (RIG *rig, chan_cb_t chan_cb, rig_ptr_t arg)
 get all channel data, by callback
int HAMLIB_API rig_get_channel (RIG *rig, channel_t *chan)
 get channel data
int HAMLIB_API rig_get_mem (RIG *rig, vfo_t vfo, int *ch)
 get the current memory channel number
int rig_get_mem_all (RIG *rig, channel_t chans[], const struct confparams cfgps[], value_t vals[])
 get all channel and non-channel data
int rig_get_mem_all_cb (RIG *rig, chan_cb_t chan_cb, confval_cb_t parm_cb, rig_ptr_t arg)
 get all channel and non-channel data by call-back
int HAMLIB_API rig_set_bank (RIG *rig, vfo_t vfo, int bank)
 set the current memory bank
int HAMLIB_API rig_set_chan_all (RIG *rig, const channel_t chans[])
 set all channel data
int HAMLIB_API rig_set_chan_all_cb (RIG *rig, chan_cb_t chan_cb, rig_ptr_t arg)
 set all channel data, by callback
int HAMLIB_API rig_set_channel (RIG *rig, const channel_t *chan)
 set channel data
int HAMLIB_API rig_set_mem (RIG *rig, vfo_t vfo, int ch)
 set the current memory channel number
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_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
int set_chan_all_cb_generic (RIG *rig, chan_cb_t chan_cb, rig_ptr_t arg)
int set_parm_all_cb_generic (RIG *rig, confval_cb_t parm_cb, rig_ptr_t cfgps, rig_ptr_t vals)


Generated by  Doxygen 1.6.0   Back to index