SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
PlutoSDRInputGui Class Reference

#include <plutosdrinputgui.h>

+ Inheritance diagram for PlutoSDRInputGui:
+ Collaboration diagram for PlutoSDRInputGui:

Public Member Functions

 PlutoSDRInputGui (DeviceUISet *deviceUISet, QWidget *parent=0)
 
virtual ~PlutoSDRInputGui ()
 
virtual void destroy ()
 
virtual void setName (const QString &name)
 
virtual QString getName () const
 
virtual void resetToDefaults ()
 
virtual qint64 getCenterFrequency () const
 
virtual void setCenterFrequency (qint64 centerFrequency)
 
virtual QByteArray serialize () const
 
virtual bool deserialize (const QByteArray &data)
 
virtual MessageQueuegetInputMessageQueue ()
 
virtual bool handleMessage (const Message &message)
 
- Public Member Functions inherited from PluginInstanceGUI
 PluginInstanceGUI ()
 
virtual ~PluginInstanceGUI ()
 

Private Slots

void on_startStop_toggled (bool checked)
 
void on_record_toggled (bool checked)
 
void on_centerFrequency_changed (quint64 value)
 
void on_loPPM_valueChanged (int value)
 
void on_dcOffset_toggled (bool checked)
 
void on_rfDCOffset_toggled (bool checked)
 
void on_bbDCOffset_toggled (bool checked)
 
void on_hwIQImbalance_toggled (bool checked)
 
void on_iqImbalance_toggled (bool checked)
 
void on_swDecim_currentIndexChanged (int index)
 
void on_fcPos_currentIndexChanged (int index)
 
void on_sampleRate_changed (quint64 value)
 
void on_lpf_changed (quint64 value)
 
void on_lpFIREnable_toggled (bool checked)
 
void on_lpFIR_changed (quint64 value)
 
void on_lpFIRDecimation_currentIndexChanged (int index)
 
void on_lpFIRGain_currentIndexChanged (int index)
 
void on_gainMode_currentIndexChanged (int index)
 
void on_gain_valueChanged (int value)
 
void on_antenna_currentIndexChanged (int index)
 
void on_transverter_clicked ()
 
void on_sampleRateMode_toggled (bool checked)
 
void updateHardware ()
 
void updateStatus ()
 
void handleInputMessages ()
 
void openDeviceSettingsDialog (const QPoint &p)
 

Private Member Functions

void displaySettings ()
 
void displaySampleRate ()
 
void displayFcTooltip ()
 
void sendSettings (bool forceSettings=false)
 
void blockApplySettings (bool block)
 
void updateSampleRateAndFrequency ()
 
void setFIRBWLimits ()
 
void setSampleRateLimits ()
 
void updateFrequencyLimits ()
 

Private Attributes

Ui::PlutoSDRInputGUI * ui
 
DeviceUISetm_deviceUISet
 
PlutoSDRInputSettings m_settings
 
bool m_sampleRateMode
 true: device, false: base band sample rate update mode More...
 
bool m_forceSettings
 
QTimer m_updateTimer
 
QTimer m_statusTimer
 
DeviceSampleSourcem_sampleSource
 
int m_sampleRate
 
quint64 m_deviceCenterFrequency
 Center frequency in device. More...
 
int m_lastEngineState
 
bool m_doApplySettings
 
uint32_t m_statusCounter
 
MessageQueue m_inputMessageQueue
 

Detailed Description

Definition at line 38 of file plutosdrinputgui.h.

Constructor & Destructor Documentation

◆ PlutoSDRInputGui()

PlutoSDRInputGui::PlutoSDRInputGui ( DeviceUISet deviceUISet,
QWidget *  parent = 0 
)
explicit

Definition at line 34 of file plutosdrinputgui.cpp.

References blockApplySettings(), displaySettings(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), DeviceSampleSource::setMessageQueueToGUI(), DevicePlutoSDR::srHighLimitFreq, DevicePlutoSDR::srLowLimitFreq, ui, updateFrequencyLimits(), updateHardware(), and updateStatus().

34  :
35  QWidget(parent),
36  ui(new Ui::PlutoSDRInputGUI),
37  m_deviceUISet(deviceUISet),
38  m_settings(),
39  m_sampleRateMode(true),
40  m_forceSettings(true),
41  m_sampleSource(NULL),
42  m_sampleRate(0),
45  m_doApplySettings(true),
47 {
49 
50  ui->setupUi(this);
51  ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
53 
54  ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
56 
57  ui->lpf->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
58 
59  quint32 minLimit, maxLimit;
60  ((PlutoSDRInput *) m_sampleSource)->getbbLPRange(minLimit, maxLimit);
61  ui->lpf->setValueRange(5, minLimit/1000, maxLimit/1000);
62 
63  ui->lpFIR->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
64  ui->lpFIR->setValueRange(5, 1U, 56000U); // will be dynamically recalculated
65 
66  ui->swDecimLabel->setText(QString::fromUtf8("S\u2193"));
67  ui->lpFIRDecimationLabel->setText(QString::fromUtf8("\u2193"));
68 
69  CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop);
70  connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &)));
71 
72  blockApplySettings(true);
74  blockApplySettings(false);
75 
76  connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
77  connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
78  m_statusTimer.start(500);
79 
80  connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection);
82 }
static const uint32_t srHighLimitFreq
Device sample rate higher limit in S/s.
DeviceSampleSource * getSampleSource()
Return pointer to the device sample source (single Rx) or nullptr.
Definition: deviceapi.cpp:213
void openDeviceSettingsDialog(const QPoint &p)
void blockApplySettings(bool block)
DeviceSampleSource * m_sampleSource
Ui::PlutoSDRInputGUI * ui
static const uint32_t srLowLimitFreq
Device sample rate lower limit in S/s.
engine is before initialization
Definition: deviceapi.h:53
uint32_t m_statusCounter
bool m_sampleRateMode
true: device, false: base band sample rate update mode
DeviceAPI * m_deviceAPI
Definition: deviceuiset.h:48
MessageQueue m_inputMessageQueue
DeviceUISet * m_deviceUISet
PlutoSDRInputSettings m_settings
virtual void setMessageQueueToGUI(MessageQueue *queue)=0
quint64 m_deviceCenterFrequency
Center frequency in device.
+ Here is the call graph for this function:

