30class HAMLIB_CPP_IMPEXP Rig
37 explicit Rig(rig_model_t rig_model);
40#if __cplusplus >= 201103L
41 Rig(
const Rig&) =
delete;
42 Rig& operator=(
const Rig&) =
delete;
45 Rig& operator=(
const Rig&);
49 const struct rig_caps *caps;
57 void setConf(
token_t token,
const char *val);
58 void setConf(
const char *name,
const char *val);
59 void getConf(
token_t token,
char *val);
60 void getConf(
const char *name,
char *val);
61 token_t tokenLookup(
const char *name);
89 void getParm(
setting_t parm,
float& valf);
104 bool hasScan(
scan_t scan);
106 const char * getInfo(
void);
129 unsigned int power2mW(
float power,
freq_t freq,
rmode_t mode);
130 float mW2power(
unsigned int mwpower,
freq_t freq,
rmode_t mode);
131 void setTrn(
int trn);
157 void setSplitVFO(
split_t split,
180 virtual int FreqEvent(
vfo_t,
freq_t, rig_ptr_t)
const
188 virtual int VFOEvent(
vfo_t, rig_ptr_t)
const
192 virtual int PTTEvent(
vfo_t,
ptt_t, rig_ptr_t)
const
196 virtual int DCDEvent(
vfo_t,
dcd_t, rig_ptr_t)
const
205# if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
213# if HAVE_BUILTIN_H || HAVE_GXX_BUILTIN_H || HAVE_GPP_BUILTIN_H
214# if ETIP_NEEDS_MATH_H
215# if ETIP_NEEDS_MATH_EXCEPTION
217# define exception math_exception
222# define exception builtin_exception
223# if HAVE_GPP_BUILTIN_H
224# include <gpp/builtin.h>
225# elif HAVE_GXX_BUILTIN_H
226# include <g++/builtin.h>
232#elif defined (__SUNPRO_CC)
250#if !(defined(__GNUG__)||defined(__SUNPRO_CC)||defined(_WIN32))
251extern "C" void exit(
int);
257class HAMLIB_CPP_IMPEXP RigException
263 explicit RigException(
const char *msg,
int err)
264 : message(msg), errorno(err)
267 explicit RigException(
int err)
268 : message(rigerror(err)), errorno(err)
271 explicit RigException(
const char *msg)
275 virtual ~RigException()
280 std::cerr <<
"Rig exception: " << message << std::endl;
282 virtual const char *classname()
const
290inline void THROW(
const RigException *e)
293# if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
294 (*lib_error_handler)(e ? e->classname() :
"", e ? e->message :
"");
298#elif defined(_MSC_VER)
300#elif defined(__SUNPRO_CC)
301 genericerror(1, ((e != 0) ? (
char *)(e->message) :
""));
305 std::cerr << e->message << std::endl;
unsigned int vfo_t
VFO definition.
Definition: rig.h:467
uint64_t rmode_t
Radio mode.
Definition: rig.h:1249
shortfreq_t pbwidth_t
Definition: rig.h:599
split_t
Split mode.
Definition: rig.h:396
rptr_shift_t
Repeater shift type.
Definition: rig.h:386
uint64_t setting_t
Setting.
Definition: rig.h:1091
powerstat_t
Radio power state.
Definition: rig.h:661
enum dcd_e dcd_t
DCD status.
scan_t
Rig Scan operation.
Definition: rig.h:750
#define RIG_VFO_CURR
currVFO – current "tunable channel"/VFO
Definition: rig.h:522
double freq_t
Frequency type,.
Definition: rig.h:407
ptt_t
PTT status.
Definition: rig.h:632
#define RIG_PASSBAND_NORMAL
Macro for bandpass to be set to normal.
Definition: rig.h:588
vfo_op_t
VFO operation.
Definition: rig.h:697
signed long shortfreq_t
Short frequency type.
Definition: rig.h:429
struct s_rig RIG
Rig structure definition (see rig for details).
Definition: rig.h:218
long token_t
configuration token
Definition: rig.h:766
unsigned int ant_t
Antenna typedef.
Definition: rig.h:887
reset_t
Reset operation.
Definition: rig.h:673
@ RIG_OK
Definition: rig.h:147
@ RIG_EINTERNAL
Definition: rig.h:154
Hamlib rig data structures.
Channel structure.
Definition: rig.h:1458
Universal approach for passing values.
Definition: rig.h:930