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.
SWGBladeRF2InputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGBladeRF2InputSettings.h
15  *
16  * BladeRF2
17  */
18 
19 #ifndef SWGBladeRF2InputSettings_H_
20 #define SWGBladeRF2InputSettings_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  SWGBladeRF2InputSettings(QString* json);
36  virtual ~SWGBladeRF2InputSettings();
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 SWGBladeRF2InputSettings* fromJson(QString &jsonString) override;
44 
45  qint64 getCenterFrequency();
46  void setCenterFrequency(qint64 center_frequency);
47 
48  qint32 getLOppmTenths();
49  void setLOppmTenths(qint32 l_oppm_tenths);
50 
51  qint32 getDevSampleRate();
52  void setDevSampleRate(qint32 dev_sample_rate);
53 
54  qint32 getBandwidth();
55  void setBandwidth(qint32 bandwidth);
56 
57  qint32 getGainMode();
58  void setGainMode(qint32 gain_mode);
59 
60  qint32 getGlobalGain();
61  void setGlobalGain(qint32 global_gain);
62 
63  qint32 getBiasTee();
64  void setBiasTee(qint32 bias_tee);
65 
66  qint32 getLog2Decim();
67  void setLog2Decim(qint32 log2_decim);
68 
69  qint32 getFcPos();
70  void setFcPos(qint32 fc_pos);
71 
72  qint32 getDcBlock();
73  void setDcBlock(qint32 dc_block);
74 
75  qint32 getIqCorrection();
76  void setIqCorrection(qint32 iq_correction);
77 
78  qint32 getTransverterMode();
79  void setTransverterMode(qint32 transverter_mode);
80 
81  qint64 getTransverterDeltaFrequency();
82  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
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 
111 
112  qint32 bandwidth;
114 
115  qint32 gain_mode;
117 
118  qint32 global_gain;
120 
121  qint32 bias_tee;
123 
124  qint32 log2_decim;
126 
127  qint32 fc_pos;
129 
130  qint32 dc_block;
132 
135 
138 
141 
144 
147 
150 
153 
156 
157 };
158 
159 }
160 
161 #endif /* SWGBladeRF2InputSettings_H_ */
#define SWG_API
Definition: export.h:124