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.
SWGHackRFOutputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGHackRFOutputSettings.h
15  *
16  * HackRF
17  */
18 
19 #ifndef SWGHackRFOutputSettings_H_
20 #define SWGHackRFOutputSettings_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  SWGHackRFOutputSettings(QString* json);
36  virtual ~SWGHackRFOutputSettings();
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 SWGHackRFOutputSettings* 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 getBandwidth();
52  void setBandwidth(qint32 bandwidth);
53 
54  qint32 getVgaGain();
55  void setVgaGain(qint32 vga_gain);
56 
57  qint32 getLog2Interp();
58  void setLog2Interp(qint32 log2_interp);
59 
60  qint32 getFcPos();
61  void setFcPos(qint32 fc_pos);
62 
63  qint32 getDevSampleRate();
64  void setDevSampleRate(qint32 dev_sample_rate);
65 
66  qint32 getBiasT();
67  void setBiasT(qint32 bias_t);
68 
69  qint32 getLnaExt();
70  void setLnaExt(qint32 lna_ext);
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 
94  qint32 bandwidth;
96 
97  qint32 vga_gain;
99 
100  qint32 log2_interp;
102 
103  qint32 fc_pos;
105 
108 
109  qint32 bias_t;
111 
112  qint32 lna_ext;
114 
117 
120 
123 
126 
127 };
128 
129 }
130 
131 #endif /* SWGHackRFOutputSettings_H_ */
#define SWG_API
Definition: export.h:124