◆ ~PlutoSDRInputGui()

PlutoSDRInputGui::~PlutoSDRInputGui ( )
virtual

Definition at line 84 of file plutosdrinputgui.cpp.

References ui.

85 {
86  delete ui;
87 }
Ui::PlutoSDRInputGUI * ui

Member Function Documentation

◆ blockApplySettings()

void PlutoSDRInputGui::blockApplySettings ( bool  block)
private

Definition at line 446 of file plutosdrinputgui.cpp.

References m_doApplySettings.

Referenced by deserialize(), handleMessage(), and PlutoSDRInputGui().

447 {
448  m_doApplySettings = !block;
449 }
+ Here is the caller graph for this function:

◆ deserialize()

bool PlutoSDRInputGui::deserialize ( const QByteArray &  data)
virtual

Implements PluginInstanceGUI.

Definition at line 126 of file plutosdrinputgui.cpp.

References blockApplySettings(), PlutoSDRInputSettings::deserialize(), displaySettings(), m_settings, resetToDefaults(), and sendSettings().

127 {
128  if(m_settings.deserialize(data))
129  {
130  blockApplySettings(true);
131  displaySettings();
132  blockApplySettings(false);
133  sendSettings(true);
134  return true;
135  }
136  else
137  {
138  resetToDefaults();
139  return false;
140  }
141 }
void blockApplySettings(bool block)
void sendSettings(bool forceSettings=false)
bool deserialize(const QByteArray &data)
virtual void resetToDefaults()
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ destroy()

void PlutoSDRInputGui::destroy ( )
virtual

Implements PluginInstanceGUI.

Definition at line 89 of file plutosdrinputgui.cpp.

90 {
91  delete this;
92 }

◆ displayFcTooltip()

void PlutoSDRInputGui::displayFcTooltip ( )
private

Definition at line 379 of file plutosdrinputgui.cpp.

References arg(), DeviceSampleSource::calculateFrequencyShift(), PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_fcPos, PlutoSDRInputSettings::m_log2Decim, m_settings, and ui.

Referenced by displaySampleRate(), on_fcPos_currentIndexChanged(), and on_sampleRate_changed().

380 {
385  DeviceSampleSource::FrequencyShiftScheme::FSHIFT_STD
386  );
387  ui->fcPos->setToolTip(tr("Relative position of device center frequency: %1 kHz").arg(QString::number(fShift / 1000.0f, 'g', 5)));
388 }
static qint32 calculateFrequencyShift(int log2Decim, fcPos_t fcPos, quint32 devSampleRate, FrequencyShiftScheme frequencyShiftScheme)
Ui::PlutoSDRInputGUI * ui
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
quint64 m_devSampleRate
Host interface sample rate.
int int32_t
Definition: rtptypes_win.h:45
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ displaySampleRate()

void PlutoSDRInputGui::displaySampleRate ( )
private

Definition at line 349 of file plutosdrinputgui.cpp.

References arg(), displayFcTooltip(), PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_log2Decim, m_sampleRateMode, m_settings, DevicePlutoSDR::srHighLimitFreq, DevicePlutoSDR::srLowLimitFreq, and ui.

Referenced by displaySettings(), on_sampleRateMode_toggled(), on_swDecim_currentIndexChanged(), and updateSampleRateAndFrequency().

350 {
351  ui->sampleRate->blockSignals(true);
353 
354  if (m_sampleRateMode)
355  {
356  ui->sampleRateMode->setStyleSheet("QToolButton { background:rgb(60,60,60); }");
357  ui->sampleRateMode->setText("SR");
358  ui->sampleRate->setValueRange(8, DevicePlutoSDR::srLowLimitFreq, DevicePlutoSDR::srHighLimitFreq);
359  ui->sampleRate->setValue(m_settings.m_devSampleRate);
360  ui->sampleRate->setToolTip("Device to host sample rate (S/s)");
361  ui->deviceRateText->setToolTip("Baseband sample rate (S/s)");
362  uint32_t basebandSampleRate = m_settings.m_devSampleRate/(1<<m_settings.m_log2Decim);
363  ui->deviceRateText->setText(tr("%1k").arg(QString::number(basebandSampleRate / 1000.0f, 'g', 5)));
364  }
365  else
366  {
367  ui->sampleRateMode->setStyleSheet("QToolButton { background:rgb(50,50,50); }");
368  ui->sampleRateMode->setText("BB");
370  ui->sampleRate->setValue(m_settings.m_devSampleRate/(1<<m_settings.m_log2Decim));
371  ui->sampleRate->setToolTip("Baseband sample rate (S/s)");
372  ui->deviceRateText->setToolTip("Device to host sample rate (S/s)");
373  ui->deviceRateText->setText(tr("%1k").arg(QString::number(m_settings.m_devSampleRate / 1000.0f, 'g', 5)));
374  }
375 
376  ui->sampleRate->blockSignals(false);
377 }
static const uint32_t srHighLimitFreq
Device sample rate higher limit in S/s.
Ui::PlutoSDRInputGUI * ui
unsigned int uint32_t
Definition: rtptypes_win.h:46
static const uint32_t srLowLimitFreq
Device sample rate lower limit in S/s.
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
bool m_sampleRateMode
true: device, false: base band sample rate update mode
quint64 m_devSampleRate
Host interface sample rate.
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ displaySettings()

