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 <bladerf1outputgui.h>
Public Member Functions | |
Bladerf1OutputGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~Bladerf1OutputGui () |
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_bandwidth_currentIndexChanged (int index) |
void | on_interp_currentIndexChanged (int index) |
void | on_vga1_valueChanged (int value) |
void | on_vga2_valueChanged (int value) |
void | on_xb200_currentIndexChanged (int index) |
void | on_startStop_toggled (bool checked) |
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 () |
unsigned int | getXb200Index (bool xb_200, bladerf_xb200_path xb200Path, bladerf_xb200_filter xb200Filter) |
void | updateSampleRateAndFrequency () |
Private Attributes | |
Ui::Bladerf1OutputGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
BladeRF1OutputSettings | m_settings |
bool | m_sampleRateMode |
true: device, false: base band sample rate update mode More... | |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
DeviceSampleSink * | m_deviceSampleSink |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 36 of file bladerf1outputgui.h.
|
explicit |
Definition at line 34 of file bladerf1outputgui.cpp.
References displaySettings(), BladerfBandwidths::getBandwidth(), BladerfBandwidths::getNbBandwidths(), DeviceAPI::getSampleSink(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, handleInputMessages(), i, DeviceUISet::m_deviceAPI, m_deviceSampleSink, m_deviceUISet, m_inputMessageQueue, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), ui, updateHardware(), and updateStatus().
|
virtual |
|
inlineprivate |
Definition at line 71 of file bladerf1outputgui.h.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 118 of file bladerf1outputgui.cpp.
References BladeRF1OutputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 79 of file bladerf1outputgui.cpp.
|
private |
Definition at line 196 of file bladerf1outputgui.cpp.
References arg(), BladeRF1OutputSettings::m_devSampleRate, BladeRF1OutputSettings::m_log2Interp, m_sampleRateMode, m_settings, and ui.
Referenced by displaySettings(), on_interp_currentIndexChanged(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 225 of file bladerf1outputgui.cpp.
References arg(), displaySampleRate(), BladerfBandwidths::getBandwidthIndex(), getXb200Index(), BladeRF1OutputSettings::m_bandwidth, BladeRF1OutputSettings::m_centerFrequency, BladeRF1OutputSettings::m_log2Interp, m_settings, BladeRF1OutputSettings::m_vga1, BladeRF1OutputSettings::m_vga2, BladeRF1OutputSettings::m_xb200, BladeRF1OutputSettings::m_xb200Filter, BladeRF1OutputSettings::m_xb200Path, and ui.
Referenced by Bladerf1OutputGui(), deserialize(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 101 of file bladerf1outputgui.cpp.
References BladeRF1OutputSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 52 of file bladerf1outputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 89 of file bladerf1outputgui.cpp.
|
private |
Definition at line 425 of file bladerf1outputgui.cpp.
Referenced by displaySettings().
|
privateslot |
Definition at line 161 of file bladerf1outputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by Bladerf1OutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 131 of file bladerf1outputgui.cpp.
References blockApplySettings(), displaySettings(), Bladerf1Output::MsgConfigureBladerf1::getSettings(), Bladerf1Output::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 267 of file bladerf1outputgui.cpp.
References BladerfBandwidths::getBandwidth(), BladeRF1OutputSettings::m_bandwidth, m_settings, and sendSettings().
|
privateslot |
Definition at line 250 of file bladerf1outputgui.cpp.
References BladeRF1OutputSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 274 of file bladerf1outputgui.cpp.
References displaySampleRate(), BladeRF1OutputSettings::m_devSampleRate, BladeRF1OutputSettings::m_log2Interp, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 256 of file bladerf1outputgui.cpp.
References BladeRF1OutputSettings::m_devSampleRate, BladeRF1OutputSettings::m_log2Interp, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 381 of file bladerf1outputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 372 of file bladerf1outputgui.cpp.
References Bladerf1Output::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_doApplySettings, and MessageQueue::push().
|
privateslot |
Definition at line 292 of file bladerf1outputgui.cpp.
References arg(), m_settings, BladeRF1OutputSettings::m_vga1, sendSettings(), and ui.
|
privateslot |
Definition at line 302 of file bladerf1outputgui.cpp.
References arg(), m_settings, BladeRF1OutputSettings::m_vga2, sendSettings(), and ui.
|
privateslot |
Definition at line 312 of file bladerf1outputgui.cpp.
References m_settings, BladeRF1OutputSettings::m_xb200, BladeRF1OutputSettings::m_xb200Filter, BladeRF1OutputSettings::m_xb200Path, sendSettings(), and ui.
|
privateslot |
Definition at line 467 of file bladerf1outputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), BladeRF1OutputSettings::m_reverseAPIAddress, BladeRF1OutputSettings::m_reverseAPIDeviceIndex, BladeRF1OutputSettings::m_reverseAPIPort, m_settings, BladeRF1OutputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by Bladerf1OutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 94 of file bladerf1outputgui.cpp.
References displaySettings(), m_settings, BladeRF1OutputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 244 of file bladerf1outputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_bandwidth_currentIndexChanged(), on_centerFrequency_changed(), on_interp_currentIndexChanged(), on_sampleRate_changed(), on_vga1_valueChanged(), on_vga2_valueChanged(), on_xb200_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 113 of file bladerf1outputgui.cpp.
References m_settings, and BladeRF1OutputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 106 of file bladerf1outputgui.cpp.
References displaySettings(), BladeRF1OutputSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 84 of file bladerf1outputgui.cpp.
|
privateslot |
Definition at line 387 of file bladerf1outputgui.cpp.
References Bladerf1Output::MsgConfigureBladerf1::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_forceSettings, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by Bladerf1OutputGui().
|
private |
Definition at line 189 of file bladerf1outputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 396 of file bladerf1outputgui.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 Bladerf1OutputGui().
|
private |
Center frequency in device.
Definition at line 67 of file bladerf1outputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 65 of file bladerf1outputgui.h.
Referenced by Bladerf1OutputGui(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 58 of file bladerf1outputgui.h.
Referenced by Bladerf1OutputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 59 of file bladerf1outputgui.h.
Referenced by on_startStop_toggled().
|
private |
Definition at line 60 of file bladerf1outputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 69 of file bladerf1outputgui.h.
Referenced by Bladerf1OutputGui(), and handleInputMessages().
|
private |
Definition at line 68 of file bladerf1outputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 66 of file bladerf1outputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 62 of file bladerf1outputgui.h.
Referenced by displaySampleRate(), on_interp_currentIndexChanged(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 61 of file bladerf1outputgui.h.
Referenced by deserialize(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_bandwidth_currentIndexChanged(), on_centerFrequency_changed(), on_interp_currentIndexChanged(), on_sampleRate_changed(), on_vga1_valueChanged(), on_vga2_valueChanged(), on_xb200_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), and updateHardware().
|
private |
Definition at line 64 of file bladerf1outputgui.h.
Referenced by Bladerf1OutputGui().
|
private |
Definition at line 63 of file bladerf1outputgui.h.
Referenced by Bladerf1OutputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 56 of file bladerf1outputgui.h.
Referenced by Bladerf1OutputGui(), displaySampleRate(), displaySettings(), handleMessage(), on_interp_currentIndexChanged(), on_vga1_valueChanged(), on_vga2_valueChanged(), on_xb200_currentIndexChanged(), updateStatus(), and ~Bladerf1OutputGui().