18 #ifndef PLUGINS_SAMPLESINK_XTRXOUTPUT_XTRXOUTPUT_H_ 19 #define PLUGINS_SAMPLESINK_XTRXOUTPUT_XTRXOUTPUT_H_ 24 #include <QNetworkRequest> 30 class QNetworkAccessManager;
149 m_fifoFilledCount(fifoFilledCount),
169 m_startStop(startStop)
178 virtual bool start();
200 QString& errorMessage);
204 const QStringList& deviceSettingsKeys,
206 QString& errorMessage);
210 QString& errorMessage);
214 QString& errorMessage);
219 QString& errorMessage);
222 void getLORange(
float& minF,
float& maxF,
float& stepF)
const;
223 void getSRRange(
float& minF,
float& maxF,
float& stepF)
const;
224 void getLPRange(
float& minF,
float& maxF,
float& stepF)
const;
virtual QByteArray serialize() const
double getClockGen() const
uint32_t getLog2HardInterp() const
void webapiReverseSendSettings(QList< QString > &deviceSettingsKeys, const XTRXOutputSettings &settings, bool force)
static MsgGetDeviceInfo * create()
virtual bool deserialize(const QByteArray &data)
XTRXOutput(DeviceAPI *deviceAPI)
virtual int getSampleRate() const
Sample rate exposed by the sink.
void getLPRange(float &minF, float &maxF, float &stepF) const
virtual int webapiRun(bool run, SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
void setThread(XTRXOutputThread *thread)
virtual quint64 getCenterFrequency() const
Center frequency exposed by the sink.
uint32_t getDevSampleRate() const
static MsgGetStreamInfo * create()
XTRXOutputThread * getThread()
static MsgReportClockGenChange * create()
std::size_t getChannelIndex()
virtual int webapiSettingsGet(SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
DeviceXTRXShared m_deviceShared
virtual void init()
initializations to be done when all collaborating objects are created and possibly connected ...
XTRXOutputThread * m_XTRXOutputThread
uint32_t m_fifoSize
Size of FIFO buffer.
QNetworkAccessManager * m_networkManager
QString m_deviceDescription
virtual int webapiReportGet(SWGSDRangel::SWGDeviceReport &response, QString &errorMessage)
#define MESSAGE_CLASS_DECLARATION
MsgReportStreamInfo(bool success, bool active, uint32_t fifoFilledCount, uint32_t fifoSize)
virtual bool handleMessage(const Message &message)
static MsgReportStreamInfo * create(bool success, bool active, uint32_t fifoFilledCount, uint32_t fifoSize)
XTRXOutputThread * findThread()
virtual int webapiSettingsPutPatch(bool force, const QStringList &deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
virtual void setSampleRate(int sampleRate)
For when the sink sample rate is set externally.
XTRXOutputSettings m_settings
void webapiReverseSendStartStop(bool start)
virtual int webapiRunGet(SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
bool m_active
Indicates whether the stream is currently active.
uint32_t m_fifoFilledCount
Number of samples in FIFO buffer.
uint32_t getFifoSize() const
bool getStartStop() const
void networkManagerFinished(QNetworkReply *reply)
void webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings &response, const XTRXOutputSettings &settings)
bool applySettings(const XTRXOutputSettings &settings, bool force=false, bool forceNCOFrequency=false)
virtual void setCenterFrequency(qint64 centerFrequency)
void webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport &response)
virtual void setMessageQueueToGUI(MessageQueue *queue)
static MsgStartStop * create(bool startStop)
void getLORange(float &minF, float &maxF, float &stepF) const
QNetworkRequest m_networkRequest
void getSRRange(float &minF, float &maxF, float &stepF) const
MessageQueue * m_guiMessageQueue
Input message queue to the GUI.
MsgReportClockGenChange()
uint32_t getFifoFilledCount() const
virtual const QString & getDeviceDescription() const
MsgStartStop(bool startStop)