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 <xtrxoutputgui.h>
Public Member Functions | |
XTRXOutputGUI (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~XTRXOutputGUI () |
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_centerFrequency_changed (quint64 value) |
void | on_ncoFrequency_changed (qint64 value) |
void | on_ncoEnable_toggled (bool checked) |
void | on_sampleRate_changed (quint64 value) |
void | on_hwInterp_currentIndexChanged (int index) |
void | on_swInterp_currentIndexChanged (int index) |
void | on_lpf_changed (quint64 value) |
void | on_gain_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 | updateDACRate () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::XTRXOutputGUI * | ui |
DeviceUISet * | m_deviceUISet |
XTRXOutput * | m_XTRXOutput |
Same object as above but gives easy access to XTRXInput methods and attributes that are used intensively. More... | |
XTRXOutputSettings | 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 xtrxoutputgui.h.
|
explicit |
Definition at line 34 of file xtrxoutputgui.cpp.
References arg(), displaySettings(), XTRXOutput::getChannelIndex(), XTRXOutput::getLORange(), XTRXOutput::getLPRange(), DeviceAPI::getSampleSink(), XTRXOutput::getSRRange(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_statusTimer, m_updateTimer, m_XTRXOutput, openDeviceSettingsDialog(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 81 of file xtrxoutputgui.cpp.
References ui.
|
private |
Definition at line 455 of file xtrxoutputgui.cpp.
References m_doApplySettings.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 125 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 86 of file xtrxoutputgui.cpp.
|
private |
Definition at line 283 of file xtrxoutputgui.cpp.
References arg(), XTRXOutput::getSRRange(), XTRXOutputSettings::m_devSampleRate, XTRXOutputSettings::m_log2SoftInterp, m_sampleRateMode, m_settings, m_XTRXOutput, and ui.
Referenced by displaySettings(), on_sampleRateMode_toggled(), on_swInterp_currentIndexChanged(), and updateSampleRateAndFrequency().
|
private |
Definition at line 315 of file xtrxoutputgui.cpp.
References arg(), displaySampleRate(), XTRXOutputSettings::m_antennaPath, XTRXOutputSettings::m_extClock, XTRXOutputSettings::m_extClockFreq, XTRXOutputSettings::m_gain, XTRXOutputSettings::m_log2HardInterp, XTRXOutputSettings::m_log2SoftInterp, XTRXOutputSettings::m_lpfBW, XTRXOutputSettings::m_ncoEnable, XTRXOutputSettings::m_pwrmode, m_settings, setCenterFrequencyDisplay(), setNCODisplay(), ui, and updateDACRate().
Referenced by deserialize(), handleInputMessages(), handleMessage(), resetToDefaults(), setCenterFrequency(), and XTRXOutputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 108 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_centerFrequency, XTRXOutputSettings::m_ncoEnable, XTRXOutputSettings::m_ncoFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 96 of file xtrxoutputgui.cpp.
|
privateslot |
Definition at line 231 of file xtrxoutputgui.cpp.
References displaySettings(), DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), XTRXOutput::MsgConfigureXTRX::getSettings(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, m_settings, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by XTRXOutputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 141 of file xtrxoutputgui.cpp.
References arg(), blockApplySettings(), displaySettings(), XTRXOutput::MsgReportStreamInfo::getActive(), DeviceXTRXShared::MsgReportBuddyChange::getCenterFrequency(), DeviceXTRXShared::MsgReportBuddyChange::getDevSampleRate(), XTRXOutput::getDevSampleRate(), DeviceXTRXShared::MsgReportClockSourceChange::getExtClock(), DeviceXTRXShared::MsgReportClockSourceChange::getExtClockFeq(), XTRXOutput::MsgReportStreamInfo::getFifoFilledCount(), XTRXOutput::MsgReportStreamInfo::getFifoSize(), DeviceXTRXShared::MsgReportDeviceInfo::getGPSLocked(), DeviceXTRXShared::MsgReportBuddyChange::getLog2HardDecimInterp(), DeviceXTRXShared::MsgReportBuddyChange::getRxElseTx(), XTRXOutput::MsgStartStop::getStartStop(), XTRXOutput::MsgReportStreamInfo::getSuccess(), DeviceXTRXShared::MsgReportDeviceInfo::getTemperature(), XTRXOutputSettings::m_centerFrequency, XTRXOutputSettings::m_devSampleRate, XTRXOutputSettings::m_extClock, XTRXOutputSettings::m_extClockFreq, XTRXOutputSettings::m_log2HardInterp, m_settings, m_XTRXOutput, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 545 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_antennaPath, m_settings, and sendSettings().
|
privateslot |
Definition at line 469 of file xtrxoutputgui.cpp.
References sendSettings(), and setCenterFrequencySetting().
|
privateslot |
Definition at line 551 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_extClock, XTRXOutputSettings::m_extClockFreq, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 538 of file xtrxoutputgui.cpp.
References arg(), XTRXOutputSettings::m_gain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 501 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_log2HardInterp, m_settings, sendSettings(), setNCODisplay(), and updateDACRate().
|
privateslot |
Definition at line 532 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_lpfBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 482 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_ncoEnable, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 475 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_ncoFrequency, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 559 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_pwrmode, m_settings, and sendSettings().
|
privateslot |
Definition at line 489 of file xtrxoutputgui.cpp.
References XTRXOutputSettings::m_devSampleRate, XTRXOutputSettings::m_log2SoftInterp, m_sampleRateMode, m_settings, sendSettings(), setNCODisplay(), and updateDACRate().
|
privateslot |
Definition at line 565 of file xtrxoutputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 460 of file xtrxoutputgui.cpp.
References XTRXOutput::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_XTRXOutput, and MessageQueue::push().
|
privateslot |
Definition at line 514 of file xtrxoutputgui.cpp.
References displaySampleRate(), XTRXOutputSettings::m_devSampleRate, XTRXOutputSettings::m_log2SoftInterp, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 571 of file xtrxoutputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), XTRXOutputSettings::m_reverseAPIAddress, XTRXOutputSettings::m_reverseAPIDeviceIndex, XTRXOutputSettings::m_reverseAPIPort, m_settings, XTRXOutputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by XTRXOutputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 101 of file xtrxoutputgui.cpp.
References displaySettings(), m_settings, XTRXOutputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 382 of file xtrxoutputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_antenna_currentIndexChanged(), on_centerFrequency_changed(), on_extClock_clicked(), on_gain_valueChanged(), on_hwInterp_currentIndexChanged(), on_lpf_changed(), on_ncoEnable_toggled(), on_ncoFrequency_changed(), on_pwrmode_currentIndexChanged(), on_sampleRate_changed(), on_swInterp_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 120 of file xtrxoutputgui.cpp.
References m_settings, and XTRXOutputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 113 of file xtrxoutputgui.cpp.
References displaySettings(), XTRXOutputSettings::m_centerFrequency, XTRXOutputSettings::m_ncoEnable, XTRXOutputSettings::m_ncoFrequency, m_settings, and sendSettings().
|
private |
Definition at line 356 of file xtrxoutputgui.cpp.
References arg(), XTRXOutputSettings::m_centerFrequency, XTRXOutputSettings::m_ncoEnable, XTRXOutputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_ncoEnable_toggled(), and on_ncoFrequency_changed().
|
private |
Definition at line 370 of file xtrxoutputgui.cpp.
References arg(), XTRXOutputSettings::m_centerFrequency, XTRXOutputSettings::m_ncoEnable, XTRXOutputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by on_centerFrequency_changed().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 91 of file xtrxoutputgui.cpp.
|
private |
Definition at line 341 of file xtrxoutputgui.cpp.
References arg(), XTRXOutputSettings::m_devSampleRate, XTRXOutputSettings::m_log2HardInterp, XTRXOutputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_hwInterp_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 265 of file xtrxoutputgui.cpp.
References arg(), XTRXOutput::getClockGen(), m_XTRXOutput, and ui.
Referenced by displaySettings(), on_hwInterp_currentIndexChanged(), and on_sampleRate_changed().
|
privateslot |
Definition at line 388 of file xtrxoutputgui.cpp.
References XTRXOutput::MsgConfigureXTRX::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_settings, m_updateTimer, m_XTRXOutput, and MessageQueue::push().
Referenced by XTRXOutputGUI().
|
private |
Definition at line 276 of file xtrxoutputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 400 of file xtrxoutputgui.cpp.
References XTRXOutput::MsgGetStreamInfo::create(), XTRXOutput::MsgGetDeviceInfo::create(), DeviceAPI::errorMessage(), DeviceSampleSink::getInputMessageQueue(), DeviceAPI::isBuddyLeader(), DeviceUISet::m_deviceAPI, m_deviceStatusCounter, m_deviceUISet, m_lastEngineState, m_statusCounter, m_XTRXOutput, MessageQueue::push(), DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by XTRXOutputGUI().
|
private |
Center frequency in device.
Definition at line 64 of file xtrxoutputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 69 of file xtrxoutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 57 of file xtrxoutputgui.h.
Referenced by updateSampleRateAndFrequency(), updateStatus(), and XTRXOutputGUI().
|
private |
Definition at line 66 of file xtrxoutputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 67 of file xtrxoutputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 70 of file xtrxoutputgui.h.
Referenced by handleInputMessages(), and XTRXOutputGUI().
|
private |
Definition at line 65 of file xtrxoutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 63 of file xtrxoutputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 60 of file xtrxoutputgui.h.
Referenced by displaySampleRate(), on_sampleRate_changed(), on_sampleRateMode_toggled(), and on_swInterp_currentIndexChanged().
|
private |
Definition at line 59 of file xtrxoutputgui.h.
Referenced by deserialize(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleInputMessages(), handleMessage(), on_antenna_currentIndexChanged(), on_extClock_clicked(), on_gain_valueChanged(), on_hwInterp_currentIndexChanged(), on_lpf_changed(), on_ncoEnable_toggled(), on_ncoFrequency_changed(), on_pwrmode_currentIndexChanged(), on_sampleRate_changed(), on_swInterp_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), and updateHardware().
|
private |
Definition at line 68 of file xtrxoutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 62 of file xtrxoutputgui.h.
Referenced by XTRXOutputGUI().
|
private |
Definition at line 61 of file xtrxoutputgui.h.
Referenced by sendSettings(), updateHardware(), and XTRXOutputGUI().
|
private |
Same object as above but gives easy access to XTRXInput methods and attributes that are used intensively.
Definition at line 58 of file xtrxoutputgui.h.
Referenced by displaySampleRate(), handleMessage(), on_startStop_toggled(), updateDACRate(), updateHardware(), updateStatus(), and XTRXOutputGUI().
|
private |
Definition at line 55 of file xtrxoutputgui.h.
Referenced by displaySampleRate(), displaySettings(), handleMessage(), on_extClock_clicked(), on_gain_valueChanged(), on_swInterp_currentIndexChanged(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), updateDACRate(), updateStatus(), XTRXOutputGUI(), and ~XTRXOutputGUI().