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 <bladerf2inputgui.h>
Public Member Functions | |
BladeRF2InputGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~BladeRF2InputGui () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
virtual 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_sampleRate_changed (quint64 value) |
void | on_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_biasTee_toggled (bool checked) |
void | on_bandwidth_changed (quint64 value) |
void | on_decim_currentIndexChanged (int index) |
void | on_fcPos_currentIndexChanged (int index) |
void | on_gainMode_currentIndexChanged (int index) |
void | on_gain_valueChanged (int value) |
void | on_transverter_clicked () |
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 () |
void | updateSampleRateAndFrequency () |
void | updateFrequencyLimits () |
void | setCenterFrequencySetting (uint64_t kHzValue) |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::Bladerf2InputGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_forceSettings |
bool | m_doApplySettings |
BladeRF2InputSettings | 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 |
BladeRF2Input * | 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 bladerf2inputgui.h.
|
explicit |
Definition at line 35 of file bladerf2inputgui.cpp.
References displaySettings(), BladeRF2Input::getBandwidthRange(), BladeRF2Input::getFrequencyRange(), BladeRF2Input::getGainModes(), BladeRF2Input::getGlobalGainRange(), BladeRF2Input::getSampleRateRange(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, ColorMapper::GrayYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSource, m_statusTimer, m_updateTimer, leansdr::max(), leansdr::min(), openDeviceSettingsDialog(), sendSettings(), BladeRF2Input::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
|
private |
Definition at line 500 of file bladerf2inputgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 143 of file bladerf2inputgui.cpp.
References BladeRF2InputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 104 of file bladerf2inputgui.cpp.
|
private |
Definition at line 295 of file bladerf2inputgui.cpp.
References arg(), DeviceSampleSource::calculateFrequencyShift(), BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_fcPos, BladeRF2InputSettings::m_log2Decim, m_settings, and ui.
Referenced by displaySampleRate(), on_fcPos_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 260 of file bladerf2inputgui.cpp.
References arg(), displayFcTooltip(), BladeRF2Input::getSampleRateRange(), BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_log2Decim, m_sampleRateMode, m_sampleSource, m_settings, leansdr::max(), leansdr::min(), and ui.
Referenced by displaySettings(), on_decim_currentIndexChanged(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 306 of file bladerf2inputgui.cpp.
References arg(), blockApplySettings(), displaySampleRate(), BladeRF2InputSettings::m_bandwidth, BladeRF2InputSettings::m_biasTee, BladeRF2InputSettings::m_centerFrequency, BladeRF2InputSettings::m_dcBlock, BladeRF2InputSettings::m_fcPos, BladeRF2InputSettings::m_gainMode, BladeRF2InputSettings::m_globalGain, BladeRF2InputSettings::m_iqCorrection, BladeRF2InputSettings::m_log2Decim, BladeRF2InputSettings::m_LOppmTenths, m_settings, BladeRF2InputSettings::m_transverterDeltaFrequency, BladeRF2InputSettings::m_transverterMode, and ui.
Referenced by BladeRF2InputGui(), deserialize(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 126 of file bladerf2inputgui.cpp.
References BladeRF2InputSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 51 of file bladerf2inputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 114 of file bladerf2inputgui.cpp.
|
privateslot |
Definition at line 225 of file bladerf2inputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by BladeRF2InputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 182 of file bladerf2inputgui.cpp.
References blockApplySettings(), displaySettings(), BladeRF2Input::getGlobalGainRange(), BladeRF2Input::MsgReportGainRange::getMax(), BladeRF2Input::MsgReportGainRange::getMin(), BladeRF2Input::MsgConfigureBladeRF2::getSettings(), BladeRF2Input::MsgStartStop::getStartStop(), BladeRF2Input::MsgReportGainRange::getStep(), m_sampleSource, m_settings, Message::match(), leansdr::max(), leansdr::min(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 388 of file bladerf2inputgui.cpp.
References BladeRF2InputSettings::m_bandwidth, m_settings, and sendSettings().
|
privateslot |
Definition at line 382 of file bladerf2inputgui.cpp.
References BladeRF2InputSettings::m_biasTee, m_settings, and sendSettings().
|
privateslot |
Definition at line 345 of file bladerf2inputgui.cpp.
References BladeRF2InputSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 370 of file bladerf2inputgui.cpp.
References BladeRF2InputSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 394 of file bladerf2inputgui.cpp.
References displaySampleRate(), BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_log2Decim, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 412 of file bladerf2inputgui.cpp.
References displayFcTooltip(), BladeRF2InputSettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 444 of file bladerf2inputgui.cpp.
References arg(), BladeRF2InputSettings::m_globalGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 419 of file bladerf2inputgui.cpp.
References BladeRF2Input::getGainModes(), BladeRF2InputSettings::m_gainMode, BladeRF2InputSettings::m_globalGain, m_sampleSource, m_settings, BladeRF2Input::GainMode::m_value, sendSettings(), and ui.
|
privateslot |
Definition at line 376 of file bladerf2inputgui.cpp.
References BladeRF2InputSettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 351 of file bladerf2inputgui.cpp.
References arg(), BladeRF2InputSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 470 of file bladerf2inputgui.cpp.
References BladeRF2Input::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 358 of file bladerf2inputgui.cpp.
References displayFcTooltip(), BladeRF2InputSettings::m_devSampleRate, BladeRF2InputSettings::m_log2Decim, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 482 of file bladerf2inputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 461 of file bladerf2inputgui.cpp.
References BladeRF2Input::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 451 of file bladerf2inputgui.cpp.
References m_settings, BladeRF2InputSettings::m_transverterDeltaFrequency, BladeRF2InputSettings::m_transverterMode, sendSettings(), setCenterFrequencySetting(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 534 of file bladerf2inputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), BladeRF2InputSettings::m_reverseAPIAddress, BladeRF2InputSettings::m_reverseAPIDeviceIndex, BladeRF2InputSettings::m_reverseAPIPort, m_settings, BladeRF2InputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by BladeRF2InputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 119 of file bladerf2inputgui.cpp.
References displaySettings(), m_settings, BladeRF2InputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 339 of file bladerf2inputgui.cpp.
References m_updateTimer.
Referenced by BladeRF2InputGui(), deserialize(), on_bandwidth_changed(), on_biasTee_toggled(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_iqImbalance_toggled(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 138 of file bladerf2inputgui.cpp.
References m_settings, and BladeRF2InputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 131 of file bladerf2inputgui.cpp.
References displaySettings(), BladeRF2InputSettings::m_centerFrequency, m_settings, and sendSettings().
|
private |
Definition at line 174 of file bladerf2inputgui.cpp.
References arg(), BladeRF2InputSettings::m_centerFrequency, m_settings, and ui.
Referenced by on_transverter_clicked().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 109 of file bladerf2inputgui.cpp.
|
private |
Definition at line 156 of file bladerf2inputgui.cpp.
References BladeRF2Input::getFrequencyRange(), m_sampleSource, m_settings, BladeRF2InputSettings::m_transverterDeltaFrequency, BladeRF2InputSettings::m_transverterMode, and ui.
Referenced by on_transverter_clicked().
|
privateslot |
Definition at line 488 of file bladerf2inputgui.cpp.
References BladeRF2Input::MsgConfigureBladeRF2::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by BladeRF2InputGui().
|
private |
Definition at line 253 of file bladerf2inputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 505 of file bladerf2inputgui.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 BladeRF2InputGui().
|
private |
Center frequency in device.
Definition at line 67 of file bladerf2inputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 57 of file bladerf2inputgui.h.
Referenced by BladeRF2InputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 59 of file bladerf2inputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 58 of file bladerf2inputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 64 of file bladerf2inputgui.h.
|
private |
Definition at line 69 of file bladerf2inputgui.h.
Referenced by BladeRF2InputGui(), and handleInputMessages().
|
private |
Definition at line 68 of file bladerf2inputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 66 of file bladerf2inputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 61 of file bladerf2inputgui.h.
Referenced by displaySampleRate(), on_decim_currentIndexChanged(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 65 of file bladerf2inputgui.h.
Referenced by BladeRF2InputGui(), displaySampleRate(), handleMessage(), on_gainMode_currentIndexChanged(), on_record_toggled(), on_startStop_toggled(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 60 of file bladerf2inputgui.h.
Referenced by deserialize(), displayFcTooltip(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_bandwidth_changed(), on_biasTee_toggled(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_iqImbalance_toggled(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), setCenterFrequencySetting(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 63 of file bladerf2inputgui.h.
Referenced by BladeRF2InputGui().
|
private |
Definition at line 62 of file bladerf2inputgui.h.
Referenced by BladeRF2InputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 55 of file bladerf2inputgui.h.
Referenced by BladeRF2InputGui(), displayFcTooltip(), displaySampleRate(), displaySettings(), handleMessage(), on_decim_currentIndexChanged(), on_gain_valueChanged(), on_gainMode_currentIndexChanged(), on_LOppm_valueChanged(), on_record_toggled(), on_transverter_clicked(), setCenterFrequencySetting(), updateFrequencyLimits(), updateStatus(), and ~BladeRF2InputGui().