18 #ifndef PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_SOAPYSDRINPUT_H_ 19 #define PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_SOAPYSDRINPUT_H_ 25 #include <QNetworkRequest> 32 class QNetworkAccessManager;
92 m_startStop(startStop)
111 m_startStop(startStop)
135 m_settings(settings),
136 m_globalGain(globalGain),
137 m_individualGains(individualGains)
143 virtual void destroy();
146 virtual bool start();
151 virtual QByteArray serialize()
const;
152 virtual bool deserialize(
const QByteArray& data);
155 virtual const QString& getDeviceDescription()
const;
156 virtual int getSampleRate()
const;
158 virtual quint64 getCenterFrequency()
const;
159 virtual void setCenterFrequency(qint64 centerFrequency);
161 virtual bool handleMessage(
const Message& message);
164 void getGlobalGainRange(
int& min,
int& max);
165 bool isAGCSupported();
166 const std::vector<std::string>& getAntennas();
167 const SoapySDR::RangeList& getRateRanges();
168 const SoapySDR::RangeList& getBandwidthRanges();
169 int getAntennaIndex(
const std::string& antenna);
170 const std::vector<DeviceSoapySDRParams::FrequencySetting>& getTunableElements();
171 const std::vector<DeviceSoapySDRParams::GainSetting>& getIndividualGainsRanges();
172 const SoapySDR::ArgInfoList& getStreamArgInfoList();
173 const SoapySDR::ArgInfoList& getDeviceArgInfoList();
178 bool hasDCAutoCorrection();
179 bool hasDCCorrectionValue();
181 bool hasIQCorrectionValue();
183 virtual int webapiSettingsGet(
185 QString& errorMessage);
187 virtual int webapiSettingsPutPatch(
189 const QStringList& deviceSettingsKeys,
191 QString& errorMessage);
193 virtual int webapiReportGet(
195 QString& errorMessage);
197 virtual int webapiRunGet(
199 QString& errorMessage);
201 virtual int webapiRun(
204 QString& errorMessage);
221 void moveThreadToBuddy();
223 bool setDeviceCenterFrequency(SoapySDR::Device *dev,
int requestedChannel, quint64 freq_hz,
int loPpmTenths);
225 void updateTunableElements(SoapySDR::Device *dev,
int requestedChannel,
SoapySDRInputSettings& settings);
231 void webapiReverseSendSettings(QList<QString>& deviceSettingsKeys,
const SoapySDRInputSettings& settings,
bool force);
232 void webapiReverseSendStartStop(
bool start);
235 void networkManagerFinished(QNetworkReply *reply);
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
#define MESSAGE_CLASS_DECLARATION
T max(const T &x, const T &y)
T min(const T &x, const T &y)
unsigned __int64 uint64_t