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.
SWGLimeSdrInputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGLimeSdrInputSettings.h
15  *
16  * LimeSDR
17  */
18 
19 #ifndef SWGLimeSdrInputSettings_H_
20 #define SWGLimeSdrInputSettings_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  SWGLimeSdrInputSettings(QString* json);
36  virtual ~SWGLimeSdrInputSettings();
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 SWGLimeSdrInputSettings* fromJson(QString &jsonString) override;
44 
45  qint64 getCenterFrequency();
46  void setCenterFrequency(qint64 center_frequency);
47 
48  qint32 getDevSampleRate();
49  void setDevSampleRate(qint32 dev_sample_rate);
50 
51  qint32 getLog2HardDecim();
52  void setLog2HardDecim(qint32 log2_hard_decim);
53 
54  qint32 getDcBlock();
55  void setDcBlock(qint32 dc_block);
56 
57  qint32 getIqCorrection();
58  void setIqCorrection(qint32 iq_correction);
59 
60  qint32 getLog2SoftDecim();
61  void setLog2SoftDecim(qint32 log2_soft_decim);
62 
63  qint32 getLpfBw();
64  void setLpfBw(qint32 lpf_bw);
65 
66  qint32 getLpfFirEnable();
67  void setLpfFirEnable(qint32 lpf_fir_enable);
68 
69  qint32 getLpfFirbw();
70  void setLpfFirbw(qint32 lpf_firbw);
71 
72  qint32 getGain();
73  void setGain(qint32 gain);
74 
75  qint32 getNcoEnable();
76  void setNcoEnable(qint32 nco_enable);
77 
78  qint32 getNcoFrequency();
79  void setNcoFrequency(qint32 nco_frequency);
80 
81  qint32 getAntennaPath();
82  void setAntennaPath(qint32 antenna_path);
83 
84  qint32 getGainMode();
85  void setGainMode(qint32 gain_mode);
86 
87  qint32 getLnaGain();
88  void setLnaGain(qint32 lna_gain);
89 
90  qint32 getTiaGain();
91  void setTiaGain(qint32 tia_gain);
92 
93  qint32 getPgaGain();
94  void setPgaGain(qint32 pga_gain);
95 
96  qint32 getExtClock();
97  void setExtClock(qint32 ext_clock);
98 
99  qint32 getExtClockFreq();
100  void setExtClockFreq(qint32 ext_clock_freq);
101 
102  qint32 getTransverterMode();
103  void setTransverterMode(qint32 transverter_mode);
104 
105  qint64 getTransverterDeltaFrequency();
106  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
107 
108  QString* getFileRecordName();
109  void setFileRecordName(QString* file_record_name);
110 
111  qint32 getGpioDir();
112  void setGpioDir(qint32 gpio_dir);
113 
114  qint32 getGpioPins();
115  void setGpioPins(qint32 gpio_pins);
116 
117  qint32 getUseReverseApi();
118  void setUseReverseApi(qint32 use_reverse_api);
119 
120  QString* getReverseApiAddress();
121  void setReverseApiAddress(QString* reverse_api_address);
122 
123  qint32 getReverseApiPort();
124  void setReverseApiPort(qint32 reverse_api_port);
125 
126  qint32 getReverseApiDeviceIndex();
127  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
128 
129 
130  virtual bool isSet() override;
131 
132 private:
135 
138 
141 
142  qint32 dc_block;
144 
147 
150 
151  qint32 lpf_bw;
153 
156 
157  qint32 lpf_firbw;
159 
160  qint32 gain;
162 
163  qint32 nco_enable;
165 
168 
169  qint32 antenna_path;
171 
172  qint32 gain_mode;
174 
175  qint32 lna_gain;
177 
178  qint32 tia_gain;
180 
181  qint32 pga_gain;
183 
184  qint32 ext_clock;
186 
189 
192 
195 
198 
199  qint32 gpio_dir;
201 
202  qint32 gpio_pins;
204 
207 
210 
213 
216 
217 };
218 
219 }
220 
221 #endif /* SWGLimeSdrInputSettings_H_ */
#define SWG_API
Definition: export.h:124