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.
SWGSoapySDRInputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGSoapySDRInputSettings.h
15  *
16  * SoapySDR
17  */
18 
19 #ifndef SWGSoapySDRInputSettings_H_
20 #define SWGSoapySDRInputSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGArgValue.h"
26 #include "SWGComplex.h"
27 #include <QList>
28 #include <QString>
29 
30 #include "SWGObject.h"
31 #include "export.h"
32 
33 namespace SWGSDRangel {
34 
36 public:
38  SWGSoapySDRInputSettings(QString* json);
39  virtual ~SWGSoapySDRInputSettings();
40  void init();
41  void cleanup();
42 
43  virtual QString asJson () override;
44  virtual QJsonObject* asJsonObject() override;
45  virtual void fromJsonObject(QJsonObject &json) override;
46  virtual SWGSoapySDRInputSettings* fromJson(QString &jsonString) override;
47 
48  qint64 getCenterFrequency();
49  void setCenterFrequency(qint64 center_frequency);
50 
51  qint32 getLOppmTenths();
52  void setLOppmTenths(qint32 l_oppm_tenths);
53 
54  qint32 getDevSampleRate();
55  void setDevSampleRate(qint32 dev_sample_rate);
56 
57  qint32 getLog2Decim();
58  void setLog2Decim(qint32 log2_decim);
59 
60  qint32 getFcPos();
61  void setFcPos(qint32 fc_pos);
62 
63  qint32 getSoftDcCorrection();
64  void setSoftDcCorrection(qint32 soft_dc_correction);
65 
66  qint32 getSoftIqCorrection();
67  void setSoftIqCorrection(qint32 soft_iq_correction);
68 
69  qint32 getTransverterMode();
70  void setTransverterMode(qint32 transverter_mode);
71 
72  qint64 getTransverterDeltaFrequency();
73  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
74 
75  QString* getFileRecordName();
76  void setFileRecordName(QString* file_record_name);
77 
78  QString* getAntenna();
79  void setAntenna(QString* antenna);
80 
81  qint32 getBandwidth();
82  void setBandwidth(qint32 bandwidth);
83 
84  QList<SWGArgValue*>* getTunableElements();
85  void setTunableElements(QList<SWGArgValue*>* tunable_elements);
86 
87  qint32 getGlobalGain();
88  void setGlobalGain(qint32 global_gain);
89 
90  QList<SWGArgValue*>* getIndividualGains();
91  void setIndividualGains(QList<SWGArgValue*>* individual_gains);
92 
93  qint32 getAutoGain();
94  void setAutoGain(qint32 auto_gain);
95 
96  qint32 getAutoDcCorrection();
97  void setAutoDcCorrection(qint32 auto_dc_correction);
98 
99  qint32 getAutoIqCorrection();
100  void setAutoIqCorrection(qint32 auto_iq_correction);
101 
102  SWGComplex* getDcCorrection();
103  void setDcCorrection(SWGComplex* dc_correction);
104 
105  SWGComplex* getIqCorrection();
106  void setIqCorrection(SWGComplex* iq_correction);
107 
108  QList<SWGArgValue*>* getStreamArgSettings();
109  void setStreamArgSettings(QList<SWGArgValue*>* stream_arg_settings);
110 
111  QList<SWGArgValue*>* getDeviceArgSettings();
112  void setDeviceArgSettings(QList<SWGArgValue*>* device_arg_settings);
113 
114  qint32 getUseReverseApi();
115  void setUseReverseApi(qint32 use_reverse_api);
116 
117  QString* getReverseApiAddress();
118  void setReverseApiAddress(QString* reverse_api_address);
119 
120  qint32 getReverseApiPort();
121  void setReverseApiPort(qint32 reverse_api_port);
122 
123  qint32 getReverseApiDeviceIndex();
124  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
125 
126 
127  virtual bool isSet() override;
128 
129 private:
132 
135 
138 
139  qint32 log2_decim;
141 
142  qint32 fc_pos;
144 
147 
150 
153 
156 
159 
160  QString* antenna;
162 
163  qint32 bandwidth;
165 
166  QList<SWGArgValue*>* tunable_elements;
168 
169  qint32 global_gain;
171 
172  QList<SWGArgValue*>* individual_gains;
174 
175  qint32 auto_gain;
177 
180 
183 
186 
189 
190  QList<SWGArgValue*>* stream_arg_settings;
192 
193  QList<SWGArgValue*>* device_arg_settings;
195 
198 
201 
204 
207 
208 };
209 
210 }
211 
212 #endif /* SWGSoapySDRInputSettings_H_ */
#define SWG_API
Definition: export.h:124