30 class 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)) 212 #if defined(__GNUG__) 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> 228 # include <builtin.h> 232 #elif defined (__SUNPRO_CC) 233 # include <generic.h> 250 #if !(defined(__GNUG__)||defined(__SUNPRO_CC)||defined(_WIN32)) 251 extern "C" void exit(
int);
257 class 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 290 inline void THROW(
const RigException *e)
292 #if defined(__GNUG__) 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;
315 #endif // _RIGCLASS_H double freq_t
Frequency type,.
Definition: rig.h:410
long token_t
configuration token
Definition: rig.h:767
scan_t
Rig Scan operation.
Definition: rig.h:751
powerstat_t
Radio power state.
Definition: rig.h:662
signed long shortfreq_t
Short frequency type.
Definition: rig.h:432
shortfreq_t pbwidth_t
Definition: rig.h:602
Channel structure.
Definition: rig.h:1460
vfo_op_t
VFO operation.
Definition: rig.h:698
rptr_shift_t
Repeater shift type.
Definition: rig.h:389
#define RIG_PASSBAND_NORMAL
Macro for bandpass to be set to normal.
Definition: rig.h:591
Universal approach for passing values.
Definition: rig.h:931
The Rig structure.
Definition: rig.h:2662
#define RIG_VFO_CURR
currVFO – current "tunable channel"/VFO
Definition: rig.h:525
unsigned int ant_t
Antenna typedef.
Definition: rig.h:888
reset_t
Reset operation.
Definition: rig.h:674
Hamlib rig data structures.
split_t
Split mode.
Definition: rig.h:399
ptt_t
PTT status.
Definition: rig.h:633
unsigned int vfo_t
VFO definition.
Definition: rig.h:470
uint64_t setting_t
Setting.
Definition: rig.h:1092
uint64_t rmode_t
Radio mode.
Definition: rig.h:1250