29 class BACKEND_IMPEXP
Rig {
47 void setConf(
token_t token,
const char *val);
48 void setConf(
const char *name,
const char *val);
49 void getConf(
token_t token,
char *val);
50 void getConf(
const char *name,
char *val);
51 token_t tokenLookup(
const char *name);
76 void getParm(
setting_t parm,
float& valf);
91 bool hasScan (
scan_t scan);
93 const char *getInfo (
void);
116 unsigned int power2mW (
float power,
freq_t freq,
rmode_t mode);
117 float mW2power (
unsigned int mwpower,
freq_t freq,
rmode_t mode);
118 void setTrn (
int trn);
156 virtual int FreqEvent(
vfo_t,
freq_t, rig_ptr_t)
const {
162 virtual int VFOEvent(
vfo_t, rig_ptr_t)
const {
165 virtual int PTTEvent(
vfo_t,
ptt_t, rig_ptr_t)
const {
168 virtual int DCDEvent(
vfo_t,
dcd_t, rig_ptr_t)
const {
178 # if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
185 #if defined(__GNUG__)
186 # if HAVE_BUILTIN_H || HAVE_GXX_BUILTIN_H || HAVE_GPP_BUILTIN_H
187 # if ETIP_NEEDS_MATH_H
188 # if ETIP_NEEDS_MATH_EXCEPTION
190 # define exception math_exception
195 # define exception builtin_exception
196 # if HAVE_GPP_BUILTIN_H
197 # include <gpp/builtin.h>
198 # elif HAVE_GXX_BUILTIN_H
199 # include <g++/builtin.h>
201 # include <builtin.h>
205 #elif defined (__SUNPRO_CC)
206 # include <generic.h>
223 #if !(defined(__GNUG__)||defined(__SUNPRO_CC))
224 extern "C" void exit(
int);
236 : message(msg), errorno (err)
240 : message(
rigerror(err)), errorno (err)
251 std::cerr <<
"Rig exception: " << message << std::endl;
253 virtual const char *classname()
const {
259 #if defined(__GNUG__)
260 # if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
261 (*lib_error_handler)(e?e->classname():
"",e?e->message:
"");
265 #elif defined(__SUNPRO_CC)
266 genericerror(1, ((e != 0) ? (
char *)(e->message) :
""));
269 std::cerr << e->message << endl;
277 #endif // _RIGCLASS_H
Definition: rigclass.h:29
unsigned long setting_t
Setting.
Definition: rig.h:706
double freq_t
Frequency type, Frequency type unit in Hz, able to hold SHF frequencies.
Definition: rig.h:276
const char * rigerror(int errnum)
get string describing the error code
Definition: rig.c:250
long token_t
configuration token
Definition: rig.h:501
scan_t
Rig Scan operation.
Definition: rig.h:486
int rig_model_t
Convenience type definition for rig model.
Definition: riglist.h:540
enum rig_status_e status
Definition: rig.h:1134
powerstat_t
Radio power state.
Definition: rig.h:427
signed long shortfreq_t
Short frequency type Frequency in Hz restricted to 31bits, suitable for offsets, shifts, etc..
Definition: rig.h:287
int ant_t
Antenna number.
Definition: rig.h:569
unsigned int tone_t
CTCSS and DCS type definition.
Definition: rig.h:158
shortfreq_t pbwidth_t
Passband width, in Hz.
Definition: rig.h:374
Channel structure.
Definition: rig.h:936
vfo_op_t
VFO operation.
Definition: rig.h:460
rptr_shift_t
Repeater shift type.
Definition: rig.h:258
Rig data structure.
Definition: rig.h:1128
#define RIG_VFO_CURR
currVFO – current "tunable channel"/VFO
Definition: rig.h:325
reset_t
Reset operation.
Definition: rig.h:436
Definition: rigclass.h:229
Hamlib rig data structures.
rmode_t
Radio mode.
Definition: rig.h:786
split_t
Split mode.
Definition: rig.h:267
ptt_t
PTT status.
Definition: rig.h:403
int vfo_t
VFO definition.
Definition: rig.h:317
The Rig structure.
Definition: rig.h:1511
enum dcd_e dcd_t
DCD status.