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 <hackrfinputgui.h>
Public Types | |
enum | HackRFImgRejValue { HACKRF_IMGREJ_BYPASS = 0, HACKRF_IMGREJ_LOWPASS, HACKRF_IMGREJ_HIGHPASS, HACKRF_IMGREJ_NB } |
Public Member Functions | |
HackRFInputGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~HackRFInputGui () |
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_LOppm_valueChanged (int value) |
void | on_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_biasT_stateChanged (int state) |
void | on_decim_currentIndexChanged (int index) |
void | on_fcPos_currentIndexChanged (int index) |
void | on_lnaExt_stateChanged (int state) |
void | on_lna_valueChanged (int value) |
void | on_bbFilter_currentIndexChanged (int index) |
void | on_vga_valueChanged (int value) |
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 | displayBandwidths () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::HackRFInputGui * | ui |
DeviceUISet * | m_deviceUISet |
HackRFInputSettings | m_settings |
bool | m_sampleRateMode |
true: device, false: base band sample rate update mode More... | |
bool | m_forceSettings |
bool | m_doApplySettings |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
DeviceSampleSource * | m_sampleSource |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 37 of file hackrfinputgui.h.
Enumerator | |
---|---|
HACKRF_IMGREJ_BYPASS | |
HACKRF_IMGREJ_LOWPASS | |
HACKRF_IMGREJ_HIGHPASS | |
HACKRF_IMGREJ_NB |
Definition at line 41 of file hackrfinputgui.h.
|
explicit |
Definition at line 37 of file hackrfinputgui.cpp.
References displayBandwidths(), displaySettings(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), sendSettings(), DeviceSampleSource::setMessageQueueToGUI(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 73 of file hackrfinputgui.cpp.
References ui.
|
private |
Definition at line 441 of file hackrfinputgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 117 of file hackrfinputgui.cpp.
References HackRFInputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 78 of file hackrfinputgui.cpp.
|
private |
Definition at line 273 of file hackrfinputgui.cpp.
References arg(), HackRFBandwidths::getBandwidthIndex(), i, HackRFInputSettings::m_bandwidth, HackRFBandwidths::m_bw_k, HackRFBandwidths::m_nb_bw, m_settings, and ui.
Referenced by HackRFInputGui().
|
private |
Definition at line 229 of file hackrfinputgui.cpp.
References arg(), DeviceSampleSource::calculateFrequencyShift(), HackRFInputSettings::m_devSampleRate, HackRFInputSettings::m_fcPos, HackRFInputSettings::m_log2Decim, m_settings, and ui.
Referenced by displaySampleRate(), on_fcPos_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 199 of file hackrfinputgui.cpp.
References arg(), displayFcTooltip(), HackRFInputSettings::m_devSampleRate, HackRFInputSettings::m_log2Decim, m_sampleRateMode, m_settings, and ui.
Referenced by displaySettings(), on_decim_currentIndexChanged(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 240 of file hackrfinputgui.cpp.
References arg(), blockApplySettings(), displaySampleRate(), HackRFBandwidths::getBandwidthIndex(), HackRFInputSettings::m_bandwidth, HackRFInputSettings::m_biasT, HackRFInputSettings::m_centerFrequency, HackRFInputSettings::m_dcBlock, HackRFInputSettings::m_fcPos, HackRFInputSettings::m_iqCorrection, HackRFInputSettings::m_lnaExt, HackRFInputSettings::m_lnaGain, HackRFInputSettings::m_log2Decim, HackRFInputSettings::m_LOppmTenths, m_settings, HackRFInputSettings::m_vgaGain, and ui.
Referenced by deserialize(), HackRFInputGui(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 100 of file hackrfinputgui.cpp.
References HackRFInputSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 88 of file hackrfinputgui.cpp.
|
privateslot |
Definition at line 164 of file hackrfinputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by HackRFInputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 133 of file hackrfinputgui.cpp.
References blockApplySettings(), displaySettings(), HackRFInput::MsgConfigureHackRF::getSettings(), HackRFInput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 321 of file hackrfinputgui.cpp.
References HackRFBandwidths::getBandwidth(), HackRFInputSettings::m_bandwidth, m_settings, and sendSettings().
|
privateslot |
Definition at line 328 of file hackrfinputgui.cpp.
References HackRFInputSettings::m_biasT, m_settings, and sendSettings().
|
privateslot |
Definition at line 340 of file hackrfinputgui.cpp.
References HackRFInputSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 309 of file hackrfinputgui.cpp.
References HackRFInputSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 358 of file hackrfinputgui.cpp.
References displaySampleRate(), HackRFInputSettings::m_devSampleRate, HackRFInputSettings::m_log2Decim, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 375 of file hackrfinputgui.cpp.
References displayFcTooltip(), HackRFInputSettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 315 of file hackrfinputgui.cpp.
References HackRFInputSettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 382 of file hackrfinputgui.cpp.
References arg(), HackRFInputSettings::m_lnaGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 334 of file hackrfinputgui.cpp.
References HackRFInputSettings::m_lnaExt, m_settings, and sendSettings().
|
privateslot |
Definition at line 302 of file hackrfinputgui.cpp.
References arg(), HackRFInputSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 411 of file hackrfinputgui.cpp.
References HackRFInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 346 of file hackrfinputgui.cpp.
References displayFcTooltip(), HackRFInputSettings::m_devSampleRate, HackRFInputSettings::m_log2Decim, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 423 of file hackrfinputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 402 of file hackrfinputgui.cpp.
References HackRFInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 392 of file hackrfinputgui.cpp.
References arg(), m_settings, HackRFInputSettings::m_vgaGain, sendSettings(), and ui.
|
privateslot |
Definition at line 476 of file hackrfinputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), HackRFInputSettings::m_reverseAPIAddress, HackRFInputSettings::m_reverseAPIDeviceIndex, HackRFInputSettings::m_reverseAPIPort, m_settings, HackRFInputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by HackRFInputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 93 of file hackrfinputgui.cpp.
References displaySettings(), m_settings, HackRFInputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 296 of file hackrfinputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), HackRFInputGui(), on_bbFilter_currentIndexChanged(), on_biasT_stateChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_iqImbalance_toggled(), on_lna_valueChanged(), on_lnaExt_stateChanged(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_vga_valueChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 112 of file hackrfinputgui.cpp.
References m_settings, and HackRFInputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 105 of file hackrfinputgui.cpp.
References displaySettings(), HackRFInputSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 83 of file hackrfinputgui.cpp.
|
privateslot |
Definition at line 429 of file hackrfinputgui.cpp.
References HackRFInput::MsgConfigureHackRF::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by HackRFInputGui().
|
private |
Definition at line 192 of file hackrfinputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 446 of file hackrfinputgui.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 HackRFInputGui().
|
private |
Center frequency in device.
Definition at line 76 of file hackrfinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 67 of file hackrfinputgui.h.
Referenced by HackRFInputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 71 of file hackrfinputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 70 of file hackrfinputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 78 of file hackrfinputgui.h.
Referenced by HackRFInputGui(), and handleInputMessages().
|
private |
Definition at line 77 of file hackrfinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 75 of file hackrfinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 69 of file hackrfinputgui.h.
Referenced by displaySampleRate(), on_decim_currentIndexChanged(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 74 of file hackrfinputgui.h.
Referenced by HackRFInputGui(), on_record_toggled(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 68 of file hackrfinputgui.h.
Referenced by deserialize(), displayBandwidths(), displayFcTooltip(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_bbFilter_currentIndexChanged(), on_biasT_stateChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_iqImbalance_toggled(), on_lna_valueChanged(), on_lnaExt_stateChanged(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_vga_valueChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), and updateHardware().
|
private |
Definition at line 73 of file hackrfinputgui.h.
Referenced by HackRFInputGui().
|
private |
Definition at line 72 of file hackrfinputgui.h.
Referenced by HackRFInputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 65 of file hackrfinputgui.h.
Referenced by displayBandwidths(), displayFcTooltip(), displaySampleRate(), displaySettings(), HackRFInputGui(), handleMessage(), on_decim_currentIndexChanged(), on_lna_valueChanged(), on_LOppm_valueChanged(), on_record_toggled(), on_vga_valueChanged(), updateStatus(), and ~HackRFInputGui().