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 <plutosdrinputgui.h>
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 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 | displayFcTooltip () |
void | sendSettings (bool forceSettings=false) |
void | blockApplySettings (bool block) |
void | updateSampleRateAndFrequency () |
void | setFIRBWLimits () |
void | setSampleRateLimits () |
void | updateFrequencyLimits () |
Private Attributes | |
Ui::PlutoSDRInputGUI * | ui |
DeviceUISet * | m_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 |
DeviceSampleSource * | m_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 |
Definition at line 38 of file plutosdrinputgui.h.
|
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().
|
virtual |
|
private |
Definition at line 446 of file plutosdrinputgui.cpp.
References m_doApplySettings.
Referenced by deserialize(), handleMessage(), and PlutoSDRInputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 126 of file plutosdrinputgui.cpp.
References blockApplySettings(), PlutoSDRInputSettings::deserialize(), displaySettings(), m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 89 of file plutosdrinputgui.cpp.
|
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().
|
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().
|
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().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 109 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 53 of file plutosdrinputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 99 of file plutosdrinputgui.cpp.
|
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().
|
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().
|
privateslot |
Definition at line 327 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_antennaPath, m_settings, PlutoSDRInputSettings::RFPATH_END, and sendSettings().
|
privateslot |
Definition at line 235 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_hwBBDCBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 204 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 217 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 261 of file plutosdrinputgui.cpp.
References displayFcTooltip(), PlutoSDRInputSettings::FC_POS_CENTER, PlutoSDRInputSettings::FC_POS_END, PlutoSDRInputSettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 320 of file plutosdrinputgui.cpp.
References arg(), PlutoSDRInputSettings::m_gain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 313 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::GAIN_END, PlutoSDRInputSettings::GAIN_MANUAL, PlutoSDRInputSettings::m_gainMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 241 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_hwIQCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 223 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 210 of file plutosdrinputgui.cpp.
References arg(), PlutoSDRInputSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 280 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_lpfBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 294 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_lpfFIRBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 300 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_lpfFIRlog2Decim, m_settings, sendSettings(), and setSampleRateLimits().
|
privateslot |
Definition at line 286 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_lpfFIREnable, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 307 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_lpfFIRGain, m_settings, and sendSettings().
|
privateslot |
Definition at line 192 of file plutosdrinputgui.cpp.
References PlutoSDRInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 229 of file plutosdrinputgui.cpp.
References PlutoSDRInputSettings::m_hwRFDCBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 268 of file plutosdrinputgui.cpp.
References displayFcTooltip(), PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_log2Decim, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 343 of file plutosdrinputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 183 of file plutosdrinputgui.cpp.
References PlutoSDRInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 248 of file plutosdrinputgui.cpp.
References displaySampleRate(), PlutoSDRInputSettings::m_devSampleRate, PlutoSDRInputSettings::m_log2Decim, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
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().
|
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().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 104 of file plutosdrinputgui.cpp.
Referenced by deserialize().
|
private |
Definition at line 428 of file plutosdrinputgui.cpp.
References m_forceSettings, and m_updateTimer.
Referenced by deserialize(), on_antenna_currentIndexChanged(), on_bbDCOffset_toggled(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_fcPos_currentIndexChanged(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_hwIQImbalance_toggled(), on_iqImbalance_toggled(), on_loPPM_valueChanged(), on_lpf_changed(), on_lpFIR_changed(), on_lpFIRDecimation_currentIndexChanged(), on_lpFIREnable_toggled(), on_lpFIRGain_currentIndexChanged(), on_rfDCOffset_toggled(), on_sampleRate_changed(), on_swDecim_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 121 of file plutosdrinputgui.cpp.
References m_settings, and PlutoSDRInputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 114 of file plutosdrinputgui.cpp.
References displaySettings(), PlutoSDRInputSettings::m_centerFrequency, m_settings, and sendSettings().
|
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().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 94 of file plutosdrinputgui.cpp.
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Center frequency in device.
Definition at line 66 of file plutosdrinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 58 of file plutosdrinputgui.h.
Referenced by PlutoSDRInputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 68 of file plutosdrinputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 61 of file plutosdrinputgui.h.
Referenced by sendSettings(), and updateHardware().
|
private |
Definition at line 70 of file plutosdrinputgui.h.
Referenced by handleInputMessages(), and PlutoSDRInputGui().
|
private |
Definition at line 67 of file plutosdrinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 65 of file plutosdrinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
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().
|
private |
Definition at line 64 of file plutosdrinputgui.h.
Referenced by on_record_toggled(), on_startStop_toggled(), PlutoSDRInputGui(), setFIRBWLimits(), updateFrequencyLimits(), updateHardware(), and updateStatus().
|
private |
Definition at line 59 of file plutosdrinputgui.h.
Referenced by deserialize(), displayFcTooltip(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_antenna_currentIndexChanged(), on_bbDCOffset_toggled(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_fcPos_currentIndexChanged(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_hwIQImbalance_toggled(), on_iqImbalance_toggled(), on_loPPM_valueChanged(), on_lpf_changed(), on_lpFIR_changed(), on_lpFIRDecimation_currentIndexChanged(), on_lpFIREnable_toggled(), on_lpFIRGain_currentIndexChanged(), on_rfDCOffset_toggled(), on_sampleRate_changed(), on_swDecim_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), serialize(), setCenterFrequency(), setFIRBWLimits(), setSampleRateLimits(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 69 of file plutosdrinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 63 of file plutosdrinputgui.h.
Referenced by PlutoSDRInputGui().
|
private |
Definition at line 62 of file plutosdrinputgui.h.
Referenced by PlutoSDRInputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 57 of file plutosdrinputgui.h.
Referenced by displayFcTooltip(), displaySampleRate(), displaySettings(), handleMessage(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_loPPM_valueChanged(), on_lpFIREnable_toggled(), on_record_toggled(), on_swDecim_currentIndexChanged(), on_transverter_clicked(), PlutoSDRInputGui(), setFIRBWLimits(), setSampleRateLimits(), updateFrequencyLimits(), updateStatus(), and ~PlutoSDRInputGui().