18 #ifndef PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUT_H_ 19 #define PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUT_H_ 24 #include <QNetworkRequest> 30 class QNetworkAccessManager;
78 m_startStop(startStop)
177 m_fifoFilledCount(fifoFilledCount),
178 m_fifoSize(fifoSize),
179 m_underrun(underrun),
181 m_droppedPackets(droppedPackets),
182 m_linkRate(linkRate),
183 m_timestamp(timestamp)
192 virtual bool start();
209 QString& errorMessage);
213 const QStringList& deviceSettingsKeys,
215 QString& errorMessage);
219 QString& errorMessage);
223 QString& errorMessage);
228 QString& errorMessage);
231 void getLORange(
float& minF,
float& maxF)
const;
232 void getSRRange(
float& minF,
float& maxF)
const;
233 void getLPRange(
float& minF,
float& maxF)
const;
LimeSDROutputThread * m_limeSDROutputThread
virtual quint64 getCenterFrequency() const
Center frequency exposed by the sink.
virtual QByteArray serialize() const
MsgReportStreamInfo(bool success, bool active, uint32_t fifoFilledCount, uint32_t fifoSize, uint32_t underrun, uint32_t overrun, uint32_t droppedPackets, float linkRate, uint64_t timestamp)
uint32_t getHWLog2Interp() const
DeviceLimeSDRShared m_deviceShared
uint32_t getFifoSize() const
void networkManagerFinished(QNetworkReply *reply)
virtual void setCenterFrequency(qint64 centerFrequency)
virtual int webapiSettingsPutPatch(bool force, const QStringList &deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
virtual int webapiRunGet(SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
static MsgGetDeviceInfo * create()
bool getStartStop() const
uint32_t getUnderrun() const
uint32_t getOverrun() const
MsgStartStop(bool startStop)
void webapiReverseSendStartStop(bool start)
QNetworkRequest m_networkRequest
uint32_t getDroppedPackets() const
float m_linkRate
Combined data rate of all stream of the same direction (TX or RX)
uint32_t m_fifoFilledCount
Number of samples in FIFO buffer.
virtual int webapiRun(bool run, SWGSDRangel::SWGDeviceState &response, QString &errorMessage)
bool m_active
Indicates whether the stream is currently active.
void webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport &response)
uint32_t m_underrun
FIFO underrun count.
void getSRRange(float &minF, float &maxF) const
bool applySettings(const LimeSDROutputSettings &settings, bool force=false, bool forceNCOFrequency=false)
std::size_t getChannelIndex()
void getLPRange(float &minF, float &maxF) const
virtual int getSampleRate() const
Sample rate exposed by the sink.
virtual void init()
initializations to be done when all collaborating objects are created and possibly connected ...
uint32_t m_fifoSize
Size of FIFO buffer.
void getLORange(float &minF, float &maxF) const
#define MESSAGE_CLASS_DECLARATION
static MsgStartStop * create(bool startStop)
void webapiReverseSendSettings(QList< QString > &deviceSettingsKeys, const LimeSDROutputSettings &settings, bool force)
virtual int webapiReportGet(SWGSDRangel::SWGDeviceReport &response, QString &errorMessage)
float getLinkRate() const
virtual bool deserialize(const QByteArray &data)
LimeSDROutput(DeviceAPI *deviceAPI)
static MsgGetStreamInfo * create()
uint64_t getTimestamp() const
uint64_t m_timestamp
Current HW timestamp.
uint32_t m_overrun
FIFO overrun count.
static MsgReportStreamInfo * create(bool success, bool active, uint32_t fifoFilledCount, uint32_t fifoSize, uint32_t underrun, uint32_t overrun, uint32_t droppedPackets, float linkRate, uint64_t timestamp)
virtual bool handleMessage(const Message &message)
QNetworkAccessManager * m_networkManager
virtual void setSampleRate(int sampleRate)
For when the sink sample rate is set externally.
DeviceLimeSDRParams::LimeType getLimeType() const
LimeSDROutputSettings m_settings
virtual void setMessageQueueToGUI(MessageQueue *queue)
virtual const QString & getDeviceDescription() const
uint32_t m_droppedPackets
Number of dropped packets by HW.
MessageQueue * m_guiMessageQueue
Input message queue to the GUI.
QString m_deviceDescription
virtual int webapiSettingsGet(SWGSDRangel::SWGDeviceSettings &response, QString &errorMessage)
void webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings &response, const LimeSDROutputSettings &settings)
uint32_t getFifoFilledCount() const
unsigned __int64 uint64_t