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.
SWGXtrxOutputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGXtrxOutputSettings.h
15  *
16  * XTRX
17  */
18 
19 #ifndef SWGXtrxOutputSettings_H_
20 #define SWGXtrxOutputSettings_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  SWGXtrxOutputSettings(QString* json);
36  virtual ~SWGXtrxOutputSettings();
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 SWGXtrxOutputSettings* 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 getGain();
61  void setGain(qint32 gain);
62 
63  qint32 getNcoEnable();
64  void setNcoEnable(qint32 nco_enable);
65 
66  qint32 getNcoFrequency();
67  void setNcoFrequency(qint32 nco_frequency);
68 
69  qint32 getAntennaPath();
70  void setAntennaPath(qint32 antenna_path);
71 
72  qint32 getExtClock();
73  void setExtClock(qint32 ext_clock);
74 
75  qint32 getExtClockFreq();
76  void setExtClockFreq(qint32 ext_clock_freq);
77 
78  qint32 getPwrmode();
79  void setPwrmode(qint32 pwrmode);
80 
81  qint32 getUseReverseApi();
82  void setUseReverseApi(qint32 use_reverse_api);
83 
84  QString* getReverseApiAddress();
85  void setReverseApiAddress(QString* reverse_api_address);
86 
87  qint32 getReverseApiPort();
88  void setReverseApiPort(qint32 reverse_api_port);
89 
90  qint32 getReverseApiDeviceIndex();
91  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
92 
93 
94  virtual bool isSet() override;
95 
96 private:
99 
102 
105 
108 
109  qint32 lpf_bw;
111 
112  qint32 gain;
114 
115  qint32 nco_enable;
117 
120 
121  qint32 antenna_path;
123 
124  qint32 ext_clock;
126 
129 
130  qint32 pwrmode;
132 
135 
138 
141 
144 
145 };
146 
147 }
148 
149 #endif /* SWGXtrxOutputSettings_H_ */
#define SWG_API
Definition: export.h:124