SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
SWGAirspyHFSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGAirspyHFSettings.h
15  *
16  * AirspyHF
17  */
18 
19 #ifndef SWGAirspyHFSettings_H_
20 #define SWGAirspyHFSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGAirspyHFSettings(QString* json);
36  virtual ~SWGAirspyHFSettings();
37  void init();
38  void cleanup();
39 
40  virtual QString asJson () override;
41  virtual QJsonObject* asJsonObject() override;
42  virtual void fromJsonObject(QJsonObject &json) override;
43  virtual SWGAirspyHFSettings* fromJson(QString &jsonString) override;
44 
45  qint64 getCenterFrequency();
46  void setCenterFrequency(qint64 center_frequency);
47 
48  qint32 getLOppmTenths();
49  void setLOppmTenths(qint32 l_oppm_tenths);
50 
51  qint32 getDevSampleRateIndex();
52  void setDevSampleRateIndex(qint32 dev_sample_rate_index);
53 
54  qint32 getLog2Decim();
55  void setLog2Decim(qint32 log2_decim);
56 
57  qint32 getTransverterMode();
58  void setTransverterMode(qint32 transverter_mode);
59 
60  qint64 getTransverterDeltaFrequency();
61  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
62 
63  qint32 getBandIndex();
64  void setBandIndex(qint32 band_index);
65 
66  QString* getFileRecordName();
67  void setFileRecordName(QString* file_record_name);
68 
69  qint32 getUseReverseApi();
70  void setUseReverseApi(qint32 use_reverse_api);
71 
72  QString* getReverseApiAddress();
73  void setReverseApiAddress(QString* reverse_api_address);
74 
75  qint32 getReverseApiPort();
76  void setReverseApiPort(qint32 reverse_api_port);
77 
78  qint32 getReverseApiDeviceIndex();
79  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
80 
81  qint32 getUseAgc();
82  void setUseAgc(qint32 use_agc);
83 
84  qint32 getAgcHigh();
85  void setAgcHigh(qint32 agc_high);
86 
87  qint32 getUseDsp();
88  void setUseDsp(qint32 use_dsp);
89 
90  qint32 getUseLna();
91  void setUseLna(qint32 use_lna);
92 
93  qint32 getAttenuatorSteps();
94  void setAttenuatorSteps(qint32 attenuator_steps);
95 
96  qint32 getDcBlock();
97  void setDcBlock(qint32 dc_block);
98 
99  qint32 getIqCorrection();
100  void setIqCorrection(qint32 iq_correction);
101 
102 
103  virtual bool isSet() override;
104 
105 private:
108 
111 
114 
115  qint32 log2_decim;
117 
120 
123 
124  qint32 band_index;
126 
129 
132 
135 
138 
141 
142  qint32 use_agc;
144 
145  qint32 agc_high;
147 
148  qint32 use_dsp;
150 
151  qint32 use_lna;
153 
156 
157  qint32 dc_block;
159 
162 
163 };
164 
165 }
166 
167 #endif /* SWGAirspyHFSettings_H_ */
#define SWG_API
Definition: export.h:124