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.
SWGSoapySDROutputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGSoapySDROutputSettings.h
15  *
16  * SoapySDR
17  */
18 
19 #ifndef SWGSoapySDROutputSettings_H_
20 #define SWGSoapySDROutputSettings_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  SWGSoapySDROutputSettings(QString* json);
39  virtual ~SWGSoapySDROutputSettings();
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 SWGSoapySDROutputSettings* 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 getLog2Interp();
58  void setLog2Interp(qint32 log2_interp);
59 
60  qint32 getTransverterMode();
61  void setTransverterMode(qint32 transverter_mode);
62 
63  qint64 getTransverterDeltaFrequency();
64  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
65 
66  QString* getAntenna();
67  void setAntenna(QString* antenna);
68 
69  qint32 getBandwidth();
70  void setBandwidth(qint32 bandwidth);
71 
72  QList<SWGArgValue*>* getTunableElements();
73  void setTunableElements(QList<SWGArgValue*>* tunable_elements);
74 
75  qint32 getGlobalGain();
76  void setGlobalGain(qint32 global_gain);
77 
78  QList<SWGArgValue*>* getIndividualGains();
79  void setIndividualGains(QList<SWGArgValue*>* individual_gains);
80 
81  qint32 getAutoGain();
82  void setAutoGain(qint32 auto_gain);
83 
84  qint32 getAutoDcCorrection();
85  void setAutoDcCorrection(qint32 auto_dc_correction);
86 
87  qint32 getAutoIqCorrection();
88  void setAutoIqCorrection(qint32 auto_iq_correction);
89 
90  SWGComplex* getDcCorrection();
91  void setDcCorrection(SWGComplex* dc_correction);
92 
93  SWGComplex* getIqCorrection();
94  void setIqCorrection(SWGComplex* iq_correction);
95 
96  QList<SWGArgValue*>* getStreamArgSettings();
97  void setStreamArgSettings(QList<SWGArgValue*>* stream_arg_settings);
98 
99  QList<SWGArgValue*>* getDeviceArgSettings();
100  void setDeviceArgSettings(QList<SWGArgValue*>* device_arg_settings);
101 
102  qint32 getUseReverseApi();
103  void setUseReverseApi(qint32 use_reverse_api);
104 
105  QString* getReverseApiAddress();
106  void setReverseApiAddress(QString* reverse_api_address);
107 
108  qint32 getReverseApiPort();
109  void setReverseApiPort(qint32 reverse_api_port);
110 
111  qint32 getReverseApiDeviceIndex();
112  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
113 
114 
115  virtual bool isSet() override;
116 
117 private:
120 
123 
126 
127  qint32 log2_interp;
129 
132 
135 
136  QString* antenna;
138 
139  qint32 bandwidth;
141 
142  QList<SWGArgValue*>* tunable_elements;
144 
145  qint32 global_gain;
147 
148  QList<SWGArgValue*>* individual_gains;
150 
151  qint32 auto_gain;
153 
156 
159 
162 
165 
166  QList<SWGArgValue*>* stream_arg_settings;
168 
169  QList<SWGArgValue*>* device_arg_settings;
171 
174 
177 
180 
183 
184 };
185 
186 }
187 
188 #endif /* SWGSoapySDROutputSettings_H_ */
#define SWG_API
Definition: export.h:124