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 <rtlsdrgui.h>
Public Member Functions | |
RTLSDRGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~RTLSDRGui () |
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 Slots | |
void | handleInputMessages () |
void | on_centerFrequency_changed (quint64 value) |
void | on_sampleRate_changed (quint64 value) |
void | on_offsetTuning_toggled (bool checked) |
void | on_rfBW_changed (quint64 value) |
void | on_lowSampleRate_toggled (bool checked) |
void | on_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_decim_currentIndexChanged (int index) |
void | on_fcPos_currentIndexChanged (int index) |
void | on_ppm_valueChanged (int value) |
void | on_gain_valueChanged (int value) |
void | on_checkBox_stateChanged (int state) |
void | on_agc_stateChanged (int state) |
void | on_startStop_toggled (bool checked) |
void | on_record_toggled (bool checked) |
void | on_transverter_clicked () |
void | on_sampleRateMode_toggled (bool checked) |
void | openDeviceSettingsDialog (const QPoint &p) |
void | updateHardware () |
void | updateStatus () |
Private Member Functions | |
void | displayGains () |
void | displaySampleRate () |
void | displayFcTooltip () |
void | displaySettings () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | updateFrequencyLimits () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::RTLSDRGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
RTLSDRSettings | m_settings |
bool | m_sampleRateMode |
true: device, false: base band sample rate update mode More... | |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
std::vector< int > | m_gains |
RTLSDRInput * | m_sampleSource |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 36 of file rtlsdrgui.h.
|
explicit |
Definition at line 36 of file rtlsdrgui.cpp.
References displayGains(), displaySettings(), RTLSDRInput::getGains(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_gains, m_inputMessageQueue, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), RTLSDRInput::setMessageQueueToGUI(), ui, updateFrequencyLimits(), updateHardware(), and updateStatus().
|
virtual |
Definition at line 74 of file rtlsdrgui.cpp.
References ui.
|
private |
Definition at line 469 of file rtlsdrgui.cpp.
References m_doApplySettings.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 130 of file rtlsdrgui.cpp.
References RTLSDRSettings::deserialize(), displayGains(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 79 of file rtlsdrgui.cpp.
|
private |
Definition at line 295 of file rtlsdrgui.cpp.
References arg(), DeviceSampleSource::calculateFrequencyShift(), RTLSDRSettings::m_devSampleRate, RTLSDRSettings::m_fcPos, RTLSDRSettings::m_log2Decim, m_settings, and ui.
Referenced by displaySampleRate(), on_fcPos_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 224 of file rtlsdrgui.cpp.
References abs(), arg(), i, RTLSDRSettings::m_gain, m_gains, m_settings, and ui.
Referenced by deserialize(), handleMessage(), and RTLSDRGui().
|
private |
Definition at line 253 of file rtlsdrgui.cpp.
References arg(), displayFcTooltip(), RTLSDRSettings::m_devSampleRate, RTLSDRSettings::m_log2Decim, RTLSDRSettings::m_lowSampleRate, m_sampleRateMode, m_settings, RTLSDRInput::sampleRateHighRangeMax, RTLSDRInput::sampleRateHighRangeMin, RTLSDRInput::sampleRateLowRangeMax, RTLSDRInput::sampleRateLowRangeMin, and ui.
Referenced by displaySettings(), on_decim_currentIndexChanged(), on_lowSampleRate_toggled(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 306 of file rtlsdrgui.cpp.
References arg(), displaySampleRate(), RTLSDRSettings::m_agc, RTLSDRSettings::m_centerFrequency, RTLSDRSettings::m_dcBlock, RTLSDRSettings::m_fcPos, RTLSDRSettings::m_iqImbalance, RTLSDRSettings::m_log2Decim, RTLSDRSettings::m_loPpmCorrection, RTLSDRSettings::m_lowSampleRate, RTLSDRSettings::m_noModMode, RTLSDRSettings::m_offsetTuning, RTLSDRSettings::m_rfBandwidth, m_settings, RTLSDRSettings::m_transverterDeltaFrequency, RTLSDRSettings::m_transverterMode, ui, and updateFrequencyLimits().
Referenced by deserialize(), handleMessage(), resetToDefaults(), RTLSDRGui(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 101 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 89 of file rtlsdrgui.cpp.
|
privateslot |
Definition at line 174 of file rtlsdrgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by RTLSDRGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 147 of file rtlsdrgui.cpp.
References blockApplySettings(), displayGains(), displaySettings(), RTLSDRInput::MsgConfigureRTLSDR::getSettings(), RTLSDRInput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 497 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_agc, m_settings, and sendSettings().
|
privateslot |
Definition at line 334 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 474 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_centerFrequency, RTLSDRSettings::m_noModMode, m_settings, sendSettings(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 113 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 340 of file rtlsdrgui.cpp.
References displaySampleRate(), RTLSDRSettings::m_devSampleRate, RTLSDRSettings::m_log2Decim, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 358 of file rtlsdrgui.cpp.
References displayFcTooltip(), RTLSDRSettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 378 of file rtlsdrgui.cpp.
References abs(), arg(), RTLSDRSettings::m_gain, m_gains, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 119 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_iqImbalance, m_settings, and sendSettings().
|
privateslot |
Definition at line 527 of file rtlsdrgui.cpp.
References displaySampleRate(), RTLSDRSettings::m_devSampleRate, RTLSDRSettings::m_log2Decim, RTLSDRSettings::m_lowSampleRate, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 515 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_offsetTuning, m_settings, and sendSettings().
|
privateslot |
Definition at line 365 of file rtlsdrgui.cpp.
References arg(), RTLSDRSettings::m_loPpmCorrection, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 401 of file rtlsdrgui.cpp.
References RTLSDRInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 521 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_rfBandwidth, m_settings, and sendSettings().
|
privateslot |
Definition at line 503 of file rtlsdrgui.cpp.
References displayFcTooltip(), RTLSDRSettings::m_devSampleRate, RTLSDRSettings::m_log2Decim, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 423 of file rtlsdrgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 392 of file rtlsdrgui.cpp.
References RTLSDRInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 413 of file rtlsdrgui.cpp.
References RTLSDRSettings::m_centerFrequency, m_settings, RTLSDRSettings::m_transverterDeltaFrequency, RTLSDRSettings::m_transverterMode, sendSettings(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 544 of file rtlsdrgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), RTLSDRSettings::m_reverseAPIAddress, RTLSDRSettings::m_reverseAPIDeviceIndex, RTLSDRSettings::m_reverseAPIPort, m_settings, RTLSDRSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by RTLSDRGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 94 of file rtlsdrgui.cpp.
References displaySettings(), m_settings, RTLSDRSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 326 of file rtlsdrgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_agc_stateChanged(), on_centerFrequency_changed(), on_checkBox_stateChanged(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_gain_valueChanged(), on_iqImbalance_toggled(), on_lowSampleRate_toggled(), on_offsetTuning_toggled(), on_ppm_valueChanged(), on_rfBW_changed(), on_sampleRate_changed(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 125 of file rtlsdrgui.cpp.
References m_settings, and RTLSDRSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 106 of file rtlsdrgui.cpp.
References displaySettings(), RTLSDRSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 84 of file rtlsdrgui.cpp.
|
private |
Definition at line 209 of file rtlsdrgui.cpp.
References RTLSDRInput::frequencyHighRangeMax, RTLSDRInput::frequencyHighRangeMin, RTLSDRInput::frequencyLowRangeMax, RTLSDRInput::frequencyLowRangeMin, RTLSDRSettings::m_noModMode, m_settings, RTLSDRSettings::m_transverterDeltaFrequency, RTLSDRSettings::m_transverterMode, and ui.
Referenced by displaySettings(), on_checkBox_stateChanged(), on_transverter_clicked(), and RTLSDRGui().
|
privateslot |
Definition at line 429 of file rtlsdrgui.cpp.
References RTLSDRInput::MsgConfigureRTLSDR::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by RTLSDRGui().
|
private |
Definition at line 202 of file rtlsdrgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 440 of file rtlsdrgui.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 RTLSDRGui().
|
private |
Center frequency in device.
Definition at line 68 of file rtlsdrgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 58 of file rtlsdrgui.h.
Referenced by RTLSDRGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 59 of file rtlsdrgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 60 of file rtlsdrgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 65 of file rtlsdrgui.h.
Referenced by displayGains(), on_gain_valueChanged(), and RTLSDRGui().
|
private |
Definition at line 70 of file rtlsdrgui.h.
Referenced by handleInputMessages(), and RTLSDRGui().
|
private |
Definition at line 69 of file rtlsdrgui.h.
Referenced by updateStatus().
|
private |
Definition at line 67 of file rtlsdrgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 62 of file rtlsdrgui.h.
Referenced by displaySampleRate(), on_decim_currentIndexChanged(), on_lowSampleRate_toggled(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 66 of file rtlsdrgui.h.
Referenced by on_record_toggled(), on_startStop_toggled(), RTLSDRGui(), and updateHardware().
|
private |
Definition at line 61 of file rtlsdrgui.h.
Referenced by deserialize(), displayFcTooltip(), displayGains(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_agc_stateChanged(), on_centerFrequency_changed(), on_checkBox_stateChanged(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_gain_valueChanged(), on_iqImbalance_toggled(), on_lowSampleRate_toggled(), on_offsetTuning_toggled(), on_ppm_valueChanged(), on_rfBW_changed(), on_sampleRate_changed(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 64 of file rtlsdrgui.h.
Referenced by RTLSDRGui().
|
private |
Definition at line 63 of file rtlsdrgui.h.
Referenced by RTLSDRGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 56 of file rtlsdrgui.h.
Referenced by displayFcTooltip(), displayGains(), displaySampleRate(), displaySettings(), handleMessage(), on_checkBox_stateChanged(), on_decim_currentIndexChanged(), on_gain_valueChanged(), on_lowSampleRate_toggled(), on_ppm_valueChanged(), on_record_toggled(), on_transverter_clicked(), RTLSDRGui(), updateFrequencyLimits(), updateStatus(), and ~RTLSDRGui().