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 <limesdroutputgui.h>
Public Member Functions | |
LimeSDROutputGUI (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~LimeSDROutputGUI () |
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_lpFIREnable_toggled (bool checked) |
void | on_lpFIR_changed (quint64 value) |
void | on_gain_valueChanged (int value) |
void | on_antenna_currentIndexChanged (int index) |
void | on_extClock_clicked () |
void | on_transverter_clicked () |
void | on_sampleRateMode_toggled (bool checked) |
void | openDeviceSettingsDialog (const QPoint &p) |
void | updateHardware () |
void | updateStatus () |
Private Member Functions | |
void | displaySettings () |
void | displaySampleRate () |
void | setNCODisplay () |
void | setCenterFrequencyDisplay () |
void | setCenterFrequencySetting (uint64_t kHzValue) |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | updateDACRate () |
void | updateFrequencyLimits () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::LimeSDROutputGUI * | ui |
DeviceUISet * | m_deviceUISet |
LimeSDROutput * | m_limeSDROutput |
Same object as above but gives easy access to LimeSDROutput methods and attributes that are used intensively. More... | |
LimeSDROutputSettings | 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 limesdroutputgui.h.
|
explicit |
Definition at line 32 of file limesdroutputgui.cpp.
References arg(), displaySettings(), LimeSDROutput::getChannelIndex(), DeviceAPI::getDeviceUID(), LimeSDROutput::getLimeType(), LimeSDROutput::getLORange(), LimeSDROutput::getLPRange(), DeviceAPI::getSampleSink(), LimeSDROutput::getSRRange(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceLimeSDRParams::LimeMini, DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_limeSDROutput, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), sendSettings(), ui, updateHardware(), and updateStatus().
|
virtual |
|
private |
Definition at line 509 of file limesdroutputgui.cpp.
References m_doApplySettings.
Referenced by handleInputMessages(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 145 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 106 of file limesdroutputgui.cpp.
|
private |
Definition at line 332 of file limesdroutputgui.cpp.
References arg(), LimeSDROutput::getSRRange(), LimeSDROutputSettings::m_devSampleRate, m_limeSDROutput, LimeSDROutputSettings::m_log2SoftInterp, m_sampleRateMode, m_settings, and ui.
Referenced by displaySettings(), on_sampleRateMode_toggled(), on_swInterp_currentIndexChanged(), and updateSampleRateAndFrequency().
|
private |
Definition at line 364 of file limesdroutputgui.cpp.
References arg(), displaySampleRate(), LimeSDROutputSettings::m_antennaPath, LimeSDROutputSettings::m_extClock, LimeSDROutputSettings::m_extClockFreq, LimeSDROutputSettings::m_gain, LimeSDROutputSettings::m_log2HardInterp, LimeSDROutputSettings::m_log2SoftInterp, LimeSDROutputSettings::m_lpfBW, LimeSDROutputSettings::m_lpfFIRBW, LimeSDROutputSettings::m_lpfFIREnable, LimeSDROutputSettings::m_ncoEnable, m_settings, LimeSDROutputSettings::m_transverterDeltaFrequency, LimeSDROutputSettings::m_transverterMode, setCenterFrequencyDisplay(), setNCODisplay(), ui, and updateDACRate().
Referenced by deserialize(), handleInputMessages(), handleMessage(), LimeSDROutputGUI(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 128 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_centerFrequency, LimeSDROutputSettings::m_ncoEnable, LimeSDROutputSettings::m_ncoFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 52 of file limesdroutputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 116 of file limesdroutputgui.cpp.
|
privateslot |
Definition at line 272 of file limesdroutputgui.cpp.
References blockApplySettings(), displaySettings(), Message::getIdentifier(), LimeSDROutput::MsgConfigureLimeSDR::getSettings(), LimeSDROutput::MsgStartStop::getStartStop(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, m_settings, Message::match(), MessageQueue::pop(), ui, and updateSampleRateAndFrequency().
Referenced by LimeSDROutputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 178 of file limesdroutputgui.cpp.
References arg(), blockApplySettings(), displaySettings(), LimeSDROutput::MsgReportStreamInfo::getActive(), DeviceLimeSDRShared::MsgReportBuddyChange::getCenterFrequency(), DeviceLimeSDRShared::MsgReportBuddyChange::getDevSampleRate(), LimeSDROutput::MsgReportStreamInfo::getDroppedPackets(), DeviceLimeSDRShared::MsgReportClockSourceChange::getExtClock(), DeviceLimeSDRShared::MsgReportClockSourceChange::getExtClockFeq(), LimeSDROutput::MsgReportStreamInfo::getFifoFilledCount(), LimeSDROutput::MsgReportStreamInfo::getFifoSize(), DeviceLimeSDRShared::MsgReportDeviceInfo::getGPIOPins(), LimeSDROutput::MsgReportStreamInfo::getLinkRate(), DeviceLimeSDRShared::MsgReportBuddyChange::getLog2HardDecimInterp(), LimeSDROutput::MsgReportStreamInfo::getOverrun(), DeviceLimeSDRShared::MsgReportBuddyChange::getRxElseTx(), LimeSDROutput::MsgConfigureLimeSDR::getSettings(), LimeSDROutput::MsgReportStreamInfo::getSuccess(), DeviceLimeSDRShared::MsgReportDeviceInfo::getTemperature(), LimeSDROutput::MsgReportStreamInfo::getUnderrun(), LimeSDROutputSettings::m_centerFrequency, LimeSDROutputSettings::m_devSampleRate, LimeSDROutputSettings::m_extClock, LimeSDROutputSettings::m_extClockFreq, LimeSDROutputSettings::m_log2HardInterp, m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 608 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_antennaPath, m_settings, and sendSettings().
|
privateslot |
Definition at line 523 of file limesdroutputgui.cpp.
References sendSettings(), and setCenterFrequencySetting().
|
privateslot |
Definition at line 614 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_extClock, LimeSDROutputSettings::m_extClockFreq, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 601 of file limesdroutputgui.cpp.
References arg(), LimeSDROutputSettings::m_gain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 555 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_log2HardInterp, m_settings, sendSettings(), setNCODisplay(), and updateDACRate().
|
privateslot |
Definition at line 583 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_lpfBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 595 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_lpfFIRBW, m_settings, and sendSettings().
|
privateslot |
Definition at line 589 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_lpfFIREnable, m_settings, and sendSettings().
|
privateslot |
Definition at line 536 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_ncoEnable, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 529 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_ncoFrequency, m_settings, sendSettings(), and setCenterFrequencyDisplay().
|
privateslot |
Definition at line 543 of file limesdroutputgui.cpp.
References LimeSDROutputSettings::m_devSampleRate, LimeSDROutputSettings::m_log2SoftInterp, m_sampleRateMode, m_settings, sendSettings(), setNCODisplay(), and updateDACRate().
|
privateslot |
Definition at line 632 of file limesdroutputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 514 of file limesdroutputgui.cpp.
References LimeSDROutput::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_limeSDROutput, and MessageQueue::push().
|
privateslot |
Definition at line 565 of file limesdroutputgui.cpp.
References displaySampleRate(), LimeSDROutputSettings::m_devSampleRate, LimeSDROutputSettings::m_log2SoftInterp, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 622 of file limesdroutputgui.cpp.
References m_settings, LimeSDROutputSettings::m_transverterDeltaFrequency, LimeSDROutputSettings::m_transverterMode, sendSettings(), setCenterFrequencySetting(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 638 of file limesdroutputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), LimeSDROutputSettings::m_reverseAPIAddress, LimeSDROutputSettings::m_reverseAPIDeviceIndex, LimeSDROutputSettings::m_reverseAPIPort, m_settings, LimeSDROutputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by LimeSDROutputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 121 of file limesdroutputgui.cpp.
References displaySettings(), m_settings, LimeSDROutputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 436 of file limesdroutputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), LimeSDROutputGUI(), on_antenna_currentIndexChanged(), on_centerFrequency_changed(), on_extClock_clicked(), on_gain_valueChanged(), on_hwInterp_currentIndexChanged(), on_lpf_changed(), on_lpFIR_changed(), on_lpFIREnable_toggled(), on_ncoEnable_toggled(), on_ncoFrequency_changed(), on_sampleRate_changed(), on_swInterp_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 140 of file limesdroutputgui.cpp.
References m_settings, and LimeSDROutputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 133 of file limesdroutputgui.cpp.
References displaySettings(), LimeSDROutputSettings::m_centerFrequency, LimeSDROutputSettings::m_ncoEnable, LimeSDROutputSettings::m_ncoFrequency, m_settings, and sendSettings().
|
private |
Definition at line 410 of file limesdroutputgui.cpp.
References arg(), LimeSDROutputSettings::m_centerFrequency, LimeSDROutputSettings::m_ncoEnable, LimeSDROutputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_ncoEnable_toggled(), and on_ncoFrequency_changed().
|
private |
Definition at line 424 of file limesdroutputgui.cpp.
References arg(), LimeSDROutputSettings::m_centerFrequency, LimeSDROutputSettings::m_ncoEnable, LimeSDROutputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by on_centerFrequency_changed(), and on_transverter_clicked().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 111 of file limesdroutputgui.cpp.
|
private |
Definition at line 395 of file limesdroutputgui.cpp.
References arg(), LimeSDROutputSettings::m_devSampleRate, LimeSDROutputSettings::m_log2HardInterp, LimeSDROutputSettings::m_ncoFrequency, m_settings, and ui.
Referenced by displaySettings(), on_hwInterp_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 321 of file limesdroutputgui.cpp.
References arg(), LimeSDROutputSettings::m_devSampleRate, LimeSDROutputSettings::m_log2HardInterp, m_settings, and ui.
Referenced by displaySettings(), on_hwInterp_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 161 of file limesdroutputgui.cpp.
References LimeSDROutput::getLORange(), m_limeSDROutput, m_settings, LimeSDROutputSettings::m_transverterDeltaFrequency, LimeSDROutputSettings::m_transverterMode, and ui.
Referenced by on_transverter_clicked().
|
privateslot |
Definition at line 442 of file limesdroutputgui.cpp.
References LimeSDROutput::MsgConfigureLimeSDR::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_limeSDROutput, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by LimeSDROutputGUI().
|
private |
Definition at line 314 of file limesdroutputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 454 of file limesdroutputgui.cpp.
References LimeSDROutput::MsgGetStreamInfo::create(), LimeSDROutput::MsgGetDeviceInfo::create(), DeviceAPI::errorMessage(), DeviceSampleSink::getInputMessageQueue(), DeviceAPI::isBuddyLeader(), DeviceUISet::m_deviceAPI, m_deviceStatusCounter, m_deviceUISet, m_lastEngineState, m_limeSDROutput, m_statusCounter, MessageQueue::push(), DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by LimeSDROutputGUI().
|
private |
Center frequency in device.
Definition at line 65 of file limesdroutputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 70 of file limesdroutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 58 of file limesdroutputgui.h.
Referenced by LimeSDROutputGUI(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 67 of file limesdroutputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 68 of file limesdroutputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 71 of file limesdroutputgui.h.
Referenced by handleInputMessages(), and LimeSDROutputGUI().
|
private |
Definition at line 66 of file limesdroutputgui.h.
Referenced by updateStatus().
|
private |
Same object as above but gives easy access to LimeSDROutput methods and attributes that are used intensively.
Definition at line 59 of file limesdroutputgui.h.
Referenced by displaySampleRate(), LimeSDROutputGUI(), on_startStop_toggled(), updateFrequencyLimits(), updateHardware(), and updateStatus().
|
private |
Definition at line 64 of file limesdroutputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 61 of file limesdroutputgui.h.
Referenced by displaySampleRate(), on_sampleRate_changed(), on_sampleRateMode_toggled(), and on_swInterp_currentIndexChanged().
|
private |
Definition at line 60 of file limesdroutputgui.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_lpFIR_changed(), on_lpFIREnable_toggled(), on_ncoEnable_toggled(), on_ncoFrequency_changed(), on_sampleRate_changed(), on_swInterp_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), updateDACRate(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 69 of file limesdroutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 63 of file limesdroutputgui.h.
Referenced by LimeSDROutputGUI().
|
private |
Definition at line 62 of file limesdroutputgui.h.
Referenced by LimeSDROutputGUI(), sendSettings(), and updateHardware().
|
private |
Definition at line 56 of file limesdroutputgui.h.
Referenced by displaySampleRate(), displaySettings(), handleInputMessages(), handleMessage(), LimeSDROutputGUI(), on_extClock_clicked(), on_gain_valueChanged(), on_swInterp_currentIndexChanged(), on_transverter_clicked(), setCenterFrequencyDisplay(), setCenterFrequencySetting(), setNCODisplay(), updateDACRate(), updateFrequencyLimits(), updateStatus(), and ~LimeSDROutputGUI().