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.
SWGHackRFInputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGHackRFInputSettings.h
15  *
16  * HackRF
17  */
18 
19 #ifndef SWGHackRFInputSettings_H_
20 #define SWGHackRFInputSettings_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  SWGHackRFInputSettings(QString* json);
36  virtual ~SWGHackRFInputSettings();
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 SWGHackRFInputSettings* 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 getLnaGain();
55  void setLnaGain(qint32 lna_gain);
56 
57  qint32 getVgaGain();
58  void setVgaGain(qint32 vga_gain);
59 
60  qint32 getLog2Decim();
61  void setLog2Decim(qint32 log2_decim);
62 
63  qint32 getFcPos();
64  void setFcPos(qint32 fc_pos);
65 
66  qint32 getDevSampleRate();
67  void setDevSampleRate(qint32 dev_sample_rate);
68 
69  qint32 getBiasT();
70  void setBiasT(qint32 bias_t);
71 
72  qint32 getLnaExt();
73  void setLnaExt(qint32 lna_ext);
74 
75  qint32 getDcBlock();
76  void setDcBlock(qint32 dc_block);
77 
78  qint32 getIqCorrection();
79  void setIqCorrection(qint32 iq_correction);
80 
81  QString* getFileRecordName();
82  void setFileRecordName(QString* file_record_name);
83 
84  qint32 getUseReverseApi();
85  void setUseReverseApi(qint32 use_reverse_api);
86 
87  QString* getReverseApiAddress();
88  void setReverseApiAddress(QString* reverse_api_address);
89 
90  qint32 getReverseApiPort();
91  void setReverseApiPort(qint32 reverse_api_port);
92 
93  qint32 getReverseApiDeviceIndex();
94  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
95 
96 
97  virtual bool isSet() override;
98 
99 private:
102 
105 
106  qint32 bandwidth;
108 
109  qint32 lna_gain;
111 
112  qint32 vga_gain;
114 
115  qint32 log2_decim;
117 
118  qint32 fc_pos;
120 
123 
124  qint32 bias_t;
126 
127  qint32 lna_ext;
129 
130  qint32 dc_block;
132 
135 
138 
141 
144 
147 
150 
151 };
152 
153 }
154 
155 #endif /* SWGHackRFInputSettings_H_ */
#define SWG_API
Definition: export.h:124