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 <xtrxinputgui.h>
Public Member Functions | |
XTRXInputGUI (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~XTRXInputGUI () |
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_startStop_toggled (bool checked) |
void | on_record_toggled (bool checked) |
void | on_centerFrequency_changed (quint64 value) |
void | on_ncoFrequency_changed (qint64 value) |
void | on_ncoEnable_toggled (bool checked) |
void | on_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_sampleRate_changed (quint64 value) |
void | on_hwDecim_currentIndexChanged (int index) |
void | on_swDecim_currentIndexChanged (int index) |
void | on_lpf_changed (quint64 value) |
void | on_gainMode_currentIndexChanged (int index) |
void | on_gain_valueChanged (int value) |
void | on_lnaGain_valueChanged (int value) |
void | on_tiaGain_currentIndexChanged (int index) |
void | on_pgaGain_valueChanged (int value) |
void | on_antenna_currentIndexChanged (int index) |
void | on_extClock_clicked () |
void | on_pwrmode_currentIndexChanged (int index) |
void | on_sampleRateMode_toggled (bool checked) |
void | updateHardware () |
void | updateStatus () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | displaySettings () |
void | displaySampleRate () |
void | setNCODisplay () |
void | setCenterFrequencyDisplay () |
void | setCenterFrequencySetting (uint64_t kHzValue) |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | updateADCRate () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::XTRXInputGUI * | ui |
DeviceUISet * | m_deviceUISet |
XTRXInput * | m_XTRXInput |
Same object as above but gives easy access to XTRXInput methods and attributes that are used intensively. More... | |
XTRXInputSettings | 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 36 of file xtrxinputgui.h.
|
explicit |
Definition at line 36 of file xtrxinputgui.cpp.
References arg(), displaySettings(), XTRXInput::getChannelIndex(), XTRXInput::getLORange(), XTRXInput::getLPRange(), DeviceAPI::getSampleSource(), XTRXInput::getSRRange(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_statusTimer, m_updateTimer, m_XTRXInput, openDeviceSettingsDialog(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 83 of file xtrxinputgui.cpp.
References ui.
|
private |
Definition at line 480 of file xtrxinputgui.cpp.
References m_doApplySettings.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 127 of file xtrxinputgui.cpp.
References XTRXInputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 88 of file xtrxinputgui.cpp.
|
private |
Definition at line 285 of file xtrxinputgui.cpp.
References arg(), XTRXInput::getSRRange(), XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_log2SoftDecim, m_sampleRateMode, m_settings, m_XTRXInput, and ui.
Referenced by displaySettings(), on_hwDecim_currentIndexChanged(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 317 of file xtrxinputgui.cpp.
References arg(), displaySampleRate(), XTRXInputSettings::GAIN_AUTO, XTRXInputSettings::m_antennaPath, XTRXInputSettings::m_dcBlock, XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, XTRXInputSettings::m_gain, XTRXInputSettings::m_gainMode, XTRXInputSettings::m_iqCorrection, XTRXInputSettings::m_lnaGain, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_log2SoftDecim, XTRXInputSettings::m_lpfBW, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_pgaGain, XTRXInputSettings::m_pwrmode, m_settings, XTRXInputSettings::m_tiaGain, setCenterFrequencyDisplay(), setNCODisplay(), ui, and updateADCRate().
Referenced by deserialize(), handleInputMessages(), handleMessage(), resetToDefaults(), setCenterFrequency(), and XTRXInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 110 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 98 of file xtrxinputgui.cpp.
|
privateslot |
Definition at line 233 of file xtrxinputgui.cpp.
References displaySettings(), DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), XTRXInput::MsgConfigureXTRX::getSettings(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, m_settings, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by XTRXInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 143 of file xtrxinputgui.cpp.
References arg(), blockApplySettings(), displaySettings(), XTRXInput::MsgReportStreamInfo::getActive(), DeviceXTRXShared::MsgReportBuddyChange::getCenterFrequency(), DeviceXTRXShared::MsgReportBuddyChange::getDevSampleRate(), XTRXInput::getDevSampleRate(), DeviceXTRXShared::MsgReportClockSourceChange::getExtClock(), DeviceXTRXShared::MsgReportClockSourceChange::getExtClockFeq(), XTRXInput::MsgReportStreamInfo::getFifoFilledCount(), XTRXInput::MsgReportStreamInfo::getFifoSize(), DeviceXTRXShared::MsgReportDeviceInfo::getGPSLocked(), DeviceXTRXShared::MsgReportBuddyChange::getLog2HardDecimInterp(), DeviceXTRXShared::MsgReportBuddyChange::getRxElseTx(), XTRXInput::MsgStartStop::getStartStop(), XTRXInput::MsgReportStreamInfo::getSuccess(), DeviceXTRXShared::MsgReportDeviceInfo::getTemperature(), XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, XTRXInputSettings::m_log2HardDecim, m_settings, m_XTRXInput, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 633 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_antennaPath, m_settings, and sendSettings().
|
privateslot |
Definition at line 506 of file xtrxinputgui.cpp.
References sendSettings(), and setCenterFrequencySetting().
|
privateslot |
Definition at line 526 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 639 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_extClock, XTRXInputSettings::m_extClockFreq, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 606 of file xtrxinputgui.cpp.
References arg(), XTRXInputSettings::m_gain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 584 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_gainMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 550 of file xtrxinputgui.cpp.
References displaySampleRate(), XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_log2SoftDecim, m_sampleRateMode, m_settings, sendSettings(), setNCODisplay(), ui, and updateADCRate().
|
privateslot |
Definition at line 532 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 613 of file xtrxinputgui.cpp.
References arg(), XTRXInputSettings::m_lnaGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 578 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_lpfBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 519 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_ncoEnable, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 512 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_ncoFrequency, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 626 of file xtrxinputgui.cpp.
References arg(), XTRXInputSettings::m_pgaGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 647 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_pwrmode, m_settings, and sendSettings().
|
privateslot |
Definition at line 494 of file xtrxinputgui.cpp.
References XTRXInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_XTRXInput, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 538 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_log2SoftDecim, m_sampleRateMode, m_settings, sendSettings(), setNCODisplay(), and updateADCRate().
|
privateslot |
Definition at line 653 of file xtrxinputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 485 of file xtrxinputgui.cpp.
References XTRXInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_XTRXInput, and MessageQueue::push().
|
privateslot |
Definition at line 568 of file xtrxinputgui.cpp.
References XTRXInputSettings::m_log2SoftDecim, m_settings, and sendSettings().
|
privateslot |
Definition at line 620 of file xtrxinputgui.cpp.
References m_settings, XTRXInputSettings::m_tiaGain, and sendSettings().
|
privateslot |
Definition at line 659 of file xtrxinputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), XTRXInputSettings::m_reverseAPIAddress, XTRXInputSettings::m_reverseAPIDeviceIndex, XTRXInputSettings::m_reverseAPIPort, m_settings, XTRXInputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by XTRXInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 103 of file xtrxinputgui.cpp.
References displaySettings(), m_settings, XTRXInputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 407 of file xtrxinputgui.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_ncoEnable_toggled(), on_ncoFrequency_changed(), on_pgaGain_valueChanged(), on_pwrmode_currentIndexChanged(), on_sampleRate_changed(), on_swDecim_currentIndexChanged(), on_tiaGain_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 122 of file xtrxinputgui.cpp.
References m_settings, and XTRXInputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 115 of file xtrxinputgui.cpp.
References displaySettings(), XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, m_settings, and sendSettings().
|
private |
Definition at line 381 of file xtrxinputgui.cpp.
References arg(), XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_ncoEnable_toggled(), and on_ncoFrequency_changed().
|
private |
Definition at line 395 of file xtrxinputgui.cpp.
References arg(), XTRXInputSettings::m_centerFrequency, XTRXInputSettings::m_ncoEnable, XTRXInputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by on_centerFrequency_changed().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 93 of file xtrxinputgui.cpp.
|
private |
Definition at line 366 of file xtrxinputgui.cpp.
References arg(), XTRXInputSettings::m_devSampleRate, XTRXInputSettings::m_log2HardDecim, XTRXInputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_hwDecim_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 267 of file xtrxinputgui.cpp.
References arg(), XTRXInput::getClockGen(), m_XTRXInput, and ui.
Referenced by displaySettings(), on_hwDecim_currentIndexChanged(), and on_sampleRate_changed().
|
privateslot |
Definition at line 413 of file xtrxinputgui.cpp.
References XTRXInput::MsgConfigureXTRX::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_settings, m_updateTimer, m_XTRXInput, and MessageQueue::push().
Referenced by XTRXInputGUI().
|
private |
Definition at line 278 of file xtrxinputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 425 of file xtrxinputgui.cpp.
References XTRXInput::MsgGetStreamInfo::create(), XTRXInput::MsgGetDeviceInfo::create(), DeviceAPI::errorMessage(), DeviceSampleSource::getInputMessageQueue(), DeviceAPI::isBuddyLeader(), DeviceUISet::m_deviceAPI, m_deviceStatusCounter, m_deviceUISet, m_lastEngineState, m_statusCounter, m_XTRXInput, MessageQueue::push(), DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by XTRXInputGUI().
|
private |
Center frequency in device.
Definition at line 65 of file xtrxinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 70 of file xtrxinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 58 of file xtrxinputgui.h.
Referenced by updateSampleRateAndFrequency(), updateStatus(), and XTRXInputGUI().
|
private |
Definition at line 67 of file xtrxinputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 68 of file xtrxinputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 71 of file xtrxinputgui.h.
Referenced by handleInputMessages(), and XTRXInputGUI().
|
private |
Definition at line 66 of file xtrxinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 64 of file xtrxinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 61 of file xtrxinputgui.h.
Referenced by displaySampleRate(), on_hwDecim_currentIndexChanged(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 60 of file xtrxinputgui.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_ncoEnable_toggled(), on_ncoFrequency_changed(), on_pgaGain_valueChanged(), on_pwrmode_currentIndexChanged(), on_sampleRate_changed(), on_swDecim_currentIndexChanged(), on_tiaGain_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), and updateHardware().
|
private |
Definition at line 69 of file xtrxinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 63 of file xtrxinputgui.h.
Referenced by XTRXInputGUI().
|
private |
Definition at line 62 of file xtrxinputgui.h.
Referenced by sendSettings(), updateHardware(), and XTRXInputGUI().
|
private |
Same object as above but gives easy access to XTRXInput methods and attributes that are used intensively.
Definition at line 59 of file xtrxinputgui.h.
Referenced by displaySampleRate(), handleMessage(), on_record_toggled(), on_startStop_toggled(), updateADCRate(), updateHardware(), updateStatus(), and XTRXInputGUI().
|
private |
Definition at line 56 of file xtrxinputgui.h.
Referenced by displaySampleRate(), displaySettings(), handleMessage(), on_extClock_clicked(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_hwDecim_currentIndexChanged(), on_lnaGain_valueChanged(), on_pgaGain_valueChanged(), on_record_toggled(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), updateADCRate(), updateStatus(), XTRXInputGUI(), and ~XTRXInputGUI().