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.
SWGRtlSdrSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGRtlSdrSettings.h
15  *
16  * RTLSDR
17  */
18 
19 #ifndef SWGRtlSdrSettings_H_
20 #define SWGRtlSdrSettings_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  SWGRtlSdrSettings(QString* json);
36  virtual ~SWGRtlSdrSettings();
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 SWGRtlSdrSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getDevSampleRate();
46  void setDevSampleRate(qint32 dev_sample_rate);
47 
48  qint32 getLowSampleRate();
49  void setLowSampleRate(qint32 low_sample_rate);
50 
51  qint64 getCenterFrequency();
52  void setCenterFrequency(qint64 center_frequency);
53 
54  qint32 getGain();
55  void setGain(qint32 gain);
56 
57  qint32 getLoPpmCorrection();
58  void setLoPpmCorrection(qint32 lo_ppm_correction);
59 
60  qint32 getLog2Decim();
61  void setLog2Decim(qint32 log2_decim);
62 
63  qint32 getFcPos();
64  void setFcPos(qint32 fc_pos);
65 
66  qint32 getDcBlock();
67  void setDcBlock(qint32 dc_block);
68 
69  qint32 getIqImbalance();
70  void setIqImbalance(qint32 iq_imbalance);
71 
72  qint32 getAgc();
73  void setAgc(qint32 agc);
74 
75  qint32 getNoModMode();
76  void setNoModMode(qint32 no_mod_mode);
77 
78  qint32 getOffsetTuning();
79  void setOffsetTuning(qint32 offset_tuning);
80 
81  qint32 getTransverterMode();
82  void setTransverterMode(qint32 transverter_mode);
83 
84  qint64 getTransverterDeltaFrequency();
85  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
86 
87  qint32 getRfBandwidth();
88  void setRfBandwidth(qint32 rf_bandwidth);
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 gain;
120 
123 
124  qint32 log2_decim;
126 
127  qint32 fc_pos;
129 
130  qint32 dc_block;
132 
133  qint32 iq_imbalance;
135 
136  qint32 agc;
138 
139  qint32 no_mod_mode;
141 
144 
147 
150 
151  qint32 rf_bandwidth;
153 
156 
159 
162 
165 
168 
169 };
170 
171 }
172 
173 #endif /* SWGRtlSdrSettings_H_ */
#define SWG_API
Definition: export.h:124