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.
SWGBladeRF1OutputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGBladeRF1OutputSettings.h
15  *
16  * BladeRF1
17  */
18 
19 #ifndef SWGBladeRF1OutputSettings_H_
20 #define SWGBladeRF1OutputSettings_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  SWGBladeRF1OutputSettings(QString* json);
36  virtual ~SWGBladeRF1OutputSettings();
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 SWGBladeRF1OutputSettings* 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 getVga1();
52  void setVga1(qint32 vga1);
53 
54  qint32 getVga2();
55  void setVga2(qint32 vga2);
56 
57  qint32 getBandwidth();
58  void setBandwidth(qint32 bandwidth);
59 
60  qint32 getLog2Interp();
61  void setLog2Interp(qint32 log2_interp);
62 
63  qint32 getXb200();
64  void setXb200(qint32 xb200);
65 
66  qint32 getXb200Path();
67  void setXb200Path(qint32 xb200_path);
68 
69  qint32 getXb200Filter();
70  void setXb200Filter(qint32 xb200_filter);
71 
72  qint32 getUseReverseApi();
73  void setUseReverseApi(qint32 use_reverse_api);
74 
75  QString* getReverseApiAddress();
76  void setReverseApiAddress(QString* reverse_api_address);
77 
78  qint32 getReverseApiPort();
79  void setReverseApiPort(qint32 reverse_api_port);
80 
81  qint32 getReverseApiDeviceIndex();
82  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
83 
84 
85  virtual bool isSet() override;
86 
87 private:
90 
93 
94  qint32 vga1;
96 
97  qint32 vga2;
99 
100  qint32 bandwidth;
102 
103  qint32 log2_interp;
105 
106  qint32 xb200;
108 
109  qint32 xb200_path;
111 
112  qint32 xb200_filter;
114 
117 
120 
123 
126 
127 };
128 
129 }
130 
131 #endif /* SWGBladeRF1OutputSettings_H_ */
#define SWG_API
Definition: export.h:124