CatRadio/rigdata.h

125 wiersze
4.2 KiB
C
Czysty Zwykły widok Historia

2022-03-12 19:30:51 +00:00
/**
** This file is part of the CatRadio project.
2024-02-26 18:30:25 +00:00
** Copyright 2022-2024 Gianfranco Sordetti IZ8EWD <iz8ewd@pianetaradio.it>.
2022-03-12 19:30:51 +00:00
**
** 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
2024-03-02 23:13:00 +00:00
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)
2022-03-12 19:30:51 +00:00
int civAddr; //CI-V address (decimal, Icom radio)
2022-03-23 19:14:16 +00:00
bool netRigctl; //TCP NET Rigctl
2022-03-12 19:30:51 +00:00
unsigned rigRefresh; //GUI refresh interval (ms)
int connected; //connected flag
bool fullPoll; //full polling flag
2024-02-26 18:30:25 +00:00
bool autoConnect; //Auto-connect flag
2023-05-29 19:18:10 +00:00
bool autoPowerOn; //Auto Power ON flag
2022-03-12 19:30:51 +00:00
} rigConnect;
typedef struct {
powerstat_t onoff; //on/off status
2022-03-27 11:56:20 +00:00
freq_t freqMain, freqSub; //Frequency (Hz)
2022-10-30 15:20:53 +00:00
int band; //Band
2022-03-12 19:30:51 +00:00
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
2023-05-12 18:18:45 +00:00
value_t hiSWR; //SWR level for Hi SWR indicator
2022-11-04 18:33:43 +00:00
unsigned long long meter; //secondary meter type
2022-03-12 19:30:51 +00:00
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
int apf; //Audio Peak Filter
2022-11-05 18:26:21 +00:00
int noiseBlanker, noiseBlanker2; //NB
2023-10-02 19:08:30 +00:00
int noiseReduction; //NR
float noiseReductionLevel; //NR level
2022-11-05 18:26:21 +00:00
int notchFilter; //NF
2022-03-12 19:30:51 +00:00
int ifShift;
2022-04-08 16:04:54 +00:00
int clar, rit, xit; //Clarifier Rx or Tx
shortfreq_t ritOffset, xitOffset; //Clarifier offset (Hz)
2022-03-12 19:30:51 +00:00
rptr_shift_t rptShift; //Repeater shift
2022-03-27 11:56:20 +00:00
shortfreq_t rptOffset; //Repeater offset (Hz)
int toneType; //0 none, 1 burst 1750, 2 CTCSS, 3 CTCSS SQL, 4 DCS
2022-03-12 19:30:51 +00:00
tone_t tone; //CTCSS or DCS tone
2022-10-30 15:20:53 +00:00
int micComp, micMon; //Flag MIC Compressor, MIC Monitor
2022-11-14 19:19:39 +00:00
float micGain, micMonLevel, micCompLevel; //Level MIC Gain, MIC Monitor, MIC Compressor
2022-03-12 19:30:51 +00:00
} rigSettings;
typedef struct {
int onoff;
int freqMain, freqSub;
int mode, modeSub;
int bwidth;
int vfo;
int split;
2022-03-28 21:37:04 +00:00
int vfoXchange, vfoCopy;
int vfoDown, vfoUp;
2022-03-12 19:30:51 +00:00
int ptt;
int rfPower;
int rfGain;
int afGain;
int squelch;
int agc;
int att;
int pre;
int ant;
int tuner;
int tune;
2022-03-28 21:37:04 +00:00
int bandUp, bandDown;
2022-03-12 19:30:51 +00:00
int bandChange;
int bkin;
int wpm;
int apf;
2022-11-05 18:26:21 +00:00
int noiseBlanker, noiseBlanker2;
2022-03-12 19:30:51 +00:00
int noiseReduction, noiseReductionLevel;
int notchFilter;
int ifShift;
2022-04-08 16:04:54 +00:00
int clar;
2022-03-27 11:56:20 +00:00
int rptShift, rptOffset;
2022-03-12 19:30:51 +00:00
int tone;
2022-10-30 15:20:53 +00:00
int micComp, micMon;
2022-11-14 19:19:39 +00:00
int micGain, micMonLevel, micCompLevel;
2022-03-12 19:30:51 +00:00
} rigCommand;