void PlutoSDRInputGui::displaySettings ( )
private

Definition at line 390 of file plutosdrinputgui.cpp.

References arg(), displaySampleRate(), PlutoSDRInputSettings::m_antennaPath, PlutoSDRInputSettings::m_centerFrequency, PlutoSDRInputSettings::m_dcBlock, PlutoSDRInputSettings::m_fcPos, PlutoSDRInputSettings::m_gain, PlutoSDRInputSettings::m_gainMode, PlutoSDRInputSettings::m_hwBBDCBlock, PlutoSDRInputSettings::m_hwIQCorrection, PlutoSDRInputSettings::m_hwRFDCBlock, PlutoSDRInputSettings::m_iqCorrection, PlutoSDRInputSettings::m_log2Decim, PlutoSDRInputSettings::m_LOppmTenths, PlutoSDRInputSettings::m_lpfBW, PlutoSDRInputSettings::m_lpfFIRBW, PlutoSDRInputSettings::m_lpfFIREnable, PlutoSDRInputSettings::m_lpfFIRGain, PlutoSDRInputSettings::m_lpfFIRlog2Decim, m_settings, PlutoSDRInputSettings::m_transverterDeltaFrequency, PlutoSDRInputSettings::m_transverterMode, setFIRBWLimits(), setSampleRateLimits(), ui, and updateFrequencyLimits().

Referenced by deserialize(), handleMessage(), PlutoSDRInputGui(), and setCenterFrequency().

391 {
392  ui->transverter->setDeltaFrequency(m_settings.m_transverterDeltaFrequency);
393  ui->transverter->setDeltaFrequencyActive(m_settings.m_transverterMode);
395  ui->centerFrequency->setValue(m_settings.m_centerFrequency / 1000);
397 
398  ui->dcOffset->setChecked(m_settings.m_dcBlock);
399  ui->iqImbalance->setChecked(m_settings.m_iqCorrection);
400  ui->bbDCOffset->setChecked(m_settings.m_hwBBDCBlock);
401  ui->rfDCOffset->setChecked(m_settings.m_hwRFDCBlock);
402  ui->hwIQImbalance->setChecked(m_settings.m_hwIQCorrection);
403  ui->loPPM->setValue(m_settings.m_LOppmTenths);
404  ui->loPPMText->setText(QString("%1").arg(QString::number(m_settings.m_LOppmTenths/10.0, 'f', 1)));
405 
406  ui->swDecim->setCurrentIndex(m_settings.m_log2Decim);
407  ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
408 
409  ui->lpf->setValue(m_settings.m_lpfBW / 1000);
410 
411  ui->lpFIREnable->setChecked(m_settings.m_lpfFIREnable);
412  ui->lpFIR->setValue(m_settings.m_lpfFIRBW / 1000);
413  ui->lpFIRDecimation->setCurrentIndex(m_settings.m_lpfFIRlog2Decim);
414  ui->lpFIRGain->setCurrentIndex((m_settings.m_lpfFIRGain + 12)/6);
415  ui->lpFIRDecimation->setEnabled(m_settings.m_lpfFIREnable);
416  ui->lpFIRGain->setEnabled(m_settings.m_lpfFIREnable);
417 
418  ui->gainMode->setCurrentIndex((int) m_settings.m_gainMode);
419  ui->gain->setValue(m_settings.m_gain);
420  ui->gainText->setText(tr("%1").arg(m_settings.m_gain));
421 
422  ui->antenna->setCurrentIndex((int) m_settings.m_antennaPath);
423 
424  setFIRBWLimits();
426 }
bool m_lpfFIREnable
enable digital lowpass FIR filter
quint32 m_lpfFIRlog2Decim
digital lowpass FIR filter log2 of decimation factor (0..2)
bool m_hwRFDCBlock
Hardware RF DC blocking.
Ui::PlutoSDRInputGUI * ui
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
bool m_hwIQCorrection
Hardware IQ correction.
quint32 m_lpfBW
analog lowpass filter bandwidth (Hz)
quint32 m_gain
"hardware" gain
qint32 m_LOppmTenths
XO correction.
PlutoSDRInputSettings m_settings
bool m_hwBBDCBlock
Hardware baseband DC blocking.
quint32 m_lpfFIRBW
digital lowpass FIR filter bandwidth (Hz)
int m_lpfFIRGain
digital lowpass FIR filter gain (dB)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCenterFrequency()

qint64 PlutoSDRInputGui::getCenterFrequency ( ) const
virtual

Implements PluginInstanceGUI.

Definition at line 109 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_centerFrequency, and m_settings.

110 {
112 }
PlutoSDRInputSettings m_settings

◆ getInputMessageQueue()

virtual MessageQueue* PlutoSDRInputGui::getInputMessageQueue ( )
inlinevirtual

Implements PluginInstanceGUI.

Definition at line 53 of file plutosdrinputgui.h.

53 { return &m_inputMessageQueue; }
MessageQueue m_inputMessageQueue

◆ getName()

QString PlutoSDRInputGui::getName ( ) const
virtual

Implements PluginInstanceGUI.

Definition at line 99 of file plutosdrinputgui.cpp.

100 {
101  return objectName();
102 }

◆ handleInputMessages

void PlutoSDRInputGui::handleInputMessages ( )
privateslot

