Logo Search packages:      
Sourcecode: hamlib version File versions

settings.c File Reference


Detailed Description

func/level/parm interface

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

Definition in file settings.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"
#include "cal.h"

Go to the source code of this file.

Defines

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

Functions

int HAMLIB_API rig_get_ext_level (RIG *rig, vfo_t vfo, token_t token, value_t *val)
 get the value of a level extra parameter
int HAMLIB_API rig_get_ext_parm (RIG *rig, token_t token, value_t *val)
 get the value of a parm extra parameter
int HAMLIB_API rig_get_func (RIG *rig, vfo_t vfo, setting_t func, int *status)
 get the status of functions of the radio
int HAMLIB_API rig_get_level (RIG *rig, vfo_t vfo, setting_t level, value_t *val)
 get the value of a level
int HAMLIB_API rig_get_parm (RIG *rig, setting_t parm, value_t *val)
 get the value of a parameter
setting_t HAMLIB_API rig_has_get_func (RIG *rig, setting_t func)
 check ability of radio functions
setting_t HAMLIB_API rig_has_get_level (RIG *rig, setting_t level)
 check retrieval ability of level settings
setting_t HAMLIB_API rig_has_get_parm (RIG *rig, setting_t parm)
 check retrieval ability of parameter settings
setting_t HAMLIB_API rig_has_set_func (RIG *rig, setting_t func)
 check ability of radio functions
setting_t HAMLIB_API rig_has_set_level (RIG *rig, setting_t level)
 check settable ability of level settings
setting_t HAMLIB_API rig_has_set_parm (RIG *rig, setting_t parm)
 check settable ability of parameter settings
int HAMLIB_API rig_set_ext_level (RIG *rig, vfo_t vfo, token_t token, value_t val)
 set a radio level extra parameter
int HAMLIB_API rig_set_ext_parm (RIG *rig, token_t token, value_t val)
 set a radio parm extra parameter
int HAMLIB_API rig_set_func (RIG *rig, vfo_t vfo, setting_t func, int status)
 activate/de-activate functions of radio
int HAMLIB_API rig_set_level (RIG *rig, vfo_t vfo, setting_t level, value_t val)
 set a radio level setting
int HAMLIB_API rig_set_parm (RIG *rig, setting_t parm, value_t val)
 set a radio parameter
int HAMLIB_API rig_setting2idx (setting_t s)
 basically convert setting_t expressed 2^n to n


Generated by  Doxygen 1.6.0   Back to index