18 #ifndef PLUGINS_SAMPLESINK_SOAPYSDROUTPUT_SOAPYSDROUTPUT_H_ 19 #define PLUGINS_SAMPLESINK_SOAPYSDROUTPUT_SOAPYSDROUTPUT_H_ 25 #include <QNetworkRequest> 32 class QNetworkAccessManager;
96 m_globalGain(globalGain),
97 m_individualGains(individualGains)
116 m_startStop(startStop)
122 virtual void destroy();
125 virtual bool start();
130 virtual QByteArray serialize()
const;
131 virtual bool deserialize(
const QByteArray& data);
134 virtual const QString& getDeviceDescription()
const;
135 virtual int getSampleRate()
const;
137 virtual quint64 getCenterFrequency()
const;
138 virtual void setCenterFrequency(qint64 centerFrequency);
140 virtual bool handleMessage(
const Message& message);
143 void getGlobalGainRange(
int& min,
int& max);
144 bool isAGCSupported();
145 const SoapySDR::RangeList& getRateRanges();
146 const std::vector<std::string>& getAntennas();
147 const SoapySDR::RangeList& getBandwidthRanges();
148 const std::vector<DeviceSoapySDRParams::FrequencySetting>& getTunableElements();
149 const std::vector<DeviceSoapySDRParams::GainSetting>& getIndividualGainsRanges();
150 const SoapySDR::ArgInfoList& getStreamArgInfoList();
151 const SoapySDR::ArgInfoList& getDeviceArgInfoList();
156 bool hasDCAutoCorrection();
157 bool hasDCCorrectionValue();
159 bool hasIQCorrectionValue();
161 virtual int webapiSettingsGet(
163 QString& errorMessage);
165 virtual int webapiSettingsPutPatch(
167 const QStringList& deviceSettingsKeys,
169 QString& errorMessage);
171 virtual int webapiReportGet(
173 QString& errorMessage);
175 virtual int webapiRunGet(
177 QString& errorMessage);
179 virtual int webapiRun(
182 QString& errorMessage);
198 void moveThreadToBuddy();
200 bool setDeviceCenterFrequency(SoapySDR::Device *dev,
int requestedChannel, quint64 freq_hz,
int loPpmTenths);
202 void updateTunableElements(SoapySDR::Device *dev,
int requestedChannel,
SoapySDROutputSettings& settings);
208 void webapiReverseSendSettings(QList<QString>& deviceSettingsKeys,
const SoapySDROutputSettings& settings,
bool force);
209 void webapiReverseSendStartStop(
bool start);
212 void networkManagerFinished(QNetworkReply *reply);
virtual void setMessageQueueToGUI(MessageQueue *queue)
bool hasIQAutoCorrection()
bool getIndividualGains() const
SoapySDROutputThread * getThread()
QNetworkRequest m_networkRequest
MsgReportGainChange(const SoapySDROutputSettings &settings, bool globalGain, bool individualGains)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
QString m_deviceDescription
const SoapySDROutputSettings & getSettings() const
SoapySDROutputSettings m_settings
#define MESSAGE_CLASS_DECLARATION
bool getGlobalGain() const
virtual void setSampleRate(int sampleRate)
For when the sink sample rate is set externally.
bool getStartStop() const
SoapySDROutputSettings m_settings
DeviceSoapySDRShared m_deviceShared
static MsgStartStop * create(bool startStop)
MsgStartStop(bool startStop)
QNetworkAccessManager * m_networkManager
void setThread(SoapySDROutputThread *thread)
static MsgReportGainChange * create(const SoapySDROutputSettings &settings, bool globalGain, bool individualGains)
T max(const T &x, const T &y)
SoapySDROutputThread * m_thread
T min(const T &x, const T &y)
unsigned __int64 uint64_t