Definition at line 545 of file plutosdrinputgui.cpp.

References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), setFIRBWLimits(), and updateSampleRateAndFrequency().

Referenced by PlutoSDRInputGui().

546 {
547  Message* message;
548 
549  while ((message = m_inputMessageQueue.pop()) != 0)
550  {
551  qDebug("PlutoSDRInputGui::handleInputMessages: message: %s", message->getIdentifier());
552 
553  if (DSPSignalNotification::match(*message))
554  {
555  DSPSignalNotification* notif = (DSPSignalNotification*) message;
556  m_sampleRate = notif->getSampleRate();
558  qDebug("PlutoSDRInputGui::handleInputMessages: DSPSignalNotification: SampleRate: %d, CenterFrequency: %llu", notif->getSampleRate(), notif->getCenterFrequency());
560  setFIRBWLimits();
561 
562  delete message;
563  }
564  else
565  {
566  if (handleMessage(*message))
567  {
568  delete message;
569  }
570  }
571  }
572 }
Message * pop()
Pop message from queue.
qint64 getCenterFrequency() const
Definition: dspcommands.h:329
void updateSampleRateAndFrequency()
static bool match(const Message *message)
Definition: message.cpp:45
MessageQueue m_inputMessageQueue
int getSampleRate() const
Definition: dspcommands.h:328
virtual const char * getIdentifier() const
Definition: message.cpp:35
virtual bool handleMessage(const Message &message)
quint64 m_deviceCenterFrequency
Center frequency in device.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleMessage()

bool PlutoSDRInputGui::handleMessage ( const Message message)
virtual

Implements PluginInstanceGUI.

Definition at line 143 of file plutosdrinputgui.cpp.

