30class HAMLIB_CPP_IMPEXP Rig
40#if __cplusplus >= 201103L
41 Rig(
const Rig&) =
delete;
42 Rig& operator=(
const Rig&) =
delete;
45 Rig& operator=(
const Rig&);
49 struct rig_caps *caps;
58 void setConf(
const char *name,
const char *val);
60 void getConf(
const char *name,
char *val);
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,
181 virtual int FreqEvent(
vfo_t,
freq_t, rig_ptr_t)
const
191 virtual int VFOEvent(
vfo_t, rig_ptr_t)
const
196 virtual int PTTEvent(
vfo_t,
ptt_t, rig_ptr_t)
const
201 virtual int DCDEvent(
vfo_t, dcd_t, rig_ptr_t)
const
210# if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
218# if HAVE_BUILTIN_H || HAVE_GXX_BUILTIN_H || HAVE_GPP_BUILTIN_H
219# if ETIP_NEEDS_MATH_H
220# if ETIP_NEEDS_MATH_EXCEPTION
222# define exception math_exception
227# define exception builtin_exception
228# if HAVE_GPP_BUILTIN_H
229# include <gpp/builtin.h>
230# elif HAVE_GXX_BUILTIN_H
231# include <g++/builtin.h>
237#elif defined (__SUNPRO_CC)
255#if !(defined(__GNUG__)||defined(__SUNPRO_CC)||defined(_WIN32))
256extern "C" void exit(
int);
262class HAMLIB_CPP_IMPEXP RigException
268 explicit RigException(
const char *msg,
int err)
269 : message(msg), errorno(err)
272 explicit RigException(
int err)
273 : message(rigerror(err)), errorno(err)
276 explicit RigException(
const char *msg)
280 virtual ~RigException()
285 std::cerr <<
"Rig exception: " << message << std::endl;
287 virtual const char *classname()
const
296inline void THROW(
const RigException *e)
299# if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
300 (*lib_error_handler)(e ? e->classname() :
"", e ? e->message :
"");
304#elif defined(_MSC_VER)
306#elif defined(__SUNPRO_CC)
308 genericerror(1, ((e != 0) ? (
char *)(e->message) :
""));
312 std::cerr << e->message << std::endl;
unsigned int vfo_t
VFO definition.
Definition rig.h:516
unsigned int ant_t
Antenna typedef.
Definition rig.h:982
long hamlib_token_t
configuration token
Definition rig.h:859
uint64_t rmode_t
Radio mode.
Definition rig.h:1359
shortfreq_t pbwidth_t
Definition rig.h:648
split_t
Split mode.
Definition rig.h:445
rptr_shift_t
Repeater shift type.
Definition rig.h:435
struct channel channel_t
Channel structure typedef.
Definition rig.h:1612
uint64_t setting_t
Setting.
Definition rig.h:1201
powerstat_t
Radio power state.
Definition rig.h:708
scan_t
Rig Scan operation.
Definition rig.h:843
#define RIG_VFO_CURR
currVFO – current "tunable channel"/VFO
Definition rig.h:571
double freq_t
Frequency type,.
Definition rig.h:456
ptt_t
PTT status.
Definition rig.h:679
#define RIG_PASSBAND_NORMAL
Macro for bandpass to be set to normal.
Definition rig.h:637
vfo_op_t
VFO operation.
Definition rig.h:750
signed long shortfreq_t
Short frequency type.
Definition rig.h:478
struct s_rig RIG
Rig structure definition (see rig for details).
Definition rig.h:262
reset_t
Reset operation.
Definition rig.h:720
@ RIG_OK
Definition rig.h:189
@ RIG_EINTERNAL
Definition rig.h:196
Hamlib rig data structures.
uint32_t rig_model_t
Convenience type definition for rig model.
Definition riglist.h:707