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 <testsourcegui.h>
Public Member Functions | |
TestSourceGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~TestSourceGui () |
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 | blockApplySettings (bool block) |
void | displaySettings () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | displayAmplitude () |
void | updateAmpCoarseLimit () |
void | updateAmpFineLimit () |
void | updateFrequencyShiftLimit () |
Private Attributes | |
Ui::TestSourceGui * | ui |
DeviceUISet * | m_deviceUISet |
TestSourceSettings | m_settings |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
bool | m_doApplySettings |
bool | m_forceSettings |
DeviceSampleSource * | m_sampleSource |
std::size_t | m_tickCount |
int | m_deviceSampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 36 of file testsourcegui.h.
|
explicit |
Definition at line 41 of file testsourcegui.cpp.
References arg(), displaySettings(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), DeviceSampleSource::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 77 of file testsourcegui.cpp.
References ui.
|
inlineprivate |
Definition at line 71 of file testsourcegui.h.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 121 of file testsourcegui.cpp.
References TestSourceSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 82 of file testsourcegui.cpp.
|
private |
Definition at line 295 of file testsourcegui.cpp.
References arg(), CalcDb::dbPower(), and ui.
Referenced by displaySettings(), on_amplitudeCoarse_valueChanged(), on_amplitudeFine_valueChanged(), and on_sampleSize_currentIndexChanged().
|
private |
Definition at line 371 of file testsourcegui.cpp.
References arg(), blockApplySettings(), displayAmplitude(), TestSourceSettings::m_amModulation, TestSourceSettings::m_amplitudeBits, TestSourceSettings::m_autoCorrOptions, TestSourceSettings::m_centerFrequency, TestSourceSettings::m_dcFactor, TestSourceSettings::m_fcPos, TestSourceSettings::m_fmDeviation, TestSourceSettings::m_frequencyShift, TestSourceSettings::m_iFactor, TestSourceSettings::m_log2Decim, TestSourceSettings::m_modulation, TestSourceSettings::m_modulationTone, TestSourceSettings::m_phaseImbalance, TestSourceSettings::m_qFactor, TestSourceSettings::m_sampleRate, TestSourceSettings::m_sampleSizeIndex, m_settings, ui, updateAmpCoarseLimit(), updateAmpFineLimit(), and updateFrequencyShiftLimit().
Referenced by deserialize(), handleMessage(), resetToDefaults(), setCenterFrequency(), and TestSourceGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 104 of file testsourcegui.cpp.
References TestSourceSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 92 of file testsourcegui.cpp.
|
privateslot |
Definition at line 486 of file testsourcegui.cpp.
References DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_deviceSampleRate, m_inputMessageQueue, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by TestSourceGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 460 of file testsourcegui.cpp.
References blockApplySettings(), displaySettings(), TestSourceInput::MsgConfigureTestSource::getSettings(), TestSourceInput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 241 of file testsourcegui.cpp.
References arg(), TestSourceSettings::m_amModulation, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 207 of file testsourcegui.cpp.
References displayAmplitude(), TestSourceSettings::m_amplitudeBits, m_settings, sendSettings(), ui, and updateAmpFineLimit().
|
privateslot |
Definition at line 216 of file testsourcegui.cpp.
References displayAmplitude(), TestSourceSettings::m_amplitudeBits, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 149 of file testsourcegui.cpp.
References TestSourceSettings::AutoCorrLast, TestSourceSettings::m_autoCorrOptions, m_settings, and sendSettings().
|
privateslot |
Definition at line 143 of file testsourcegui.cpp.
References TestSourceSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 255 of file testsourcegui.cpp.
References arg(), TestSourceSettings::m_dcFactor, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 165 of file testsourcegui.cpp.
References TestSourceSettings::m_log2Decim, m_settings, and sendSettings().
|
privateslot |
Definition at line 175 of file testsourcegui.cpp.
References TestSourceSettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 248 of file testsourcegui.cpp.
References arg(), TestSourceSettings::m_fmDeviation, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 159 of file testsourcegui.cpp.
References TestSourceSettings::m_frequencyShift, m_settings, and sendSettings().
|
privateslot |
Definition at line 262 of file testsourcegui.cpp.
References arg(), TestSourceSettings::m_iFactor, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 224 of file testsourcegui.cpp.
References TestSourceSettings::m_modulation, m_settings, TestSourceSettings::ModulationLast, and sendSettings().
|
privateslot |
Definition at line 234 of file testsourcegui.cpp.
References arg(), TestSourceSettings::m_modulationTone, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 276 of file testsourcegui.cpp.
References arg(), TestSourceSettings::m_phaseImbalance, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 269 of file testsourcegui.cpp.
References arg(), TestSourceSettings::m_qFactor, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 283 of file testsourcegui.cpp.
References TestSourceInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 185 of file testsourcegui.cpp.
References TestSourceSettings::m_frequencyShift, TestSourceSettings::m_sampleRate, m_settings, sendSettings(), ui, and updateFrequencyShiftLimit().
|
privateslot |
Definition at line 193 of file testsourcegui.cpp.
References displayAmplitude(), TestSourceSettings::m_amplitudeBits, TestSourceSettings::m_sampleSizeIndex, m_settings, sendSettings(), ui, updateAmpCoarseLimit(), and updateAmpFineLimit().
|
privateslot |
Definition at line 134 of file testsourcegui.cpp.
References TestSourceInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 521 of file testsourcegui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), TestSourceSettings::m_reverseAPIAddress, TestSourceSettings::m_reverseAPIDeviceIndex, TestSourceSettings::m_reverseAPIPort, m_settings, TestSourceSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by TestSourceGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 97 of file testsourcegui.cpp.
References displaySettings(), m_settings, TestSourceSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 413 of file testsourcegui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_amModulation_valueChanged(), on_amplitudeCoarse_valueChanged(), on_amplitudeFine_valueChanged(), on_autoCorr_currentIndexChanged(), on_centerFrequency_changed(), on_dcBias_valueChanged(), on_decimation_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_fmDeviation_valueChanged(), on_frequencyShift_changed(), on_iBias_valueChanged(), on_modulation_currentIndexChanged(), on_modulationFrequency_valueChanged(), on_phaseImbalance_valueChanged(), on_qBias_valueChanged(), on_sampleRate_changed(), on_sampleSize_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 116 of file testsourcegui.cpp.
References m_settings, and TestSourceSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 109 of file testsourcegui.cpp.
References displaySettings(), TestSourceSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 87 of file testsourcegui.cpp.
|
private |
Definition at line 319 of file testsourcegui.cpp.
References ui.
Referenced by displaySettings(), and on_sampleSize_currentIndexChanged().
|
private |
Definition at line 336 of file testsourcegui.cpp.
References ui.
Referenced by displaySettings(), on_amplitudeCoarse_valueChanged(), and on_sampleSize_currentIndexChanged().
|
private |
Definition at line 365 of file testsourcegui.cpp.
References ui.
Referenced by displaySettings(), and on_sampleRate_changed().
|
privateslot |
Definition at line 420 of file testsourcegui.cpp.
References TestSourceInput::MsgConfigureTestSource::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by TestSourceGui().
|
private |
Definition at line 514 of file testsourcegui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceSampleRate, m_deviceUISet, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 431 of file testsourcegui.cpp.
References DeviceAPI::errorMessage(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_lastEngineState, DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by TestSourceGui().
|
private |
Center frequency in device.
Definition at line 67 of file testsourcegui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 66 of file testsourcegui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 58 of file testsourcegui.h.
Referenced by TestSourceGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 62 of file testsourcegui.h.
Referenced by on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 63 of file testsourcegui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 69 of file testsourcegui.h.
Referenced by handleInputMessages(), and TestSourceGui().
|
private |
Definition at line 68 of file testsourcegui.h.
Referenced by updateStatus().
|
private |
Definition at line 64 of file testsourcegui.h.
Referenced by on_record_toggled(), on_startStop_toggled(), TestSourceGui(), and updateHardware().
|
private |
Definition at line 59 of file testsourcegui.h.
Referenced by deserialize(), displaySettings(), getCenterFrequency(), handleMessage(), on_amModulation_valueChanged(), on_amplitudeCoarse_valueChanged(), on_amplitudeFine_valueChanged(), on_autoCorr_currentIndexChanged(), on_centerFrequency_changed(), on_dcBias_valueChanged(), on_decimation_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_fmDeviation_valueChanged(), on_frequencyShift_changed(), on_iBias_valueChanged(), on_modulation_currentIndexChanged(), on_modulationFrequency_valueChanged(), on_phaseImbalance_valueChanged(), on_qBias_valueChanged(), on_sampleRate_changed(), on_sampleSize_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), and updateHardware().
|
private |
Definition at line 61 of file testsourcegui.h.
Referenced by TestSourceGui().
|
private |
Definition at line 65 of file testsourcegui.h.
|
private |
Definition at line 60 of file testsourcegui.h.
Referenced by sendSettings(), TestSourceGui(), and updateHardware().
|
private |
Definition at line 56 of file testsourcegui.h.
Referenced by displayAmplitude(), displaySettings(), handleMessage(), on_amModulation_valueChanged(), on_amplitudeCoarse_valueChanged(), on_amplitudeFine_valueChanged(), on_dcBias_valueChanged(), on_fmDeviation_valueChanged(), on_iBias_valueChanged(), on_modulationFrequency_valueChanged(), on_phaseImbalance_valueChanged(), on_qBias_valueChanged(), on_record_toggled(), on_sampleRate_changed(), on_sampleSize_currentIndexChanged(), TestSourceGui(), updateAmpCoarseLimit(), updateAmpFineLimit(), updateFrequencyShiftLimit(), updateSampleRateAndFrequency(), updateStatus(), and ~TestSourceGui().