18 #ifndef PLUGINS_SAMPLESINK_BLADERF2OUTPUT_BLADERF2OUTPUT_H_ 19 #define PLUGINS_SAMPLESINK_BLADERF2OUTPUT_BLADERF2OUTPUT_H_ 22 #include <QNetworkRequest> 24 #include <libbladeRF.h> 30 class QNetworkAccessManager;
34 struct bladerf_gain_modes;
77 m_startStop(startStop)
111 virtual bool start();
135 QString& errorMessage);
139 const QStringList& deviceSettingsKeys,
141 QString& errorMessage);
145 QString& errorMessage);
149 QString& errorMessage);
154 QString& errorMessage);
QNetworkRequest m_networkRequest
virtual int webapiSettingsPutPatch(bool force, const QStringList &deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
void networkManagerFinished(QNetworkReply *reply)
virtual const QString & getDeviceDescription() const
BladeRF2OutputThread * m_thread
bool getStartStop() const
void webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport &response)
virtual void init()
initializations to be done when all collaborating objects are created and possibly connected ...
void webapiReverseSendStartStop(bool start)
virtual void setSampleRate(int sampleRate)
For when the sink sample rate is set externally.
virtual int getSampleRate() const
Sample rate exposed by the sink.
void getBandwidthRange(int &min, int &max, int &step)
bool setDeviceCenterFrequency(struct bladerf *dev, int requestedChannel, quint64 freq_hz, int loPpmTenths)
virtual int webapiReportGet(SWGSDRangel::SWGDeviceReport &response, QString &errorMessage)
virtual bool deserialize(const QByteArray &data)
#define MESSAGE_CLASS_DECLARATION
virtual int webapiSettingsGet(SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
DeviceBladeRF2Shared m_deviceShared
MsgStartStop(bool startStop)
virtual int webapiRun(bool run, SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
QString m_deviceDescription
virtual int webapiRunGet(SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
static MsgStartStop * create(bool startStop)
virtual void setMessageQueueToGUI(MessageQueue *queue)
virtual QByteArray serialize() const
static MsgReportGainRange * create(int min, int max, int step)
BladeRF2OutputSettings m_settings
void webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings &response, const BladeRF2OutputSettings &settings)
virtual bool handleMessage(const Message &message)
BladeRF2Output(DeviceAPI *deviceAPI)
void setThread(BladeRF2OutputThread *thread)
void getGlobalGainRange(int &min, int &max, int &step)
virtual void setCenterFrequency(qint64 centerFrequency)
MsgReportGainRange(int min, int max, int step)
void getFrequencyRange(uint64_t &min, uint64_t &max, int &step)
BladeRF2OutputThread * getThread()
void getSampleRateRange(int &min, int &max, int &step)
virtual ~BladeRF2Output()
virtual quint64 getCenterFrequency() const
Center frequency exposed by the sink.
QNetworkAccessManager * m_networkManager
void webapiReverseSendSettings(QList< QString > &deviceSettingsKeys, const BladeRF2OutputSettings &settings, bool force)
MessageQueue * m_guiMessageQueue
Input message queue to the GUI.
T max(const T &x, const T &y)
BladeRF2OutputThread * findThread()
bool applySettings(const BladeRF2OutputSettings &settings, bool force)
T min(const T &x, const T &y)
unsigned __int64 uint64_t