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 <bladerf1inputgui.h>
Public Member Functions | |
Bladerf1InputGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~Bladerf1InputGui () |
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_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_bandwidth_currentIndexChanged (int index) |
void | on_decim_currentIndexChanged (int index) |
void | on_lna_currentIndexChanged (int index) |
void | on_vga1_valueChanged (int value) |
void | on_vga2_valueChanged (int value) |
void | on_xb200_currentIndexChanged (int index) |
void | on_fcPos_currentIndexChanged (int index) |
void | on_startStop_toggled (bool checked) |
void | on_record_toggled (bool checked) |
void | on_sampleRateMode_toggled (bool checked) |
void | updateHardware () |
void | updateStatus () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | displaySettings () |
void | displaySampleRate () |
void | displayFcTooltip () |
void | sendSettings () |
unsigned int | getXb200Index (bool xb_200, bladerf_xb200_path xb200Path, bladerf_xb200_filter xb200Filter) |
void | updateSampleRateAndFrequency () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::Bladerf1InputGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_forceSettings |
bool | m_doApplySettings |
BladeRF1InputSettings | m_settings |
bool | m_sampleRateMode |
true: device, false: base band sample rate update mode More... | |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
std::vector< int > | m_gains |
DeviceSampleSource * | m_sampleSource |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 35 of file bladerf1inputgui.h.
|
explicit |
Definition at line 35 of file bladerf1inputgui.cpp.
References displaySettings(), BladerfBandwidths::getBandwidth(), BladerfBandwidths::getNbBandwidths(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, handleInputMessages(), i, DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), sendSettings(), DeviceSampleSource::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
|
private |
Definition at line 467 of file bladerf1inputgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 122 of file bladerf1inputgui.cpp.
References BladeRF1InputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 83 of file bladerf1inputgui.cpp.
|
private |
Definition at line 228 of file bladerf1inputgui.cpp.
References arg(), DeviceSampleSource::calculateFrequencyShift(), BladeRF1InputSettings::m_devSampleRate, BladeRF1InputSettings::m_fcPos, BladeRF1InputSettings::m_log2Decim, m_settings, and ui.
Referenced by displaySampleRate(), on_fcPos_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 196 of file bladerf1inputgui.cpp.
References arg(), displayFcTooltip(), BladeRF1InputSettings::m_devSampleRate, BladeRF1InputSettings::m_log2Decim, m_sampleRateMode, m_settings, and ui.
Referenced by displaySettings(), on_decim_currentIndexChanged(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 239 of file bladerf1inputgui.cpp.
References arg(), blockApplySettings(), displaySampleRate(), BladerfBandwidths::getBandwidthIndex(), getXb200Index(), BladeRF1InputSettings::m_bandwidth, BladeRF1InputSettings::m_centerFrequency, BladeRF1InputSettings::m_dcBlock, BladeRF1InputSettings::m_fcPos, BladeRF1InputSettings::m_iqCorrection, BladeRF1InputSettings::m_lnaGain, BladeRF1InputSettings::m_log2Decim, m_settings, BladeRF1InputSettings::m_vga1, BladeRF1InputSettings::m_vga2, BladeRF1InputSettings::m_xb200, BladeRF1InputSettings::m_xb200Filter, BladeRF1InputSettings::m_xb200Path, and ui.
Referenced by Bladerf1InputGui(), deserialize(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 105 of file bladerf1inputgui.cpp.
References BladeRF1InputSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 51 of file bladerf1inputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 93 of file bladerf1inputgui.cpp.
|
private |
Definition at line 501 of file bladerf1inputgui.cpp.
Referenced by displaySettings().
|
privateslot |
Definition at line 161 of file bladerf1inputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by Bladerf1InputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 135 of file bladerf1inputgui.cpp.
References blockApplySettings(), displaySettings(), Bladerf1Input::MsgConfigureBladerf1::getSettings(), Bladerf1Input::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 305 of file bladerf1inputgui.cpp.
References BladerfBandwidths::getBandwidth(), BladeRF1InputSettings::m_bandwidth, m_settings, and sendSettings().
|
privateslot |
Definition at line 275 of file bladerf1inputgui.cpp.
References BladeRF1InputSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 293 of file bladerf1inputgui.cpp.
References BladeRF1InputSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 312 of file bladerf1inputgui.cpp.
References displaySampleRate(), BladeRF1InputSettings::m_devSampleRate, BladeRF1InputSettings::m_log2Decim, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 330 of file bladerf1inputgui.cpp.
References displayFcTooltip(), BladeRF1InputSettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 299 of file bladerf1inputgui.cpp.
References BladeRF1InputSettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 337 of file bladerf1inputgui.cpp.
References BladeRF1InputSettings::m_lnaGain, m_settings, and sendSettings().
|
privateslot |
Definition at line 437 of file bladerf1inputgui.cpp.
References Bladerf1Input::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 281 of file bladerf1inputgui.cpp.
References displayFcTooltip(), BladeRF1InputSettings::m_devSampleRate, BladeRF1InputSettings::m_log2Decim, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 449 of file bladerf1inputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 428 of file bladerf1inputgui.cpp.
References Bladerf1Input::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 348 of file bladerf1inputgui.cpp.
References arg(), m_settings, BladeRF1InputSettings::m_vga1, sendSettings(), and ui.
|
privateslot |
Definition at line 358 of file bladerf1inputgui.cpp.
References arg(), m_settings, BladeRF1InputSettings::m_vga2, sendSettings(), and ui.
|
privateslot |
Definition at line 368 of file bladerf1inputgui.cpp.
References m_settings, BladeRF1InputSettings::m_xb200, BladeRF1InputSettings::m_xb200Filter, BladeRF1InputSettings::m_xb200Path, sendSettings(), and ui.
|
privateslot |
Definition at line 543 of file bladerf1inputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), BladeRF1InputSettings::m_reverseAPIAddress, BladeRF1InputSettings::m_reverseAPIDeviceIndex, BladeRF1InputSettings::m_reverseAPIPort, m_settings, BladeRF1InputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by Bladerf1InputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 98 of file bladerf1inputgui.cpp.
References displaySettings(), m_settings, BladeRF1InputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 269 of file bladerf1inputgui.cpp.
References m_updateTimer.
Referenced by Bladerf1InputGui(), deserialize(), on_bandwidth_currentIndexChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_iqImbalance_toggled(), on_lna_currentIndexChanged(), on_sampleRate_changed(), on_vga1_valueChanged(), on_vga2_valueChanged(), on_xb200_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 117 of file bladerf1inputgui.cpp.
References m_settings, and BladeRF1InputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 110 of file bladerf1inputgui.cpp.
References displaySettings(), BladeRF1InputSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 88 of file bladerf1inputgui.cpp.
|
privateslot |
Definition at line 455 of file bladerf1inputgui.cpp.
References Bladerf1Input::MsgConfigureBladerf1::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by Bladerf1InputGui().
|
private |
Definition at line 189 of file bladerf1inputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 472 of file bladerf1inputgui.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 Bladerf1InputGui().
|
private |
Center frequency in device.
Definition at line 67 of file bladerf1inputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 57 of file bladerf1inputgui.h.
Referenced by Bladerf1InputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 59 of file bladerf1inputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 58 of file bladerf1inputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 64 of file bladerf1inputgui.h.
|
private |
Definition at line 69 of file bladerf1inputgui.h.
Referenced by Bladerf1InputGui(), and handleInputMessages().
|
private |
Definition at line 68 of file bladerf1inputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 66 of file bladerf1inputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 61 of file bladerf1inputgui.h.
Referenced by displaySampleRate(), on_decim_currentIndexChanged(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 65 of file bladerf1inputgui.h.
Referenced by Bladerf1InputGui(), on_record_toggled(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 60 of file bladerf1inputgui.h.
Referenced by deserialize(), displayFcTooltip(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_bandwidth_currentIndexChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_iqImbalance_toggled(), on_lna_currentIndexChanged(), on_sampleRate_changed(), on_vga1_valueChanged(), on_vga2_valueChanged(), on_xb200_currentIndexChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), and updateHardware().
|
private |
Definition at line 63 of file bladerf1inputgui.h.
Referenced by Bladerf1InputGui().
|
private |
Definition at line 62 of file bladerf1inputgui.h.
Referenced by Bladerf1InputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 55 of file bladerf1inputgui.h.
Referenced by Bladerf1InputGui(), displayFcTooltip(), displaySampleRate(), displaySettings(), handleMessage(), on_decim_currentIndexChanged(), on_record_toggled(), on_vga1_valueChanged(), on_vga2_valueChanged(), on_xb200_currentIndexChanged(), updateStatus(), and ~Bladerf1InputGui().