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.
SWGLimeSdrOutputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGLimeSdrOutputSettings.h
15  *
16  * LimeSDR
17  */
18 
19 #ifndef SWGLimeSdrOutputSettings_H_
20 #define SWGLimeSdrOutputSettings_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  SWGLimeSdrOutputSettings(QString* json);
36  virtual ~SWGLimeSdrOutputSettings();
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 SWGLimeSdrOutputSettings* 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 getLog2HardInterp();
52  void setLog2HardInterp(qint32 log2_hard_interp);
53 
54  qint32 getLog2SoftInterp();
55  void setLog2SoftInterp(qint32 log2_soft_interp);
56 
57  qint32 getLpfBw();
58  void setLpfBw(qint32 lpf_bw);
59 
60  qint32 getLpfFirEnable();
61  void setLpfFirEnable(qint32 lpf_fir_enable);
62 
63  qint32 getLpfFirbw();
64  void setLpfFirbw(qint32 lpf_firbw);
65 
66  qint32 getGain();
67  void setGain(qint32 gain);
68 
69  qint32 getNcoEnable();
70  void setNcoEnable(qint32 nco_enable);
71 
72  qint32 getNcoFrequency();
73  void setNcoFrequency(qint32 nco_frequency);
74 
75  qint32 getAntennaPath();
76  void setAntennaPath(qint32 antenna_path);
77 
78  qint32 getExtClock();
79  void setExtClock(qint32 ext_clock);
80 
81  qint32 getExtClockFreq();
82  void setExtClockFreq(qint32 ext_clock_freq);
83 
84  qint32 getTransverterMode();
85  void setTransverterMode(qint32 transverter_mode);
86 
87  qint64 getTransverterDeltaFrequency();
88  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
89 
90  qint32 getGpioDir();
91  void setGpioDir(qint32 gpio_dir);
92 
93  qint32 getGpioPins();
94  void setGpioPins(qint32 gpio_pins);
95 
96  qint32 getUseReverseApi();
97  void setUseReverseApi(qint32 use_reverse_api);
98 
99  QString* getReverseApiAddress();
100  void setReverseApiAddress(QString* reverse_api_address);
101 
102  qint32 getReverseApiPort();
103  void setReverseApiPort(qint32 reverse_api_port);
104 
105  qint32 getReverseApiDeviceIndex();
106  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
107 
108 
109  virtual bool isSet() override;
110 
111 private:
114 
117 
120 
123 
124  qint32 lpf_bw;
126 
129 
130  qint32 lpf_firbw;
132 
133  qint32 gain;
135 
136  qint32 nco_enable;
138 
141 
142  qint32 antenna_path;
144 
145  qint32 ext_clock;
147 
150 
153 
156 
157  qint32 gpio_dir;
159 
160  qint32 gpio_pins;
162 
165 
168 
171 
174 
175 };
176 
177 }
178 
179 #endif /* SWGLimeSdrOutputSettings_H_ */
#define SWG_API
Definition: export.h:124