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.
SWGBladeRF2OutputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGBladeRF2OutputSettings.h
15  *
16  * BladeRF2
17  */
18 
19 #ifndef SWGBladeRF2OutputSettings_H_
20 #define SWGBladeRF2OutputSettings_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  SWGBladeRF2OutputSettings(QString* json);
36  virtual ~SWGBladeRF2OutputSettings();
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 SWGBladeRF2OutputSettings* 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 getGlobalGain();
58  void setGlobalGain(qint32 global_gain);
59 
60  qint32 getBiasTee();
61  void setBiasTee(qint32 bias_tee);
62 
63  qint32 getLog2Interp();
64  void setLog2Interp(qint32 log2_interp);
65 
66  qint32 getTransverterMode();
67  void setTransverterMode(qint32 transverter_mode);
68 
69  qint64 getTransverterDeltaFrequency();
70  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
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 
91  qint32 l_oppm_tenths;
93 
96 
97  qint32 bandwidth;
99 
100  qint32 global_gain;
102 
103  qint32 bias_tee;
105 
106  qint32 log2_interp;
108 
111 
114 
117 
120 
123 
126 
127 };
128 
129 }
130 
131 #endif /* SWGBladeRF2OutputSettings_H_ */
#define SWG_API
Definition: export.h:124