#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"
Functions | |
int | rig_set_level (RIG *rig, vfo_t vfo, setting_t level, value_t val) |
set a radio level setting | |
int | rig_get_level (RIG *rig, vfo_t vfo, setting_t level, value_t *val) |
get the value of a level | |
int | rig_set_parm (RIG *rig, setting_t parm, value_t val) |
set a radio parameter | |
int | rig_get_parm (RIG *rig, setting_t parm, value_t *val) |
get the value of a parameter | |
setting_t | rig_has_get_level (RIG *rig, setting_t level) |
check retrieval ability of level settings | |
setting_t | rig_has_set_level (RIG *rig, setting_t level) |
check settable ability of level settings | |
setting_t | rig_has_get_parm (RIG *rig, setting_t parm) |
check retrieval ability of parameter settings | |
setting_t | rig_has_set_parm (RIG *rig, setting_t parm) |
check settable ability of parameter settings | |
setting_t | rig_has_get_func (RIG *rig, setting_t func) |
check ability of radio functions | |
setting_t | rig_has_set_func (RIG *rig, setting_t func) |
check ability of radio functions | |
int | rig_set_func (RIG *rig, vfo_t vfo, setting_t func, int status) |
activate/desactivate functions of radio | |
int | rig_get_func (RIG *rig, vfo_t vfo, setting_t func, int *status) |
get the status of functions of the radio | |
int | rig_set_ext_level (RIG *rig, vfo_t vfo, token_t token, value_t val) |
set a radio level extra parameter | |
int | rig_get_ext_level (RIG *rig, vfo_t vfo, token_t token, value_t *val) |
get the value of a level extra parameter | |
int | rig_set_ext_parm (RIG *rig, token_t token, value_t val) |
set a radio parm extra parameter | |
int | rig_get_ext_parm (RIG *rig, token_t token, value_t *val) |
get the value of a parm extra parameter | |
int | rig_setting2idx (setting_t s) |
basically convert setting_t expressed 2^n to n |
|
get the value of a level extra parameter
|
|
get the value of a parm extra parameter
|
|
get the status of functions of the radio
|
|
get the value of a level
RIG_LEVEL_STRENGTH: val is an integer, representing the S Meter level in dB, according to the ideal S Meter scale. The ideal S Meter scale is as follow: S0=-54, S1=-48, S2=-42, S3=-36, S4=-30, S5=-24, S6=-18, S7=-12, S8=-6, S9=0, +10=10, +20=20, +30=30, +40=40, +50=50 and +60=60. This is the responsability of the backend to return values calibrated for this scale.
|
|
get the value of a parameter
|
|
check ability of radio functions
EXAMPLE: if (rig_has_get_func(my_rig,RIG_FUNC_FAGC)) disp_fagc_button();
|
|
check retrieval ability of level settings
EXAMPLE: if (rig_has_get_level(my_rig, RIG_LVL_STRENGTH)) disp_Smeter();
|
|
check retrieval ability of parameter settings
EXAMPLE: if (rig_has_get_parm(my_rig, RIG_PARM_ANN)) good4you();
|
|
check ability of radio functions
EXAMPLE: if (rig_has_set_func(my_rig,RIG_FUNC_FAGC)) disp_fagc_button();
|
|
check settable ability of level settings
EXAMPLE: if (rig_has_set_level(my_rig, RIG_LVL_RFPOWER)) crank_tx();
|
|
check settable ability of parameter settings
EXAMPLE: if (rig_has_set_parm(my_rig, RIG_PARM_ANN)) announce_all();
|
|
set a radio level extra parameter
|
|
set a radio parm extra parameter
|
|
activate/desactivate functions of radio
The status argument is a non null value for "activate", "desactivate" otherwise, much as true/false definitions in C language.
|
|
set a radio level setting
|
|
set a radio parameter
|
|
basically convert setting_t expressed 2^n to n
|