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.
SWGTestMiStreamSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGTestMiStreamSettings.h
15  *
16  * TestMiStreamSettings
17  */
18 
19 #ifndef SWGTestMiStreamSettings_H_
20 #define SWGTestMiStreamSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 
26 #include "SWGObject.h"
27 #include "export.h"
28 
29 namespace SWGSDRangel {
30 
32 public:
34  SWGTestMiStreamSettings(QString* json);
35  virtual ~SWGTestMiStreamSettings();
36  void init();
37  void cleanup();
38 
39  virtual QString asJson () override;
40  virtual QJsonObject* asJsonObject() override;
41  virtual void fromJsonObject(QJsonObject &json) override;
42  virtual SWGTestMiStreamSettings* fromJson(QString &jsonString) override;
43 
44  qint32 getStreamIndex();
45  void setStreamIndex(qint32 stream_index);
46 
47  qint32 getCenterFrequency();
48  void setCenterFrequency(qint32 center_frequency);
49 
50  qint32 getFrequencyShift();
51  void setFrequencyShift(qint32 frequency_shift);
52 
53  qint32 getSampleRate();
54  void setSampleRate(qint32 sample_rate);
55 
56  qint32 getLog2Decim();
57  void setLog2Decim(qint32 log2_decim);
58 
59  qint32 getFcPos();
60  void setFcPos(qint32 fc_pos);
61 
62  qint32 getSampleSizeIndex();
63  void setSampleSizeIndex(qint32 sample_size_index);
64 
65  qint32 getAmplitudeBits();
66  void setAmplitudeBits(qint32 amplitude_bits);
67 
68  qint32 getAutoCorrOptions();
69  void setAutoCorrOptions(qint32 auto_corr_options);
70 
71  qint32 getModulation();
72  void setModulation(qint32 modulation);
73 
74  qint32 getModulationTone();
75  void setModulationTone(qint32 modulation_tone);
76 
77  qint32 getAmModulation();
78  void setAmModulation(qint32 am_modulation);
79 
80  qint32 getFmDeviation();
81  void setFmDeviation(qint32 fm_deviation);
82 
83  float getDcFactor();
84  void setDcFactor(float dc_factor);
85 
86  float getIFactor();
87  void setIFactor(float i_factor);
88 
89  float getQFactor();
90  void setQFactor(float q_factor);
91 
92  float getPhaseImbalance();
93  void setPhaseImbalance(float phase_imbalance);
94 
95 
96  virtual bool isSet() override;
97 
98 private:
99  qint32 stream_index;
101 
104 
107 
108  qint32 sample_rate;
110 
111  qint32 log2_decim;
113 
114  qint32 fc_pos;
116 
119 
122 
125 
126  qint32 modulation;
128 
131 
134 
135  qint32 fm_deviation;
137 
138  float dc_factor;
140 
141  float i_factor;
143 
144  float q_factor;
146 
149 
150 };
151 
152 }
153 
154 #endif /* SWGTestMiStreamSettings_H_ */
#define SWG_API
Definition: export.h:124