References blockApplySettings(), displaySettings(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getDevSampleRate(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getLoPPMTenths(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getLpfFirbw(), DevicePlutoSDRShared::MsgCrossReportToBuddy::getLpfFiRlog2IntDec(), PlutoSDRInput::MsgConfigurePlutoSDR::getSettings(), PlutoSDRInput::MsgStartStop::getStartStop(), DevicePlutoSDRShared::MsgCrossReportToBuddy::isLpfFirEnable(), PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_LOppmTenths, PlutoSDRInputSettings::m_lpfFIRBW, PlutoSDRInputSettings::m_lpfFIREnable, PlutoSDRInputSettings::m_lpfFIRlog2Decim, m_settings, Message::match(), and ui.

Referenced by handleInputMessages().

144 {
146  {
148  m_settings = cfg.getSettings();
149  blockApplySettings(true);
150  displaySettings();
151  blockApplySettings(false);
152  return true;
153  }
154  else if (PlutoSDRInput::MsgStartStop::match(message))
155  {
157  blockApplySettings(true);
158  ui->startStop->setChecked(notif.getStartStop());
159  blockApplySettings(false);
160 
161  return true;
162  }
163  else if (DevicePlutoSDRShared::MsgCrossReportToBuddy::match(message)) // message from buddy
164  {
171  blockApplySettings(true);
172  displaySettings();
173  blockApplySettings(false);
174 
175  return true;
176  }
177  else
178  {
179  return false;
180  }
181 }
bool m_lpfFIREnable
enable digital lowpass FIR filter
quint32 m_lpfFIRlog2Decim
digital lowpass FIR filter log2 of decimation factor (0..2)
void blockApplySettings(bool block)
Ui::PlutoSDRInputGUI * ui
quint64 m_devSampleRate
Host interface sample rate.
static bool match(const Message *message)
Definition: message.cpp:45
qint32 m_LOppmTenths
XO correction.
const PlutoSDRInputSettings & getSettings() const
Definition: plutosdrinput.h:45
PlutoSDRInputSettings m_settings
quint32 m_lpfFIRBW
digital lowpass FIR filter bandwidth (Hz)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_antenna_currentIndexChanged

void PlutoSDRInputGui::on_antenna_currentIndexChanged ( int  index)
privateslot

◆ on_bbDCOffset_toggled

void PlutoSDRInputGui::on_bbDCOffset_toggled ( bool  checked)
privateslot

Definition at line 235 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_hwBBDCBlock, m_settings, and sendSettings().

236 {
237  m_settings.m_hwBBDCBlock = checked;
238  sendSettings();
239 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
bool m_hwBBDCBlock
Hardware baseband DC blocking.
+ Here is the call graph for this function:

◆ on_centerFrequency_changed

void PlutoSDRInputGui::on_centerFrequency_changed ( quint64  value)
privateslot

Definition at line 204 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_centerFrequency, m_settings, and sendSettings().

205 {
206  m_settings.m_centerFrequency = value * 1000;
207  sendSettings();
208 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_dcOffset_toggled

void PlutoSDRInputGui::on_dcOffset_toggled ( bool  checked)
privateslot

Definition at line 217 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_dcBlock, m_settings, and sendSettings().

218 {
219  m_settings.m_dcBlock = checked;
220  sendSettings();
221 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_fcPos_currentIndexChanged

void PlutoSDRInputGui::on_fcPos_currentIndexChanged ( int  index)
privateslot

◆ on_gain_valueChanged

void PlutoSDRInputGui::on_gain_valueChanged ( int  value)
privateslot

Definition at line 320 of file plutosdrinputgui.cpp.

References arg(), PlutoSDRInputSettings::m_gain, m_settings, sendSettings(), and ui.

321 {
322  ui->gainText->setText(tr("%1").arg(value));
323  m_settings.m_gain = value;
324  sendSettings();
325 }
Ui::PlutoSDRInputGUI * ui
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
void sendSettings(bool forceSettings=false)
quint32 m_gain
"hardware" gain
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_gainMode_currentIndexChanged

void PlutoSDRInputGui::on_gainMode_currentIndexChanged ( int  index)
privateslot

◆ on_hwIQImbalance_toggled

void PlutoSDRInputGui::on_hwIQImbalance_toggled ( bool  checked)
privateslot

Definition at line 241 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_hwIQCorrection, m_settings, and sendSettings().

242 {
243  m_settings.m_hwIQCorrection = checked;
244  sendSettings();
245 }
bool m_hwIQCorrection
Hardware IQ correction.
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_iqImbalance_toggled

void PlutoSDRInputGui::on_iqImbalance_toggled ( bool  checked)
privateslot

Definition at line 223 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_iqCorrection, m_settings, and sendSettings().

224 {
225  m_settings.m_iqCorrection = checked;
226  sendSettings();
227 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_loPPM_valueChanged

void PlutoSDRInputGui::on_loPPM_valueChanged ( int  value)
privateslot

Definition at line 210 of file plutosdrinputgui.cpp.

References arg(), PlutoSDRInputSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.

211 {
212  ui->loPPMText->setText(QString("%1").arg(QString::number(value/10.0, 'f', 1)));
213  m_settings.m_LOppmTenths = value;
214  sendSettings();
215 }
Ui::PlutoSDRInputGUI * ui
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
void sendSettings(bool forceSettings=false)
qint32 m_LOppmTenths
XO correction.
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_lpf_changed

void PlutoSDRInputGui::on_lpf_changed ( quint64  value)
privateslot

Definition at line 280 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_lpfBW, m_settings, and sendSettings().

281 {
282  m_settings.m_lpfBW = value * 1000;
283  sendSettings();
284 }
void sendSettings(bool forceSettings=false)
quint32 m_lpfBW
analog lowpass filter bandwidth (Hz)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_lpFIR_changed

void PlutoSDRInputGui::on_lpFIR_changed ( quint64  value)
privateslot

Definition at line 294 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_lpfFIRBW, m_settings, and sendSettings().

295 {
296  m_settings.m_lpfFIRBW = value * 1000;
297  sendSettings();
298 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
quint32 m_lpfFIRBW
digital lowpass FIR filter bandwidth (Hz)
+ Here is the call graph for this function:

◆ on_lpFIRDecimation_currentIndexChanged

void PlutoSDRInputGui::on_lpFIRDecimation_currentIndexChanged ( int  index)
privateslot

Definition at line 300 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_lpfFIRlog2Decim, m_settings, sendSettings(), and setSampleRateLimits().

301 {
302  m_settings.m_lpfFIRlog2Decim = index > 2 ? 2 : index;
304  sendSettings();
305 }
quint32 m_lpfFIRlog2Decim
digital lowpass FIR filter log2 of decimation factor (0..2)
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_lpFIREnable_toggled

void PlutoSDRInputGui::on_lpFIREnable_toggled ( bool  checked)
privateslot

Definition at line 286 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_lpfFIREnable, m_settings, sendSettings(), and ui.

287 {
288  m_settings.m_lpfFIREnable = checked;
289  ui->lpFIRDecimation->setEnabled(checked);
290  ui->lpFIRGain->setEnabled(checked);
291  sendSettings();
292 }
bool m_lpfFIREnable
enable digital lowpass FIR filter
Ui::PlutoSDRInputGUI * ui
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_lpFIRGain_currentIndexChanged

void PlutoSDRInputGui::on_lpFIRGain_currentIndexChanged ( int  index)
privateslot

Definition at line 307 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_lpfFIRGain, m_settings, and sendSettings().

308 {
309  m_settings.m_lpfFIRGain = 6*(index > 3 ? 3 : index) - 12;
310  sendSettings();
311 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
int m_lpfFIRGain
digital lowpass FIR filter gain (dB)
+ Here is the call graph for this function:

◆ on_record_toggled

void PlutoSDRInputGui::on_record_toggled ( bool  checked)
privateslot

Definition at line 192 of file plutosdrinputgui.cpp.

References PlutoSDRInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.

193 {
194  if (checked) {
195  ui->record->setStyleSheet("QToolButton { background-color : red; }");
196  } else {
197  ui->record->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
198  }
199 
202 }
void push(Message *message, bool emitSignal=true)
Push message onto queue.
MessageQueue * getInputMessageQueue()
DeviceSampleSource * m_sampleSource
Ui::PlutoSDRInputGUI * ui
static MsgFileRecord * create(bool startStop)
Definition: plutosdrinput.h:70
+ Here is the call graph for this function:

◆ on_rfDCOffset_toggled

void PlutoSDRInputGui::on_rfDCOffset_toggled ( bool  checked)
privateslot

Definition at line 229 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_hwRFDCBlock, m_settings, and sendSettings().

230 {
231  m_settings.m_hwRFDCBlock = checked;
232  sendSettings();
233 }
bool m_hwRFDCBlock
Hardware RF DC blocking.
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_sampleRate_changed

void PlutoSDRInputGui::on_sampleRate_changed ( quint64  value)
privateslot

Definition at line 268 of file plutosdrinputgui.cpp.

References displayFcTooltip(), PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_log2Decim, m_sampleRateMode, m_settings, and sendSettings().

269 {
270  m_settings.m_devSampleRate = value;
271 
272  if (!m_sampleRateMode) {
274  }
275 
277  sendSettings();
278 }
bool m_sampleRateMode
true: device, false: base band sample rate update mode
void sendSettings(bool forceSettings=false)
quint64 m_devSampleRate
Host interface sample rate.
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_sampleRateMode_toggled

void PlutoSDRInputGui::on_sampleRateMode_toggled ( bool  checked)
privateslot

Definition at line 343 of file plutosdrinputgui.cpp.

References displaySampleRate(), and m_sampleRateMode.

344 {
345  m_sampleRateMode = checked;
347 }
bool m_sampleRateMode
true: device, false: base band sample rate update mode
+ Here is the call graph for this function:

◆ on_startStop_toggled

void PlutoSDRInputGui::on_startStop_toggled ( bool  checked)
privateslot

Definition at line 183 of file plutosdrinputgui.cpp.

References PlutoSDRInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().

184 {
185  if (m_doApplySettings)
186  {
189  }
190 }
void push(Message *message, bool emitSignal=true)
Push message onto queue.
MessageQueue * getInputMessageQueue()
DeviceSampleSource * m_sampleSource
static MsgStartStop * create(bool startStop)
Definition: plutosdrinput.h:89
+ Here is the call graph for this function:

◆ on_swDecim_currentIndexChanged

void PlutoSDRInputGui::on_swDecim_currentIndexChanged ( int  index)
privateslot

Definition at line 248 of file plutosdrinputgui.cpp.

References displaySampleRate(), PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_log2Decim, m_sampleRateMode, m_settings, sendSettings(), and ui.

249 {
250  m_settings.m_log2Decim = index > 6 ? 6 : index;
252  m_settings.m_devSampleRate = ui->sampleRate->getValueNew();
253 
254  if (!m_sampleRateMode) {
256  }
257 
258  sendSettings();
259 }
Ui::PlutoSDRInputGUI * ui
bool m_sampleRateMode
true: device, false: base band sample rate update mode
void sendSettings(bool forceSettings=false)
quint64 m_devSampleRate
Host interface sample rate.
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ on_transverter_clicked

void PlutoSDRInputGui::on_transverter_clicked ( )
privateslot

Definition at line 333 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_centerFrequency, m_settings, PlutoSDRInputSettings::m_transverterDeltaFrequency, PlutoSDRInputSettings::m_transverterMode, sendSettings(), ui, and updateFrequencyLimits().

334 {
335  m_settings.m_transverterMode = ui->transverter->getDeltaFrequencyAcive();
336  m_settings.m_transverterDeltaFrequency = ui->transverter->getDeltaFrequency();
337  qDebug("PlutoSDRInputGui::on_transverter_clicked: %lld Hz %s", m_settings.m_transverterDeltaFrequency, m_settings.m_transverterMode ? "on" : "off");
339  m_settings.m_centerFrequency = ui->centerFrequency->getValueNew()*1000;
340  sendSettings();
341 }
Ui::PlutoSDRInputGUI * ui
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ openDeviceSettingsDialog

void PlutoSDRInputGui::openDeviceSettingsDialog ( const QPoint &  p)
privateslot

Definition at line 581 of file plutosdrinputgui.cpp.

References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), PlutoSDRInputSettings::m_reverseAPIAddress, PlutoSDRInputSettings::m_reverseAPIDeviceIndex, PlutoSDRInputSettings::m_reverseAPIPort, m_settings, PlutoSDRInputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().

Referenced by PlutoSDRInputGui().

582 {
583  BasicDeviceSettingsDialog dialog(this);
584  dialog.setUseReverseAPI(m_settings.m_useReverseAPI);
585  dialog.setReverseAPIAddress(m_settings.m_reverseAPIAddress);
586  dialog.setReverseAPIPort(m_settings.m_reverseAPIPort);
587  dialog.setReverseAPIDeviceIndex(m_settings.m_reverseAPIDeviceIndex);
588 
589  dialog.move(p);
590  dialog.exec();
591 
592  m_settings.m_useReverseAPI = dialog.useReverseAPI();
593  m_settings.m_reverseAPIAddress = dialog.getReverseAPIAddress();
594  m_settings.m_reverseAPIPort = dialog.getReverseAPIPort();
595  m_settings.m_reverseAPIDeviceIndex = dialog.getReverseAPIDeviceIndex();
596 
597  sendSettings();
598 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetToDefaults()

void PlutoSDRInputGui::resetToDefaults ( )
virtual

Implements PluginInstanceGUI.

Definition at line 104 of file plutosdrinputgui.cpp.

Referenced by deserialize().

105 {
106 
107 }
+ Here is the caller graph for this function:

◆ sendSettings()

void PlutoSDRInputGui::sendSettings ( bool  forceSettings = false)
private

◆ serialize()

QByteArray PlutoSDRInputGui::serialize ( ) const
virtual

Implements PluginInstanceGUI.

Definition at line 121 of file plutosdrinputgui.cpp.

References m_settings, and PlutoSDRInputSettings::serialize().

122 {
123  return m_settings.serialize();
124 }
QByteArray serialize() const
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ setCenterFrequency()

void PlutoSDRInputGui::setCenterFrequency ( qint64  centerFrequency)
virtual

Implements PluginInstanceGUI.

Definition at line 114 of file plutosdrinputgui.cpp.

References displaySettings(), PlutoSDRInputSettings::m_centerFrequency, m_settings, and sendSettings().

115 {
116  m_settings.m_centerFrequency = centerFrequency;
117  displaySettings();
118  sendSettings();
119 }
void sendSettings(bool forceSettings=false)
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:

◆ setFIRBWLimits()

void PlutoSDRInputGui::setFIRBWLimits ( )
private

Definition at line 512 of file plutosdrinputgui.cpp.

References DevicePlutoSDR::firBWHighLimitFactor, DevicePlutoSDR::firBWLowLimitFactor, PlutoSDRInputSettings::m_lpfFIRBW, m_sampleSource, m_settings, and ui.

Referenced by displaySettings(), and handleInputMessages().

513 {
514  float high = DevicePlutoSDR::firBWHighLimitFactor * ((PlutoSDRInput *) m_sampleSource)->getFIRSampleRate();
515  float low = DevicePlutoSDR::firBWLowLimitFactor * ((PlutoSDRInput *) m_sampleSource)->getFIRSampleRate();
516  ui->lpFIR->setValueRange(5, (int(low)/1000)+1, (int(high)/1000)+1);
517  ui->lpFIR->setValue(m_settings.m_lpfFIRBW/1000);
518 }
static const float firBWHighLimitFactor
Factor by which the FIR working sample rate is multiplied to yield bandwidth higher limit...
DeviceSampleSource * m_sampleSource
Ui::PlutoSDRInputGUI * ui
static const float firBWLowLimitFactor
Factor by which the FIR working sample rate is multiplied to yield bandwidth lower limit...
PlutoSDRInputSettings m_settings
quint32 m_lpfFIRBW
digital lowpass FIR filter bandwidth (Hz)
+ Here is the caller graph for this function:

◆ setName()

void PlutoSDRInputGui::setName ( const QString &  name)
virtual

Implements PluginInstanceGUI.

Definition at line 94 of file plutosdrinputgui.cpp.

95 {
96  setObjectName(name);
97 }

◆ setSampleRateLimits()

void PlutoSDRInputGui::setSampleRateLimits ( )
private

Definition at line 520 of file plutosdrinputgui.cpp.

References PlutoSDRInputSettings::m_devSampleRate, m_settings, DevicePlutoSDR::srHighLimitFreq, DevicePlutoSDR::srLowLimitFreq, and ui.

Referenced by displaySettings(), and on_lpFIRDecimation_currentIndexChanged().

521 {
522  uint32_t low = ui->lpFIREnable->isChecked() ? DevicePlutoSDR::srLowLimitFreq / (1<<ui->lpFIRDecimation->currentIndex()) : DevicePlutoSDR::srLowLimitFreq;
523  ui->sampleRate->setValueRange(8, low, DevicePlutoSDR::srHighLimitFreq);
524  ui->sampleRate->setValue(m_settings.m_devSampleRate);
525 }
static const uint32_t srHighLimitFreq
Device sample rate higher limit in S/s.
Ui::PlutoSDRInputGUI * ui
unsigned int uint32_t
Definition: rtptypes_win.h:46
static const uint32_t srLowLimitFreq
Device sample rate lower limit in S/s.
quint64 m_devSampleRate
Host interface sample rate.
PlutoSDRInputSettings m_settings
+ Here is the caller graph for this function:

◆ updateFrequencyLimits()

void PlutoSDRInputGui::updateFrequencyLimits ( )
private

Definition at line 527 of file plutosdrinputgui.cpp.

References m_sampleSource, m_settings, PlutoSDRInputSettings::m_transverterDeltaFrequency, PlutoSDRInputSettings::m_transverterMode, and ui.

Referenced by displaySettings(), on_transverter_clicked(), and PlutoSDRInputGui().

528 {
529  qint64 minLimit, maxLimit;
530  // values should be in kHz
531  qint64 deltaFrequency = m_settings.m_transverterMode ? m_settings.m_transverterDeltaFrequency/1000 : 0;
532  ((PlutoSDRInput *) m_sampleSource)->getLORange(minLimit, maxLimit);
533 
534  minLimit = minLimit/1000 + deltaFrequency;
535  maxLimit = maxLimit/1000 + deltaFrequency;
536 
537  minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
538  maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
539 
540  qDebug("PlutoSDRInputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
541 
542  ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
543 }
DeviceSampleSource * m_sampleSource
Ui::PlutoSDRInputGUI * ui
PlutoSDRInputSettings m_settings
+ Here is the caller graph for this function:

◆ updateHardware

void PlutoSDRInputGui::updateHardware ( )
privateslot

Definition at line 434 of file plutosdrinputgui.cpp.

References PlutoSDRInput::MsgConfigurePlutoSDR::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().

Referenced by PlutoSDRInputGui().

435 {
436  if (m_doApplySettings)
437  {
438  qDebug() << "PlutoSDRInputGui::updateHardware";
441  m_forceSettings = false;
442  m_updateTimer.stop();
443  }
444 }
void push(Message *message, bool emitSignal=true)
Push message onto queue.
static MsgConfigurePlutoSDR * create(const PlutoSDRInputSettings &settings, bool force)
Definition: plutosdrinput.h:48
MessageQueue * getInputMessageQueue()
DeviceSampleSource * m_sampleSource
PlutoSDRInputSettings m_settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSampleRateAndFrequency()

void PlutoSDRInputGui::updateSampleRateAndFrequency ( )
private

Definition at line 574 of file plutosdrinputgui.cpp.

References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().

Referenced by handleInputMessages().

575 {
579 }
void setSampleRate(qint32 sampleRate)
Definition: glspectrum.cpp:211
GLSpectrum * getSpectrum()
Direct spectrum getter.
Definition: deviceuiset.h:57
DeviceUISet * m_deviceUISet
void setCenterFrequency(qint64 frequency)
Definition: glspectrum.cpp:175
quint64 m_deviceCenterFrequency
Center frequency in device.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateStatus

void PlutoSDRInputGui::updateStatus ( )
privateslot

Definition at line 451 of file plutosdrinputgui.cpp.

References arg(), DeviceAPI::errorMessage(), DeviceAPI::isBuddyLeader(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_lastEngineState, m_sampleSource, m_statusCounter, DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.

Referenced by PlutoSDRInputGui().

452 {
453  int state = m_deviceUISet->m_deviceAPI->state();
454 
455  if(m_lastEngineState != state)
456  {
457  switch(state)
458  {
460  ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
461  break;
462  case DeviceAPI::StIdle:
463  ui->startStop->setStyleSheet("QToolButton { background-color : blue; }");
464  break;
466  ui->startStop->setStyleSheet("QToolButton { background-color : green; }");
467  break;
468  case DeviceAPI::StError:
469  ui->startStop->setStyleSheet("QToolButton { background-color : red; }");
470  QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage());
471  break;
472  default:
473  break;
474  }
475 
476  m_lastEngineState = state;
477  }
478 
479  if (m_statusCounter % 2 == 0) // 1s
480  {
481  uint32_t adcRate = ((PlutoSDRInput *) m_sampleSource)->getADCSampleRate();
482 
483  if (adcRate < 100000000) {
484  ui->adcRateText->setText(tr("%1k").arg(QString::number(adcRate / 1000.0f, 'g', 5)));
485  } else {
486  ui->adcRateText->setText(tr("%1M").arg(QString::number(adcRate / 1000000.0f, 'g', 5)));
487  }
488  }
489 
490  if (m_statusCounter % 4 == 0) // 2s
491  {
492  std::string rssiStr;
493  ((PlutoSDRInput *) m_sampleSource)->getRSSI(rssiStr);
494  ui->rssiText->setText(tr("-%1").arg(QString::fromStdString(rssiStr)));
495  int gaindB;
496  ((PlutoSDRInput *) m_sampleSource)->getGain(gaindB);
497  ui->actualGainText->setText(tr("%1").arg(gaindB));
498  }
499 
500  if (m_statusCounter % 10 == 0) // 5s
501  {
503  ((PlutoSDRInput *) m_sampleSource)->fetchTemperature();
504  }
505 
506  ui->temperatureText->setText(tr("%1C").arg(QString::number(((PlutoSDRInput *) m_sampleSource)->getTemperature(), 'f', 0)));
507  }
508 
509  m_statusCounter++;
510 }
bool isBuddyLeader() const
Definition: deviceapi.h:163
QString errorMessage()
Last error message from the device engine.
Definition: deviceapi.cpp:290
DeviceSampleSource * m_sampleSource
Ui::PlutoSDRInputGUI * ui
unsigned int uint32_t
Definition: rtptypes_win.h:46
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
engine is before initialization
Definition: deviceapi.h:53
uint32_t m_statusCounter
EngineState state() const
Return the state of the device engine corresponding to the stream type.
Definition: deviceapi.cpp:277
DeviceAPI * m_deviceAPI
Definition: deviceuiset.h:48
engine is idle
Definition: deviceapi.h:54
DeviceUISet * m_deviceUISet
engine is running
Definition: deviceapi.h:56
engine is in error
Definition: deviceapi.h:57
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_deviceCenterFrequency

quint64 PlutoSDRInputGui::m_deviceCenterFrequency
private

Center frequency in device.

Definition at line 66 of file plutosdrinputgui.h.

Referenced by handleInputMessages(), and updateSampleRateAndFrequency().

◆ m_deviceUISet

DeviceUISet* PlutoSDRInputGui::m_deviceUISet
private

Definition at line 58 of file plutosdrinputgui.h.

Referenced by PlutoSDRInputGui(), updateSampleRateAndFrequency(), and updateStatus().

◆ m_doApplySettings

bool PlutoSDRInputGui::m_doApplySettings
private

Definition at line 68 of file plutosdrinputgui.h.

Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().

◆ m_forceSettings

bool PlutoSDRInputGui::m_forceSettings
private

Definition at line 61 of file plutosdrinputgui.h.

Referenced by sendSettings(), and updateHardware().

◆ m_inputMessageQueue

MessageQueue PlutoSDRInputGui::m_inputMessageQueue
private

Definition at line 70 of file plutosdrinputgui.h.

Referenced by handleInputMessages(), and PlutoSDRInputGui().

◆ m_lastEngineState

int PlutoSDRInputGui::m_lastEngineState
private

Definition at line 67 of file plutosdrinputgui.h.

Referenced by updateStatus().

◆ m_sampleRate

int PlutoSDRInputGui::m_sampleRate
private

Definition at line 65 of file plutosdrinputgui.h.

Referenced by handleInputMessages(), and updateSampleRateAndFrequency().

◆ m_sampleRateMode

bool PlutoSDRInputGui::m_sampleRateMode
private

true: device, false: base band sample rate update mode

Definition at line 60 of file plutosdrinputgui.h.

Referenced by displaySampleRate(), on_sampleRate_changed(), on_sampleRateMode_toggled(), and on_swDecim_currentIndexChanged().

◆ m_sampleSource

DeviceSampleSource* PlutoSDRInputGui::m_sampleSource
private

◆ m_settings

PlutoSDRInputSettings PlutoSDRInputGui::m_settings
private

◆ m_statusCounter

uint32_t PlutoSDRInputGui::m_statusCounter
private

Definition at line 69 of file plutosdrinputgui.h.

Referenced by updateStatus().

◆ m_statusTimer

QTimer PlutoSDRInputGui::m_statusTimer
private

Definition at line 63 of file plutosdrinputgui.h.

Referenced by PlutoSDRInputGui().

◆ m_updateTimer

QTimer PlutoSDRInputGui::m_updateTimer
private

Definition at line 62 of file plutosdrinputgui.h.

Referenced by PlutoSDRInputGui(), sendSettings(), and updateHardware().

◆ ui

Ui::PlutoSDRInputGUI* PlutoSDRInputGui::ui
private

The documentation for this class was generated from the following files: