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.
SWGTestSourceSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGTestSourceSettings.h
15  *
16  * TestSource
17  */
18 
19 #ifndef SWGTestSourceSettings_H_
20 #define SWGTestSourceSettings_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  SWGTestSourceSettings(QString* json);
36  virtual ~SWGTestSourceSettings();
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 SWGTestSourceSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getCenterFrequency();
46  void setCenterFrequency(qint32 center_frequency);
47 
48  qint32 getFrequencyShift();
49  void setFrequencyShift(qint32 frequency_shift);
50 
51  qint32 getSampleRate();
52  void setSampleRate(qint32 sample_rate);
53 
54  qint32 getLog2Decim();
55  void setLog2Decim(qint32 log2_decim);
56 
57  qint32 getFcPos();
58  void setFcPos(qint32 fc_pos);
59 
60  qint32 getSampleSizeIndex();
61  void setSampleSizeIndex(qint32 sample_size_index);
62 
63  qint32 getAmplitudeBits();
64  void setAmplitudeBits(qint32 amplitude_bits);
65 
66  qint32 getAutoCorrOptions();
67  void setAutoCorrOptions(qint32 auto_corr_options);
68 
69  qint32 getModulation();
70  void setModulation(qint32 modulation);
71 
72  qint32 getModulationTone();
73  void setModulationTone(qint32 modulation_tone);
74 
75  qint32 getAmModulation();
76  void setAmModulation(qint32 am_modulation);
77 
78  qint32 getFmDeviation();
79  void setFmDeviation(qint32 fm_deviation);
80 
81  float getDcFactor();
82  void setDcFactor(float dc_factor);
83 
84  float getIFactor();
85  void setIFactor(float i_factor);
86 
87  float getQFactor();
88  void setQFactor(float q_factor);
89 
90  float getPhaseImbalance();
91  void setPhaseImbalance(float phase_imbalance);
92 
93  QString* getFileRecordName();
94  void setFileRecordName(QString* file_record_name);
95 
96  qint32 getUseReverseApi();
97  void setUseReverseApi(qint32 use_reverse_api);
98 
99  QString* getReverseApiAddress();
100  void setReverseApiAddress(QString* reverse_api_address);
101 
102  qint32 getReverseApiPort();
103  void setReverseApiPort(qint32 reverse_api_port);
104 
105  qint32 getReverseApiDeviceIndex();
106  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
107 
108 
109  virtual bool isSet() override;
110 
111 private:
114 
117 
118  qint32 sample_rate;
120 
121  qint32 log2_decim;
123 
124  qint32 fc_pos;
126 
129 
132 
135 
136  qint32 modulation;
138 
141 
144 
145  qint32 fm_deviation;
147 
148  float dc_factor;
150 
151  float i_factor;
153 
154  float q_factor;
156 
159 
162 
165 
168 
171 
174 
175 };
176 
177 }
178 
179 #endif /* SWGTestSourceSettings_H_ */
#define SWG_API
Definition: export.h:124