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.
limesdrinputgui.cpp
Go to the documentation of this file.
1 // Copyright (C) 2017 Edouard Griffiths, F4EXB //
3 // //
4 // This program is free software; you can redistribute it and/or modify //
5 // it under the terms of the GNU General Public License as published by //
6 // the Free Software Foundation as version 3 of the License, or //
7 // (at your option) any later version. //
8 // //
9 // This program is distributed in the hope that it will be useful, //
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12 // GNU General Public License V3 for more details. //
13 // //
14 // You should have received a copy of the GNU General Public License //
15 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
17 
18 #include "limesdrinputgui.h"
19 
20 #include <QDebug>
21 #include <QMessageBox>
22 
23 #include <algorithm>
24 
25 #include "ui_limesdrinputgui.h"
26 #include "gui/colormapper.h"
27 #include "gui/glspectrum.h"
28 #include "gui/crightclickenabler.h"
30 #include "dsp/dspengine.h"
31 #include "dsp/dspcommands.h"
32 #include "device/deviceapi.h"
33 #include "device/deviceuiset.h"
34 
35 LimeSDRInputGUI::LimeSDRInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
36  QWidget(parent),
37  ui(new Ui::LimeSDRInputGUI),
38  m_deviceUISet(deviceUISet),
39  m_settings(),
40  m_sampleRateMode(true),
41  m_sampleRate(0),
42  m_lastEngineState(DeviceAPI::StNotStarted),
43  m_doApplySettings(true),
44  m_forceSettings(true),
45  m_statusCounter(0),
46  m_deviceStatusCounter(0)
47 {
49 
50  ui->setupUi(this);
51 
52  float minF, maxF;
53 
54  m_limeSDRInput->getLORange(minF, maxF);
55  ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
56  ui->centerFrequency->setValueRange(7, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
57 
58  m_limeSDRInput->getSRRange(minF, maxF);
59  ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
60  ui->sampleRate->setValueRange(8, (uint32_t) minF, (uint32_t) maxF);
61 
62  m_limeSDRInput->getLPRange(minF, maxF);
63  ui->lpf->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
64  ui->lpf->setValueRange(6, (minF/1000)+1, maxF/1000);
65 
66  ui->lpFIR->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
67  ui->lpFIR->setValueRange(5, 1U, 56000U);
68 
69  ui->ncoFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
70 
71  ui->channelNumberText->setText(tr("#%1").arg(m_limeSDRInput->getChannelIndex()));
72 
74  {
75  ui->antenna->setItemText(2, "NC");
76  ui->antenna->setItemText(3, "Lo");
77  }
78  else
79  {
80  ui->antenna->setItemText(2, "Lo");
81  ui->antenna->setItemText(3, "Wi");
82  }
83 
84  ui->hwDecimLabel->setText(QString::fromUtf8("H\u2193"));
85  ui->swDecimLabel->setText(QString::fromUtf8("S\u2193"));
86 
87  connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
88  connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
89  m_statusTimer.start(500);
90 
92 
93  connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection);
95 
96  CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop);
97  connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &)));
98 }
99 
101 {
102  delete ui;
103 }
104 
106 {
107  delete this;
108 }
109 
110 void LimeSDRInputGUI::setName(const QString& name)
111 {
112  setObjectName(name);
113 }
114 
116 {
117  return objectName();
118 }
119 
121 {
123  displaySettings();
124  sendSettings();
125 }
126 
128 {
130 }
131 
132 void LimeSDRInputGUI::setCenterFrequency(qint64 centerFrequency)
133 {
135  displaySettings();
136  sendSettings();
137 }
138 
139 QByteArray LimeSDRInputGUI::serialize() const
140 {
141  return m_settings.serialize();
142 }
143 
144 bool LimeSDRInputGUI::deserialize(const QByteArray& data)
145 {
146  if (m_settings.deserialize(data))
147  {
148  displaySettings();
149  m_forceSettings = true;
150  sendSettings();
151  return true;
152  }
153  else
154  {
155  resetToDefaults();
156  return false;
157  }
158 }
159 
161 {
163  {
165  m_settings = cfg.getSettings();
166  blockApplySettings(true);
167  displaySettings();
168  blockApplySettings(false);
169  return true;
170  }
172  {
176 
177  if (report.getRxElseTx()) {
179  }
180 
181  blockApplySettings(true);
182  displaySettings();
183  blockApplySettings(false);
184 
185  return true;
186  }
188  {
191  m_settings.m_extClock = report.getExtClock();
192 
193  blockApplySettings(true);
194  ui->extClock->setExternalClockFrequency(m_settings.m_extClockFreq);
195  ui->extClock->setExternalClockActive(m_settings.m_extClock);
196  blockApplySettings(false);
197 
198  return true;
199  }
201  {
203 
204  if (report.getSuccess())
205  {
206  if (report.getActive()) {
207  ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
208  } else {
209  ui->streamStatusLabel->setStyleSheet("QLabel { background-color : blue; }");
210  }
211 
212  ui->streamLinkRateText->setText(tr("%1 MB/s").arg(QString::number(report.getLinkRate() / 1000000.0f, 'f', 3)));
213 
214  if (report.getUnderrun() > 0) {
215  ui->underrunLabel->setStyleSheet("QLabel { background-color : red; }");
216  } else {
217  ui->underrunLabel->setStyleSheet("QLabel { background:rgb(79,79,79); }");
218  }
219 
220  if (report.getOverrun() > 0) {
221  ui->overrunLabel->setStyleSheet("QLabel { background-color : red; }");
222  } else {
223  ui->overrunLabel->setStyleSheet("QLabel { background:rgb(79,79,79); }");
224  }
225 
226  if (report.getDroppedPackets() > 0) {
227  ui->droppedLabel->setStyleSheet("QLabel { background-color : red; }");
228  } else {
229  ui->droppedLabel->setStyleSheet("QLabel { background:rgb(79,79,79); }");
230  }
231 
232  ui->fifoBar->setMaximum(report.getFifoSize());
233  ui->fifoBar->setValue(report.getFifoFilledCount());
234  ui->fifoBar->setToolTip(tr("FIFO fill %1/%2 samples").arg(QString::number(report.getFifoFilledCount())).arg(QString::number(report.getFifoSize())));
235  }
236  else
237  {
238  ui->streamStatusLabel->setStyleSheet("QLabel { background:rgb(79,79,79); }");
239  }
240 
241  return true;
242  }
244  {
246  ui->temperatureText->setText(tr("%1C").arg(QString::number(report.getTemperature(), 'f', 0)));
247  ui->gpioText->setText(tr("%1").arg(report.getGPIOPins(), 2, 16, QChar('0')).toUpper());
248  return true;
249  }
250  else if (LimeSDRInput::MsgStartStop::match(message))
251  {
253  blockApplySettings(true);
254  ui->startStop->setChecked(notif.getStartStop());
255  blockApplySettings(false);
256 
257  return true;
258  }
259  else
260  {
261  return false;
262  }
263 }
264 
266 {
267  // values in kHz
268  float minF, maxF;
269  qint64 deltaFrequency = m_settings.m_transverterMode ? m_settings.m_transverterDeltaFrequency/1000 : 0;
270  m_limeSDRInput->getLORange(minF, maxF);
271  qint64 minLimit = minF/1000 + deltaFrequency;
272  qint64 maxLimit = maxF/1000 + deltaFrequency;
273 
274  minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
275  maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
276 
277  qDebug("LimeSDRInputGUI::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
278 
279  ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
280 }
281 
283 {
284  Message* message;
285 
286  while ((message = m_inputMessageQueue.pop()) != 0)
287  {
288  if (DSPSignalNotification::match(*message))
289  {
290  DSPSignalNotification* notif = (DSPSignalNotification*) message;
291  m_sampleRate = notif->getSampleRate();
293  qDebug("LimeSDRInputGUI::handleInputMessages: DSPSignalNotification: SampleRate: %d, CenterFrequency: %llu", notif->getSampleRate(), notif->getCenterFrequency());
295 
296  delete message;
297  }
298  else if (LimeSDRInput::MsgConfigureLimeSDR::match(*message))
299  {
301  m_settings = cfg.getSettings();
302  displaySettings();
303 
304  delete message;
305  }
306  else
307  {
308  if (handleMessage(*message)) {
309  delete message;
310  }
311  }
312  }
313 }
314 
316 {
318 
319  if (adcRate < 100000000) {
320  ui->adcRateLabel->setText(tr("%1k").arg(QString::number(adcRate / 1000.0f, 'g', 5)));
321  } else {
322  ui->adcRateLabel->setText(tr("%1M").arg(QString::number(adcRate / 1000000.0f, 'g', 5)));
323  }
324 }
325 
327 {
331 }
332 
334 {
335  float minF, maxF;
336  m_limeSDRInput->getSRRange(minF, maxF);
337 
338  ui->sampleRate->blockSignals(true);
339 
340  if (m_sampleRateMode)
341  {
342  ui->sampleRateMode->setStyleSheet("QToolButton { background:rgb(60,60,60); }");
343  ui->sampleRateMode->setText("SR");
344  ui->sampleRate->setValueRange(8, (uint32_t) minF, (uint32_t) maxF);
345  ui->sampleRate->setValue(m_settings.m_devSampleRate);
346  ui->sampleRate->setToolTip("Device to host sample rate (S/s)");
347  ui->deviceRateText->setToolTip("Baseband sample rate (S/s)");
349  ui->deviceRateText->setText(tr("%1k").arg(QString::number(basebandSampleRate / 1000.0f, 'g', 5)));
350  }
351  else
352  {
353  ui->sampleRateMode->setStyleSheet("QToolButton { background:rgb(50,50,50); }");
354  ui->sampleRateMode->setText("BB");
355  ui->sampleRate->setValueRange(8, (uint32_t) minF/(1<<m_settings.m_log2SoftDecim), (uint32_t) maxF/(1<<m_settings.m_log2SoftDecim));
356  ui->sampleRate->setValue(m_settings.m_devSampleRate/(1<<m_settings.m_log2SoftDecim));
357  ui->sampleRate->setToolTip("Baseband sample rate (S/s)");
358  ui->deviceRateText->setToolTip("Device to host sample rate (S/s)");
359  ui->deviceRateText->setText(tr("%1k").arg(QString::number(m_settings.m_devSampleRate / 1000.0f, 'g', 5)));
360  }
361 
362  ui->sampleRate->blockSignals(false);
363 }
364 
365 
367 {
368  ui->transverter->setDeltaFrequency(m_settings.m_transverterDeltaFrequency);
369  ui->transverter->setDeltaFrequencyActive(m_settings.m_transverterMode);
370 
371  ui->extClock->setExternalClockFrequency(m_settings.m_extClockFreq);
372  ui->extClock->setExternalClockActive(m_settings.m_extClock);
373 
376 
377  ui->dcOffset->setChecked(m_settings.m_dcBlock);
378  ui->iqImbalance->setChecked(m_settings.m_iqCorrection);
379 
380  ui->hwDecim->setCurrentIndex(m_settings.m_log2HardDecim);
381  ui->swDecim->setCurrentIndex(m_settings.m_log2SoftDecim);
382 
383  updateADCRate();
384 
385  ui->lpf->setValue(m_settings.m_lpfBW / 1000);
386 
387  ui->lpFIREnable->setChecked(m_settings.m_lpfFIREnable);
388  ui->lpFIR->setValue(m_settings.m_lpfFIRBW / 1000);
389 
390  ui->gain->setValue(m_settings.m_gain);
391  ui->gainText->setText(tr("%1").arg(m_settings.m_gain));
392 
393  ui->antenna->setCurrentIndex((int) m_settings.m_antennaPath);
394 
395  ui->gainMode->setCurrentIndex((int) m_settings.m_gainMode);
396  ui->lnaGain->setValue(m_settings.m_lnaGain);
397  ui->tiaGain->setCurrentIndex(m_settings.m_tiaGain - 1);
398  ui->pgaGain->setValue(m_settings.m_pgaGain);
399 
401  {
402  ui->gain->setEnabled(true);
403  ui->lnaGain->setEnabled(false);
404  ui->tiaGain->setEnabled(false);
405  ui->pgaGain->setEnabled(false);
406  }
407  else
408  {
409  ui->gain->setEnabled(false);
410  ui->lnaGain->setEnabled(true);
411  ui->tiaGain->setEnabled(true);
412  ui->pgaGain->setEnabled(true);
413  }
414 
415  setNCODisplay();
416 
417  ui->ncoEnable->setChecked(m_settings.m_ncoEnable);
418 }
419 
421 {
422  int ncoHalfRange = (m_settings.m_devSampleRate * (1<<(m_settings.m_log2HardDecim)))/2;
423  ui->ncoFrequency->setValueRange(
424  false,
425  8,
426  -ncoHalfRange,
427  ncoHalfRange);
428 
429  ui->ncoFrequency->blockSignals(true);
430  ui->ncoFrequency->setToolTip(QString("NCO frequency shift in Hz (Range: +/- %1 kHz)").arg(ncoHalfRange/1000));
431  ui->ncoFrequency->setValue(m_settings.m_ncoFrequency);
432  ui->ncoFrequency->blockSignals(false);
433 }
434 
436 {
437  int64_t centerFrequency = m_settings.m_centerFrequency;
438  ui->centerFrequency->setToolTip(QString("Main center frequency in kHz (LO: %1 kHz)").arg(centerFrequency/1000));
439 
440  if (m_settings.m_ncoEnable) {
441  centerFrequency += m_settings.m_ncoFrequency;
442  }
443 
444  ui->centerFrequency->blockSignals(true);
445  ui->centerFrequency->setValue(centerFrequency < 0 ? 0 : (uint64_t) centerFrequency/1000); // kHz
446  ui->centerFrequency->blockSignals(false);
447 }
448 
450 {
451  int64_t centerFrequency = kHzValue*1000;
452 
453  if (m_settings.m_ncoEnable) {
454  centerFrequency -= m_settings.m_ncoFrequency;
455  }
456 
457  m_settings.m_centerFrequency = centerFrequency < 0 ? 0 : (uint64_t) centerFrequency;
458  ui->centerFrequency->setToolTip(QString("Main center frequency in kHz (LO: %1 kHz)").arg(centerFrequency/1000));
459 }
460 
462 {
463  if(!m_updateTimer.isActive())
464  m_updateTimer.start(100);
465 }
466 
468 {
469  if (m_doApplySettings)
470  {
471  qDebug() << "LimeSDRInputGUI::updateHardware";
474  m_forceSettings = false;
475  m_updateTimer.stop();
476  }
477 }
478 
480 {
481  int state = m_deviceUISet->m_deviceAPI->state();
482 
483  if(m_lastEngineState != state)
484  {
485  switch(state)
486  {
488  ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
489  break;
490  case DeviceAPI::StIdle:
491  ui->startStop->setStyleSheet("QToolButton { background-color : blue; }");
492  break;
494  ui->startStop->setStyleSheet("QToolButton { background-color : green; }");
495  break;
496  case DeviceAPI::StError:
497  ui->startStop->setStyleSheet("QToolButton { background-color : red; }");
498  QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage());
499  break;
500  default:
501  break;
502  }
503 
504  m_lastEngineState = state;
505  }
506 
507  if (m_statusCounter < 1)
508  {
509  m_statusCounter++;
510  }
511  else
512  {
515  m_statusCounter = 0;
516  }
517 
518  if (m_deviceStatusCounter < 10)
519  {
521  }
522  else
523  {
525  {
528  }
529 
531  }
532 }
533 
535 {
536  m_doApplySettings = !block;
537 }
538 
540 {
541  if (m_doApplySettings)
542  {
545  }
546 }
547 
549 {
550  if (checked) {
551  ui->record->setStyleSheet("QToolButton { background-color : red; }");
552  } else {
553  ui->record->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
554  }
555 
558 }
559 
561 {
563  sendSettings();
564 }
565 
567 {
568  m_settings.m_ncoFrequency = value;
570  sendSettings();
571 }
572 
574 {
575  m_settings.m_ncoEnable = checked;
577  sendSettings();
578 }
579 
581 {
582  m_settings.m_dcBlock = checked;
583  sendSettings();
584 }
585 
587 {
588  m_settings.m_iqCorrection = checked;
589  sendSettings();
590 }
591 
593 {
594  if (m_sampleRateMode) {
595  m_settings.m_devSampleRate = value;
596  } else {
598  }
599 
600  updateADCRate();
601  setNCODisplay();
602  sendSettings();}
603 
605 {
606  if ((index <0) || (index > 5))
607  return;
608  m_settings.m_log2HardDecim = index;
609  updateADCRate();
610  setNCODisplay();
611  sendSettings();
612 }
613 
615 {
616  if ((index <0) || (index > 6)) {
617  return;
618  }
619 
620  m_settings.m_log2SoftDecim = index;
622 
623  if (m_sampleRateMode) {
624  m_settings.m_devSampleRate = ui->sampleRate->getValueNew();
625  } else {
626  m_settings.m_devSampleRate = ui->sampleRate->getValueNew() * (1 << m_settings.m_log2SoftDecim);
627  }
628 
629  sendSettings();
630 }
631 
633 {
634  m_settings.m_lpfBW = value * 1000;
635  sendSettings();
636 }
637 
639 {
640  m_settings.m_lpfFIREnable = checked;
641  sendSettings();
642 }
643 
645 {
646  m_settings.m_lpfFIRBW = value * 1000;
647  sendSettings();
648 }
649 
651 {
653 
654  if (index == 0)
655  {
656  ui->gain->setEnabled(true);
657  ui->lnaGain->setEnabled(false);
658  ui->tiaGain->setEnabled(false);
659  ui->pgaGain->setEnabled(false);
660  }
661  else
662  {
663  ui->gain->setEnabled(false);
664  ui->lnaGain->setEnabled(true);
665  ui->tiaGain->setEnabled(true);
666  ui->pgaGain->setEnabled(true);
667  }
668 
669  sendSettings();
670 }
671 
673 {
674  m_settings.m_gain = value;
675  ui->gainText->setText(tr("%1").arg(m_settings.m_gain));
676  sendSettings();
677 }
678 
680 {
681  m_settings.m_lnaGain = value;
682  ui->lnaGainText->setText(tr("%1").arg(m_settings.m_lnaGain));
683  sendSettings();
684 }
685 
687 {
688  m_settings.m_tiaGain = index + 1;
689  sendSettings();
690 }
691 
693 {
694  m_settings.m_pgaGain = value;
695  ui->pgaGainText->setText(tr("%1").arg(m_settings.m_pgaGain));
696  sendSettings();
697 }
698 
700 {
702  sendSettings();
703 }
704 
706 {
707  m_settings.m_extClock = ui->extClock->getExternalClockActive();
708  m_settings.m_extClockFreq = ui->extClock->getExternalClockFrequency();
709  qDebug("LimeSDRInputGUI::on_extClock_clicked: %u Hz %s", m_settings.m_extClockFreq, m_settings.m_extClock ? "on" : "off");
710  sendSettings();
711 }
712 
714 {
715  m_settings.m_transverterMode = ui->transverter->getDeltaFrequencyAcive();
716  m_settings.m_transverterDeltaFrequency = ui->transverter->getDeltaFrequency();
717  qDebug("LimeSDRInputGUI::on_transverter_clicked: %lld Hz %s", m_settings.m_transverterDeltaFrequency, m_settings.m_transverterMode ? "on" : "off");
719  setCenterFrequencySetting(ui->centerFrequency->getValueNew());
720  sendSettings();
721 }
722 
724 {
725  m_sampleRateMode = checked;
727 }
728 
730 {
731  BasicDeviceSettingsDialog dialog(this);
736 
737  dialog.move(p);
738  dialog.exec();
739 
744 
745  sendSettings();
746 }
void on_centerFrequency_changed(quint64 value)
void on_lpFIR_changed(quint64 value)
virtual void setCenterFrequency(qint64 centerFrequency)
LimeSDRInput * m_limeSDRInput
Same object as above but gives easy access to LimeSDRInput methods and attributes that are used inten...
static MsgConfigureLimeSDR * create(const LimeSDRInputSettings &settings, bool force)
Definition: limesdrinput.h:48
Message * pop()
Pop message from queue.
const QString & getReverseAPIAddress() const
void on_lpf_changed(quint64 value)
void setName(const QString &name)
virtual bool handleMessage(const Message &message)
void push(Message *message, bool emitSignal=true)
Push message onto queue.
void setSampleRate(qint32 sampleRate)
Definition: glspectrum.cpp:211
void updateSampleRateAndFrequency()
bool deserialize(const QByteArray &data)
static MsgGetDeviceInfo * create()
Definition: limesdrinput.h:83
void on_ncoFrequency_changed(qint64 value)
bool isBuddyLeader() const
Definition: deviceapi.h:163
DeviceSampleSource * getSampleSource()
Return pointer to the device sample source (single Rx) or nullptr.
Definition: deviceapi.cpp:213
void setUseReverseAPI(bool useReverseAPI)
DeviceLimeSDRParams::LimeType getLimeType() const
void on_dcOffset_toggled(bool checked)
DeviceUISet * m_deviceUISet
uint32_t m_tiaGain
Manual TIA gain.
LimeSDRInputGUI(DeviceUISet *deviceUISet, QWidget *parent=0)
MessageQueue * getInputMessageQueue()
void on_gainMode_currentIndexChanged(int index)
bool m_sampleRateMode
true: device, false: base band sample rate update mode
void on_ncoEnable_toggled(bool checked)
bool m_lpfFIREnable
Enable LMS digital lowpass FIR filters.
void on_gain_valueChanged(int value)
static MsgStartStop * create(bool startStop)
Definition: limesdrinput.h:194
bool m_extClock
True if external clock source.
virtual void destroy()
void on_record_toggled(bool checked)
void openDeviceSettingsDialog(const QPoint &p)
void on_tiaGain_currentIndexChanged(int index)
QByteArray serialize() const
void on_pgaGain_valueChanged(int value)
uint32_t m_lnaGain
Manual LAN gain.
int m_ncoFrequency
Actual NCO frequency (the resulting frequency with mixing is displayed)
bool deserialize(const QByteArray &data)
QString errorMessage()
Last error message from the device engine.
Definition: deviceapi.cpp:290
void on_hwDecim_currentIndexChanged(int index)
void setCenterFrequencySetting(uint64_t kHzValue)
__int64 int64_t
Definition: rtptypes_win.h:47
uint32_t m_gain
Optimally distributed gain (dB)
unsigned int uint32_t
Definition: rtptypes_win.h:46
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
GLSpectrum * getSpectrum()
Direct spectrum getter.
Definition: deviceuiset.h:57
void on_lnaGain_valueChanged(int value)
engine is before initialization
Definition: deviceapi.h:53
qint64 getCenterFrequency() const
Definition: dspcommands.h:329
EngineState state() const
Return the state of the device engine corresponding to the stream type.
Definition: deviceapi.cpp:277
void on_antenna_currentIndexChanged(int index)
virtual qint64 getCenterFrequency() const
DeviceAPI * m_deviceAPI
Definition: deviceuiset.h:48
engine is idle
Definition: deviceapi.h:54
float m_lpfFIRBW
LMS digital lowpass FIR filters bandwidth (Hz)
Ui::LimeSDRInputGUI * ui
void getLORange(float &minF, float &maxF) const
void on_sampleRate_changed(quint64 value)
void on_startStop_toggled(bool checked)
const LimeSDRInputSettings & getSettings() const
Definition: limesdrinput.h:45
void on_iqImbalance_toggled(bool checked)
virtual void setMessageQueueToGUI(MessageQueue *queue)
Definition: limesdrinput.h:218
LimeSDRInputSettings m_settings
static bool match(const Message *message)
Definition: message.cpp:45
std::size_t getChannelIndex()
void on_lpFIREnable_toggled(bool checked)
bool m_ncoEnable
Enable TSP NCO and mixing.
uint32_t m_pgaGain
Manual PGA gain.
float m_lpfBW
LMS amalog lowpass filter bandwidth (Hz)
virtual ~LimeSDRInputGUI()
static MsgFileRecord * create(bool startStop)
Definition: limesdrinput.h:175
MessageQueue m_inputMessageQueue
int getSampleRate() const
Definition: dspcommands.h:328
GainMode m_gainMode
Gain mode: auto or manual.
void getLPRange(float &minF, float &maxF) const
void setCenterFrequency(qint64 frequency)
Definition: glspectrum.cpp:175
QString getName() const
quint64 m_deviceCenterFrequency
Center frequency in device.
void setReverseAPIAddress(const QString &address)
void setCenterFrequencyDisplay()
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
engine is running
Definition: deviceapi.h:56
void blockApplySettings(bool block)
uint32_t m_extClockFreq
Frequency (Hz) of external clock source.
void on_sampleRateMode_toggled(bool checked)
void getSRRange(float &minF, float &maxF) const
QByteArray serialize() const
void on_swDecim_currentIndexChanged(int index)
engine is in error
Definition: deviceapi.h:57
static MsgGetStreamInfo * create()
Definition: limesdrinput.h:68
unsigned __int64 uint64_t
Definition: rtptypes_win.h:48