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.
SWGSDRPlaySettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGSDRPlaySettings.h
15  *
16  * SDRplay1
17  */
18 
19 #ifndef SWGSDRPlaySettings_H_
20 #define SWGSDRPlaySettings_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  SWGSDRPlaySettings(QString* json);
36  virtual ~SWGSDRPlaySettings();
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 SWGSDRPlaySettings* fromJson(QString &jsonString) override;
44 
45  qint32 getCenterFrequency();
46  void setCenterFrequency(qint32 center_frequency);
47 
48  qint32 getTunerGain();
49  void setTunerGain(qint32 tuner_gain);
50 
51  qint32 getLOppmTenths();
52  void setLOppmTenths(qint32 l_oppm_tenths);
53 
54  qint32 getFrequencyBandIndex();
55  void setFrequencyBandIndex(qint32 frequency_band_index);
56 
57  qint32 getIfFrequencyIndex();
58  void setIfFrequencyIndex(qint32 if_frequency_index);
59 
60  qint32 getBandwidthIndex();
61  void setBandwidthIndex(qint32 bandwidth_index);
62 
63  qint32 getDevSampleRateIndex();
64  void setDevSampleRateIndex(qint32 dev_sample_rate_index);
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 getTunerGainMode();
79  void setTunerGainMode(qint32 tuner_gain_mode);
80 
81  qint32 getLnaOn();
82  void setLnaOn(qint32 lna_on);
83 
84  qint32 getMixerAmpOn();
85  void setMixerAmpOn(qint32 mixer_amp_on);
86 
87  qint32 getBasebandGain();
88  void setBasebandGain(qint32 baseband_gain);
89 
90  QString* getFileRecordName();
91  void setFileRecordName(QString* file_record_name);
92 
93  qint32 getUseReverseApi();
94  void setUseReverseApi(qint32 use_reverse_api);
95 
96  QString* getReverseApiAddress();
97  void setReverseApiAddress(QString* reverse_api_address);
98 
99  qint32 getReverseApiPort();
100  void setReverseApiPort(qint32 reverse_api_port);
101 
102  qint32 getReverseApiDeviceIndex();
103  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
104 
105 
106  virtual bool isSet() override;
107 
108 private:
111 
112  qint32 tuner_gain;
114 
117 
120 
123 
126 
129 
130  qint32 log2_decim;
132 
133  qint32 fc_pos;
135 
136  qint32 dc_block;
138 
141 
144 
145  qint32 lna_on;
147 
148  qint32 mixer_amp_on;
150 
153 
156 
159 
162 
165 
168 
169 };
170 
171 }
172 
173 #endif /* SWGSDRPlaySettings_H_ */
#define SWG_API
Definition: export.h:124