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.
|
#include <limesdrinputgui.h>
Public Member Functions | |
LimeSDRInputGUI (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~LimeSDRInputGUI () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
void | resetToDefaults () |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Member Functions | |
void | displaySettings () |
void | displaySampleRate () |
void | setNCODisplay () |
void | setCenterFrequencyDisplay () |
void | setCenterFrequencySetting (uint64_t kHzValue) |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | updateADCRate () |
void | updateFrequencyLimits () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::LimeSDRInputGUI * | ui |
DeviceUISet * | m_deviceUISet |
LimeSDRInput * | m_limeSDRInput |
Same object as above but gives easy access to LimeSDRInput methods and attributes that are used intensively. More... | |
LimeSDRInputSettings | m_settings |
bool | m_sampleRateMode |
true: device, false: base band sample rate update mode More... | |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
bool | m_doApplySettings |
bool | m_forceSettings |
int | m_statusCounter |
int | m_deviceStatusCounter |
MessageQueue | m_inputMessageQueue |
Definition at line 35 of file limesdrinputgui.h.
|
explicit |
Definition at line 35 of file limesdrinputgui.cpp.
References arg(), displaySettings(), LimeSDRInput::getChannelIndex(), LimeSDRInput::getLimeType(), LimeSDRInput::getLORange(), LimeSDRInput::getLPRange(), DeviceAPI::getSampleSource(), LimeSDRInput::getSRRange(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceLimeSDRParams::LimeMini, DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_limeSDRInput, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), LimeSDRInput::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
|
private |
Definition at line 534 of file limesdrinputgui.cpp.
References m_doApplySettings.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 144 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 105 of file limesdrinputgui.cpp.
|
private |
Definition at line 333 of file limesdrinputgui.cpp.
References arg(), LimeSDRInput::getSRRange(), LimeSDRInputSettings::m_devSampleRate, m_limeSDRInput, LimeSDRInputSettings::m_log2SoftDecim, m_sampleRateMode, m_settings, and ui.
Referenced by displaySettings(), on_sampleRateMode_toggled(), on_swDecim_currentIndexChanged(), and updateSampleRateAndFrequency().
|
private |
Definition at line 366 of file limesdrinputgui.cpp.
References arg(), displaySampleRate(), LimeSDRInputSettings::GAIN_AUTO, LimeSDRInputSettings::m_antennaPath, LimeSDRInputSettings::m_dcBlock, LimeSDRInputSettings::m_extClock, LimeSDRInputSettings::m_extClockFreq, LimeSDRInputSettings::m_gain, LimeSDRInputSettings::m_gainMode, LimeSDRInputSettings::m_iqCorrection, LimeSDRInputSettings::m_lnaGain, LimeSDRInputSettings::m_log2HardDecim, LimeSDRInputSettings::m_log2SoftDecim, LimeSDRInputSettings::m_lpfBW, LimeSDRInputSettings::m_lpfFIRBW, LimeSDRInputSettings::m_lpfFIREnable, LimeSDRInputSettings::m_ncoEnable, LimeSDRInputSettings::m_pgaGain, m_settings, LimeSDRInputSettings::m_tiaGain, LimeSDRInputSettings::m_transverterDeltaFrequency, LimeSDRInputSettings::m_transverterMode, setCenterFrequencyDisplay(), setNCODisplay(), ui, and updateADCRate().
Referenced by deserialize(), handleInputMessages(), handleMessage(), LimeSDRInputGUI(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 127 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_centerFrequency, LimeSDRInputSettings::m_ncoEnable, LimeSDRInputSettings::m_ncoFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 51 of file limesdrinputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 115 of file limesdrinputgui.cpp.
|
privateslot |
Definition at line 282 of file limesdrinputgui.cpp.
References displaySettings(), DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), LimeSDRInput::MsgConfigureLimeSDR::getSettings(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, m_settings, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by LimeSDRInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 160 of file limesdrinputgui.cpp.
References arg(), blockApplySettings(), displaySettings(), LimeSDRInput::MsgReportStreamInfo::getActive(), DeviceLimeSDRShared::MsgReportBuddyChange::getCenterFrequency(), DeviceLimeSDRShared::MsgReportBuddyChange::getDevSampleRate(), LimeSDRInput::MsgReportStreamInfo::getDroppedPackets(), DeviceLimeSDRShared::MsgReportClockSourceChange::getExtClock(), DeviceLimeSDRShared::MsgReportClockSourceChange::getExtClockFeq(), LimeSDRInput::MsgReportStreamInfo::getFifoFilledCount(), LimeSDRInput::MsgReportStreamInfo::getFifoSize(), DeviceLimeSDRShared::MsgReportDeviceInfo::getGPIOPins(), LimeSDRInput::MsgReportStreamInfo::getLinkRate(), DeviceLimeSDRShared::MsgReportBuddyChange::getLog2HardDecimInterp(), LimeSDRInput::MsgReportStreamInfo::getOverrun(), DeviceLimeSDRShared::MsgReportBuddyChange::getRxElseTx(), LimeSDRInput::MsgConfigureLimeSDR::getSettings(), LimeSDRInput::MsgStartStop::getStartStop(), LimeSDRInput::MsgReportStreamInfo::getSuccess(), DeviceLimeSDRShared::MsgReportDeviceInfo::getTemperature(), LimeSDRInput::MsgReportStreamInfo::getUnderrun(), LimeSDRInputSettings::m_centerFrequency, LimeSDRInputSettings::m_devSampleRate, LimeSDRInputSettings::m_extClock, LimeSDRInputSettings::m_extClockFreq, LimeSDRInputSettings::m_log2HardDecim, m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 699 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_antennaPath, m_settings, and sendSettings().
|
privateslot |
Definition at line 560 of file limesdrinputgui.cpp.
References sendSettings(), and setCenterFrequencySetting().
|
privateslot |
Definition at line 580 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 705 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_extClock, LimeSDRInputSettings::m_extClockFreq, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 672 of file limesdrinputgui.cpp.
References arg(), LimeSDRInputSettings::m_gain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 650 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_gainMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 604 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_log2HardDecim, m_settings, sendSettings(), setNCODisplay(), and updateADCRate().
|
privateslot |
Definition at line 586 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 679 of file limesdrinputgui.cpp.
References arg(), LimeSDRInputSettings::m_lnaGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 632 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_lpfBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 644 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_lpfFIRBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 638 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_lpfFIREnable, m_settings, and sendSettings().
|
privateslot |
Definition at line 573 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_ncoEnable, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 566 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_ncoFrequency, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 692 of file limesdrinputgui.cpp.
References arg(), LimeSDRInputSettings::m_pgaGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 548 of file limesdrinputgui.cpp.
References LimeSDRInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_limeSDRInput, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 592 of file limesdrinputgui.cpp.
References LimeSDRInputSettings::m_devSampleRate, LimeSDRInputSettings::m_log2SoftDecim, m_sampleRateMode, m_settings, sendSettings(), setNCODisplay(), and updateADCRate().
|
privateslot |
Definition at line 723 of file limesdrinputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 539 of file limesdrinputgui.cpp.
References LimeSDRInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_limeSDRInput, and MessageQueue::push().
|
privateslot |
Definition at line 614 of file limesdrinputgui.cpp.
References displaySampleRate(), LimeSDRInputSettings::m_devSampleRate, LimeSDRInputSettings::m_log2SoftDecim, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 686 of file limesdrinputgui.cpp.
References m_settings, LimeSDRInputSettings::m_tiaGain, and sendSettings().
|
privateslot |
Definition at line 713 of file limesdrinputgui.cpp.
References m_settings, LimeSDRInputSettings::m_transverterDeltaFrequency, LimeSDRInputSettings::m_transverterMode, sendSettings(), setCenterFrequencySetting(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 729 of file limesdrinputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), LimeSDRInputSettings::m_reverseAPIAddress, LimeSDRInputSettings::m_reverseAPIDeviceIndex, LimeSDRInputSettings::m_reverseAPIPort, m_settings, LimeSDRInputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by LimeSDRInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 120 of file limesdrinputgui.cpp.
References displaySettings(), m_settings, LimeSDRInputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 461 of file limesdrinputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_antenna_currentIndexChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_extClock_clicked(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_hwDecim_currentIndexChanged(), on_iqImbalance_toggled(), on_lnaGain_valueChanged(), on_lpf_changed(), on_lpFIR_changed(), on_lpFIREnable_toggled(), on_ncoEnable_toggled(), on_ncoFrequency_changed(), on_pgaGain_valueChanged(), on_sampleRate_changed(), on_swDecim_currentIndexChanged(), on_tiaGain_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 139 of file limesdrinputgui.cpp.
References m_settings, and LimeSDRInputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 132 of file limesdrinputgui.cpp.
References displaySettings(), LimeSDRInputSettings::m_centerFrequency, LimeSDRInputSettings::m_ncoEnable, LimeSDRInputSettings::m_ncoFrequency, m_settings, and sendSettings().
|
private |
Definition at line 435 of file limesdrinputgui.cpp.
References arg(), LimeSDRInputSettings::m_centerFrequency, LimeSDRInputSettings::m_ncoEnable, LimeSDRInputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_ncoEnable_toggled(), and on_ncoFrequency_changed().
|
private |
Definition at line 449 of file limesdrinputgui.cpp.
References arg(), LimeSDRInputSettings::m_centerFrequency, LimeSDRInputSettings::m_ncoEnable, LimeSDRInputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by on_centerFrequency_changed(), and on_transverter_clicked().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 110 of file limesdrinputgui.cpp.
|
private |
Definition at line 420 of file limesdrinputgui.cpp.
References arg(), LimeSDRInputSettings::m_devSampleRate, LimeSDRInputSettings::m_log2HardDecim, LimeSDRInputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_hwDecim_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 315 of file limesdrinputgui.cpp.
References arg(), LimeSDRInputSettings::m_devSampleRate, LimeSDRInputSettings::m_log2HardDecim, m_settings, and ui.
Referenced by displaySettings(), on_hwDecim_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 265 of file limesdrinputgui.cpp.
References LimeSDRInput::getLORange(), m_limeSDRInput, m_settings, LimeSDRInputSettings::m_transverterDeltaFrequency, LimeSDRInputSettings::m_transverterMode, and ui.
Referenced by on_transverter_clicked().
|
privateslot |
Definition at line 467 of file limesdrinputgui.cpp.
References LimeSDRInput::MsgConfigureLimeSDR::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_limeSDRInput, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by LimeSDRInputGUI().
|
private |
Definition at line 326 of file limesdrinputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 479 of file limesdrinputgui.cpp.
References LimeSDRInput::MsgGetStreamInfo::create(), LimeSDRInput::MsgGetDeviceInfo::create(), DeviceAPI::errorMessage(), DeviceSampleSource::getInputMessageQueue(), DeviceAPI::isBuddyLeader(), DeviceUISet::m_deviceAPI, m_deviceStatusCounter, m_deviceUISet, m_lastEngineState, m_limeSDRInput, m_statusCounter, MessageQueue::push(), DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by LimeSDRInputGUI().
|
private |
Center frequency in device.
Definition at line 64 of file limesdrinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 69 of file limesdrinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 57 of file limesdrinputgui.h.
Referenced by LimeSDRInputGUI(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 66 of file limesdrinputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 67 of file limesdrinputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 70 of file limesdrinputgui.h.
Referenced by handleInputMessages(), and LimeSDRInputGUI().
|
private |
Definition at line 65 of file limesdrinputgui.h.
Referenced by updateStatus().
|
private |
Same object as above but gives easy access to LimeSDRInput methods and attributes that are used intensively.
Definition at line 58 of file limesdrinputgui.h.
Referenced by displaySampleRate(), LimeSDRInputGUI(), on_record_toggled(), on_startStop_toggled(), updateFrequencyLimits(), updateHardware(), and updateStatus().
|
private |
Definition at line 63 of file limesdrinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 60 of file limesdrinputgui.h.
Referenced by displaySampleRate(), on_sampleRate_changed(), on_sampleRateMode_toggled(), and on_swDecim_currentIndexChanged().
|
private |
Definition at line 59 of file limesdrinputgui.h.
Referenced by deserialize(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleInputMessages(), handleMessage(), on_antenna_currentIndexChanged(), on_dcOffset_toggled(), on_extClock_clicked(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_hwDecim_currentIndexChanged(), on_iqImbalance_toggled(), on_lnaGain_valueChanged(), on_lpf_changed(), on_lpFIR_changed(), on_lpFIREnable_toggled(), on_ncoEnable_toggled(), on_ncoFrequency_changed(), on_pgaGain_valueChanged(), on_sampleRate_changed(), on_swDecim_currentIndexChanged(), on_tiaGain_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), updateADCRate(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 68 of file limesdrinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 62 of file limesdrinputgui.h.
Referenced by LimeSDRInputGUI().
|
private |
Definition at line 61 of file limesdrinputgui.h.
Referenced by LimeSDRInputGUI(), sendSettings(), and updateHardware().
|
private |
Definition at line 55 of file limesdrinputgui.h.
Referenced by displaySampleRate(), displaySettings(), handleMessage(), LimeSDRInputGUI(), on_extClock_clicked(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_lnaGain_valueChanged(), on_pgaGain_valueChanged(), on_record_toggled(), on_swDecim_currentIndexChanged(), on_transverter_clicked(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), updateADCRate(), updateFrequencyLimits(), updateStatus(), and ~LimeSDRInputGUI().