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.
SWGAirspySettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGAirspySettings.h
15  *
16  * Airspy
17  */
18 
19 #ifndef SWGAirspySettings_H_
20 #define SWGAirspySettings_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  SWGAirspySettings(QString* json);
36  virtual ~SWGAirspySettings();
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 SWGAirspySettings* 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 getLnaGain();
55  void setLnaGain(qint32 lna_gain);
56 
57  qint32 getMixerGain();
58  void setMixerGain(qint32 mixer_gain);
59 
60  qint32 getVgaGain();
61  void setVgaGain(qint32 vga_gain);
62 
63  qint32 getLnaAgc();
64  void setLnaAgc(qint32 lna_agc);
65 
66  qint32 getMixerAgc();
67  void setMixerAgc(qint32 mixer_agc);
68 
69  qint32 getLog2Decim();
70  void setLog2Decim(qint32 log2_decim);
71 
72  qint32 getFcPos();
73  void setFcPos(qint32 fc_pos);
74 
75  qint32 getBiasT();
76  void setBiasT(qint32 bias_t);
77 
78  qint32 getDcBlock();
79  void setDcBlock(qint32 dc_block);
80 
81  qint32 getIqCorrection();
82  void setIqCorrection(qint32 iq_correction);
83 
84  qint32 getTransverterMode();
85  void setTransverterMode(qint32 transverter_mode);
86 
87  qint64 getTransverterDeltaFrequency();
88  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
89 
90  QString* getFileRecordName();
91  void setFileRecordName(QString* file_record_name);
92 
93  qint32 getUseReverseApi();
94  void setUseReverseApi(qint32 use_reverse_api);
95 
96  QString* getReverseApiAddress();
97  void setReverseApiAddress(QString* reverse_api_address);
98 
99  qint32 getReverseApiPort();
100  void setReverseApiPort(qint32 reverse_api_port);
101 
102  qint32 getReverseApiDeviceIndex();
103  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
104 
105 
106  virtual bool isSet() override;
107 
108 private:
111 
114 
117 
118  qint32 lna_gain;
120 
121  qint32 mixer_gain;
123 
124  qint32 vga_gain;
126 
127  qint32 lna_agc;
129 
130  qint32 mixer_agc;
132 
133  qint32 log2_decim;
135 
136  qint32 fc_pos;
138 
139  qint32 bias_t;
141 
142  qint32 dc_block;
144 
147 
150 
153 
156 
159 
162 
165 
168 
169 };
170 
171 }
172 
173 #endif /* SWGAirspySettings_H_ */
#define SWG_API
Definition: export.h:124