30 class 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))
217 #if defined(__GNUG__)
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>
233 # include <builtin.h>
237 #elif defined (__SUNPRO_CC)
238 # include <generic.h>
255 #if !(defined(__GNUG__)||defined(__SUNPRO_CC)||defined(_WIN32))
256 extern "C" void exit(
int);
262 class 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
296 inline void THROW(
const RigException *e)
298 #if defined(__GNUG__)
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;
322 #endif // _RIGCLASS_H
double freq_t
Frequency type,.
Definition: rig.h:458
scan_t
Rig Scan operation.
Definition: rig.h:845
uint32_t rig_model_t
Convenience type definition for rig model.
Definition: riglist.h:708
powerstat_t
Radio power state.
Definition: rig.h:710
signed long shortfreq_t
Short frequency type.
Definition: rig.h:480
shortfreq_t pbwidth_t
Definition: rig.h:650
Channel structure.
Definition: rig.h:1576
vfo_op_t
VFO operation.
Definition: rig.h:752
rptr_shift_t
Repeater shift type.
Definition: rig.h:437
#define RIG_PASSBAND_NORMAL
Macro for bandpass to be set to normal.
Definition: rig.h:639
Universal approach for passing values.
Definition: rig.h:1027
The Rig structure.
Definition: rig.h:3097
#define RIG_VFO_CURR
currVFO – current "tunable channel"/VFO
Definition: rig.h:573
unsigned int ant_t
Antenna typedef.
Definition: rig.h:984
reset_t
Reset operation.
Definition: rig.h:722
Hamlib rig data structures.
split_t
Split mode.
Definition: rig.h:447
long hamlib_token_t
configuration token
Definition: rig.h:861
ptt_t
PTT status.
Definition: rig.h:681
unsigned int vfo_t
VFO definition.
Definition: rig.h:518
uint64_t setting_t
Setting.
Definition: rig.h:1203
uint64_t rmode_t
Radio mode.
Definition: rig.h:1361