-
Notifications
You must be signed in to change notification settings - Fork 2
/
rigdata.h
128 lines (120 loc) · 4.41 KB
/
rigdata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
** This file is part of the CatRadio project.
** Copyright 2022-2024 Gianfranco Sordetti IZ8EWD <[email protected]>.
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
**/
#ifndef RIGDATA_H
#define RIGDATA_H
#endif // RIGDATA_H
#include <rig.h> //Hamlib
#include <QString>
typedef struct {
unsigned rigModel; //Hamlib rig model
QString rigPort; //COM port or IP address
unsigned serialSpeed; //Serial port baud rate
unsigned serialDataBits; //Serial port data bit
unsigned serialParity; //Serial port parity (serial_parity_e RIG_PARITY_NONE = 0, RIG_PARITY_ODD, RIG_PARITY_EVEN)
unsigned serialStopBits;
unsigned serialHandshake; //Serial port handshake (serial_handshake_e RIG_HANDSHAKE_NONE = 0, RIG_HANDSHAKE_XONXOFF, RIG_HANDSHAKE_HARDWARE)
int civAddr; //CI-V address (decimal, Icom radio)
bool netRigctl; //TCP NET Rigctl
unsigned rigRefresh; //GUI refresh interval (ms)
int connected; //connected flag
bool fullPoll; //full polling flag
bool autoConnect; //Auto-connect flag
bool autoPowerOn; //Auto Power ON flag
} rigConnect;
typedef struct {
powerstat_t onoff; //on/off status
freq_t freqMain, freqSub; //Frequency (Hz)
int band; //Band
rmode_t mode, modeSub; //Mode
pbwidth_t bwidth, bwidthSub; //IF filter bandwidth
int bwNarrow; //IF narrow filter
vfo_t vfoMain, vfoSub; //VFO
vfo_t vfoTx;
split_t split; //Split
ptt_t ptt; //PTT
value_t sMeter; //Smeter signal strenght
value_t powerMeter; //RF power meter
value_t subMeter; //secondary meter
value_t hiSWR; //SWR level for Hi SWR indicator
unsigned long long meter; //secondary meter type
float rfPower; //RF power output level
float rfGain; //RF gain rx
float afGain; //AF gain level
float squelch; //Squelch level
agc_level_e agc; //AGC level
int att; //Attenuator
int pre; //Preamplifier
ant_t ant, antTx, antRx; //Antenna
int rangeListTxIndex, rangeListRxIndex;
int tuner; //Tuner
int bkin; //CW Break-in
int wpm; //CW Keyer speed WPM
char cwMem; //CW memory keyer
int apf; //Audio Peak Filter
int noiseBlanker, noiseBlanker2; //NB
int noiseReduction; //NR
float noiseReductionLevel; //NR level
int notchFilter; //NF
int ifShift;
int clar, rit, xit; //Clarifier Rx or Tx
shortfreq_t ritOffset, xitOffset; //Clarifier offset (Hz)
rptr_shift_t rptShift; //Repeater shift
shortfreq_t rptOffset; //Repeater offset (Hz)
int toneType; //0 none, 1 burst 1750, 2 CTCSS, 3 CTCSS SQL, 4 DCS
tone_t tone; //CTCSS or DCS tone
int micComp, micMon; //Flag MIC Compressor, MIC Monitor
float micGain, micMonLevel, micCompLevel; //Level MIC Gain, MIC Monitor, MIC Compressor
int voiceMem; //Voice memory keyer
} rigSettings;
typedef struct {
int onoff;
int freqMain, freqSub;
int mode, modeSub;
int bwidth;
int vfo;
int split;
int vfoXchange, vfoCopy;
int vfoDown, vfoUp;
int ptt;
int rfPower;
int rfGain;
int afGain;
int squelch;
int agc;
int att;
int pre;
int ant;
int tuner;
int tune;
int bandUp, bandDown;
int bandChange;
int bkin; //CW break-in
int wpm; //CW wpm
int cwSend; //CW send memory (Yaesu only)
int apf; //CW audio peak filter (Yaesu only)
int noiseBlanker, noiseBlanker2;
int noiseReduction, noiseReductionLevel;
int notchFilter;
int ifShift;
int clar;
int rptShift, rptOffset;
int tone;
int micComp, micMon;
int micGain, micMonLevel, micCompLevel;
int voiceSend; //Voice send memory
} rigCommand;