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.
SWGBladeRF1InputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGBladeRF1InputSettings.h
15  *
16  * BladeRF1
17  */
18 
19 #ifndef SWGBladeRF1InputSettings_H_
20 #define SWGBladeRF1InputSettings_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  SWGBladeRF1InputSettings(QString* json);
36  virtual ~SWGBladeRF1InputSettings();
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 SWGBladeRF1InputSettings* 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 getLnaGain();
52  void setLnaGain(qint32 lna_gain);
53 
54  qint32 getVga1();
55  void setVga1(qint32 vga1);
56 
57  qint32 getVga2();
58  void setVga2(qint32 vga2);
59 
60  qint32 getBandwidth();
61  void setBandwidth(qint32 bandwidth);
62 
63  qint32 getLog2Decim();
64  void setLog2Decim(qint32 log2_decim);
65 
66  qint32 getFcPos();
67  void setFcPos(qint32 fc_pos);
68 
69  qint32 getXb200();
70  void setXb200(qint32 xb200);
71 
72  qint32 getXb200Path();
73  void setXb200Path(qint32 xb200_path);
74 
75  qint32 getXb200Filter();
76  void setXb200Filter(qint32 xb200_filter);
77 
78  qint32 getDcBlock();
79  void setDcBlock(qint32 dc_block);
80 
81  qint32 getIqCorrection();
82  void setIqCorrection(qint32 iq_correction);
83 
84  QString* getFileRecordName();
85  void setFileRecordName(QString* file_record_name);
86 
87  qint32 getUseReverseApi();
88  void setUseReverseApi(qint32 use_reverse_api);
89 
90  QString* getReverseApiAddress();
91  void setReverseApiAddress(QString* reverse_api_address);
92 
93  qint32 getReverseApiPort();
94  void setReverseApiPort(qint32 reverse_api_port);
95 
96  qint32 getReverseApiDeviceIndex();
97  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
98 
99 
100  virtual bool isSet() override;
101 
102 private:
105 
108 
109  qint32 lna_gain;
111 
112  qint32 vga1;
114 
115  qint32 vga2;
117 
118  qint32 bandwidth;
120 
121  qint32 log2_decim;
123 
124  qint32 fc_pos;
126 
127  qint32 xb200;
129 
130  qint32 xb200_path;
132 
133  qint32 xb200_filter;
135 
136  qint32 dc_block;
138 
141 
144 
147 
150 
153 
156 
157 };
158 
159 }
160 
161 #endif /* SWGBladeRF1InputSettings_H_ */
#define SWG_API
Definition: export.h:124