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 <bladerf2outputgui.h>
Public Member Functions | |
BladeRF2OutputGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~BladeRF2OutputGui () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
void | resetToDefaults () |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
virtual QByteArray | serialize () const |
virtual 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_LOppm_valueChanged (int value) |
void | on_biasTee_toggled (bool checked) |
void | on_sampleRate_changed (quint64 value) |
void | on_bandwidth_changed (quint64 value) |
void | on_interp_currentIndexChanged (int index) |
void | on_gain_valueChanged (int value) |
void | on_startStop_toggled (bool checked) |
void | on_transverter_clicked () |
void | on_sampleRateMode_toggled (bool checked) |
void | updateHardware () |
void | updateStatus () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | displaySampleRate () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | updateFrequencyLimits () |
void | setCenterFrequencySetting (uint64_t kHzValue) |
Private Attributes | |
Ui::BladeRF2OutputGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
BladeRF2OutputSettings | m_settings |
bool | m_sampleRateMode |
true: device, false: base band sample rate update mode More... | |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
BladeRF2Output * | m_sampleSink |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 36 of file bladerf2outputgui.h.
|
explicit |
Definition at line 35 of file bladerf2outputgui.cpp.
References displaySettings(), BladeRF2Output::getBandwidthRange(), BladeRF2Output::getFrequencyRange(), BladeRF2Output::getGlobalGainRange(), BladeRF2Output::getSampleRateRange(), DeviceAPI::getSampleSink(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSink, m_statusTimer, m_updateTimer, leansdr::max(), leansdr::min(), openDeviceSettingsDialog(), BladeRF2Output::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
|
inlineprivate |
Definition at line 71 of file bladerf2outputgui.h.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 131 of file bladerf2outputgui.cpp.
References BladeRF2OutputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 92 of file bladerf2outputgui.cpp.
|
private |
Definition at line 248 of file bladerf2outputgui.cpp.
References arg(), BladeRF2Output::getSampleRateRange(), BladeRF2OutputSettings::m_devSampleRate, BladeRF2OutputSettings::m_log2Interp, m_sampleRateMode, m_sampleSink, m_settings, leansdr::max(), leansdr::min(), and ui.
Referenced by displaySettings(), on_interp_currentIndexChanged(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 280 of file bladerf2outputgui.cpp.
References arg(), blockApplySettings(), displaySampleRate(), BladeRF2OutputSettings::m_bandwidth, BladeRF2OutputSettings::m_biasTee, BladeRF2OutputSettings::m_centerFrequency, BladeRF2OutputSettings::m_globalGain, BladeRF2OutputSettings::m_log2Interp, BladeRF2OutputSettings::m_LOppmTenths, m_settings, BladeRF2OutputSettings::m_transverterDeltaFrequency, BladeRF2OutputSettings::m_transverterMode, and ui.
Referenced by BladeRF2OutputGui(), deserialize(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 114 of file bladerf2outputgui.cpp.
References BladeRF2OutputSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 52 of file bladerf2outputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 102 of file bladerf2outputgui.cpp.
|
privateslot |
Definition at line 213 of file bladerf2outputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by BladeRF2OutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 170 of file bladerf2outputgui.cpp.
References blockApplySettings(), displaySettings(), BladeRF2Output::getGlobalGainRange(), BladeRF2Output::MsgReportGainRange::getMax(), BladeRF2Output::MsgReportGainRange::getMin(), BladeRF2Output::MsgConfigureBladeRF2::getSettings(), BladeRF2Output::MsgStartStop::getStartStop(), m_sampleSink, m_settings, Message::match(), leansdr::max(), leansdr::min(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 338 of file bladerf2outputgui.cpp.
References BladeRF2OutputSettings::m_bandwidth, m_settings, and sendSettings().
|
privateslot |
Definition at line 332 of file bladerf2outputgui.cpp.
References BladeRF2OutputSettings::m_biasTee, m_settings, and sendSettings().
|
privateslot |
Definition at line 308 of file bladerf2outputgui.cpp.
References BladeRF2OutputSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 362 of file bladerf2outputgui.cpp.
References arg(), BladeRF2OutputSettings::m_globalGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 344 of file bladerf2outputgui.cpp.
References displaySampleRate(), BladeRF2OutputSettings::m_devSampleRate, BladeRF2OutputSettings::m_log2Interp, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 314 of file bladerf2outputgui.cpp.
References arg(), BladeRF2OutputSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 321 of file bladerf2outputgui.cpp.
References BladeRF2OutputSettings::m_devSampleRate, BladeRF2OutputSettings::m_log2Interp, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 388 of file bladerf2outputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 379 of file bladerf2outputgui.cpp.
References BladeRF2Output::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_sampleSink, and MessageQueue::push().
|
privateslot |
Definition at line 369 of file bladerf2outputgui.cpp.
References m_settings, BladeRF2OutputSettings::m_transverterDeltaFrequency, BladeRF2OutputSettings::m_transverterMode, sendSettings(), setCenterFrequencySetting(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 435 of file bladerf2outputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), BladeRF2OutputSettings::m_reverseAPIAddress, BladeRF2OutputSettings::m_reverseAPIDeviceIndex, BladeRF2OutputSettings::m_reverseAPIPort, m_settings, BladeRF2OutputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by BladeRF2OutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 107 of file bladerf2outputgui.cpp.
References displaySettings(), m_settings, BladeRF2OutputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 302 of file bladerf2outputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_bandwidth_changed(), on_biasTee_toggled(), on_centerFrequency_changed(), on_gain_valueChanged(), on_interp_currentIndexChanged(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 126 of file bladerf2outputgui.cpp.
References m_settings, and BladeRF2OutputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 119 of file bladerf2outputgui.cpp.
References displaySettings(), BladeRF2OutputSettings::m_centerFrequency, m_settings, and sendSettings().
|
private |
Definition at line 162 of file bladerf2outputgui.cpp.
References arg(), BladeRF2OutputSettings::m_centerFrequency, m_settings, and ui.
Referenced by on_transverter_clicked().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 97 of file bladerf2outputgui.cpp.
|
private |
Definition at line 144 of file bladerf2outputgui.cpp.
References BladeRF2Output::getFrequencyRange(), m_sampleSink, m_settings, BladeRF2OutputSettings::m_transverterDeltaFrequency, BladeRF2OutputSettings::m_transverterMode, and ui.
Referenced by on_transverter_clicked().
|
privateslot |
Definition at line 394 of file bladerf2outputgui.cpp.
References BladeRF2Output::MsgConfigureBladeRF2::create(), DeviceSampleSink::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSink, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by BladeRF2OutputGui().
|
private |
Definition at line 241 of file bladerf2outputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 406 of file bladerf2outputgui.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 BladeRF2OutputGui().
|
private |
Center frequency in device.
Definition at line 67 of file bladerf2outputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 58 of file bladerf2outputgui.h.
Referenced by BladeRF2OutputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 59 of file bladerf2outputgui.h.
Referenced by on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 60 of file bladerf2outputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 69 of file bladerf2outputgui.h.
Referenced by BladeRF2OutputGui(), and handleInputMessages().
|
private |
Definition at line 68 of file bladerf2outputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 66 of file bladerf2outputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 62 of file bladerf2outputgui.h.
Referenced by displaySampleRate(), on_interp_currentIndexChanged(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 65 of file bladerf2outputgui.h.
Referenced by BladeRF2OutputGui(), displaySampleRate(), handleMessage(), on_startStop_toggled(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 61 of file bladerf2outputgui.h.
Referenced by deserialize(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_bandwidth_changed(), on_biasTee_toggled(), on_centerFrequency_changed(), on_gain_valueChanged(), on_interp_currentIndexChanged(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), setCenterFrequencySetting(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 64 of file bladerf2outputgui.h.
Referenced by BladeRF2OutputGui().
|
private |
Definition at line 63 of file bladerf2outputgui.h.
Referenced by BladeRF2OutputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 56 of file bladerf2outputgui.h.
Referenced by BladeRF2OutputGui(), displaySampleRate(), displaySettings(), handleMessage(), on_gain_valueChanged(), on_interp_currentIndexChanged(), on_LOppm_valueChanged(), on_transverter_clicked(), setCenterFrequencySetting(), updateFrequencyLimits(), updateStatus(), and ~BladeRF2OutputGui().