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 <hackrfoutputgui.h>
Public Types | |
enum | HackRFImgRejValue { HACKRF_IMGREJ_BYPASS = 0, HACKRF_IMGREJ_LOWPASS, HACKRF_IMGREJ_HIGHPASS, HACKRF_IMGREJ_NB } |
Public Member Functions | |
HackRFOutputGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~HackRFOutputGui () |
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_biasT_stateChanged (int state) |
void | on_interp_currentIndexChanged (int index) |
void | on_fcPos_currentIndexChanged (int index) |
void | on_lnaExt_stateChanged (int state) |
void | on_bbFilter_currentIndexChanged (int index) |
void | on_txvga_valueChanged (int value) |
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 | displaySettings () |
void | displaySampleRate () |
void | displayFcTooltip () |
void | displayBandwidths () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | blockApplySettings (bool block) |
Private Attributes | |
Ui::HackRFOutputGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_forceSettings |
HackRFOutputSettings | 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 |
bool | m_doApplySettings |
Definition at line 38 of file hackrfoutputgui.h.
Enumerator | |
---|---|
HACKRF_IMGREJ_BYPASS | |
HACKRF_IMGREJ_LOWPASS | |
HACKRF_IMGREJ_HIGHPASS | |
HACKRF_IMGREJ_NB |
Definition at line 42 of file hackrfoutputgui.h.
|
explicit |
Definition at line 37 of file hackrfoutputgui.cpp.
References displayBandwidths(), displaySettings(), DeviceAPI::getSampleSink(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceSampleSink, m_deviceUISet, m_inputMessageQueue, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), sendSettings(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 71 of file hackrfoutputgui.cpp.
References ui.
|
private |
Definition at line 131 of file hackrfoutputgui.cpp.
References m_doApplySettings.
Referenced by displayBandwidths(), displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 115 of file hackrfoutputgui.cpp.
References HackRFOutputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 76 of file hackrfoutputgui.cpp.
|
private |
Definition at line 265 of file hackrfoutputgui.cpp.
References arg(), blockApplySettings(), HackRFBandwidths::getBandwidthIndex(), i, HackRFOutputSettings::m_bandwidth, HackRFBandwidths::m_bw_k, HackRFBandwidths::m_nb_bw, m_settings, and ui.
Referenced by HackRFOutputGui().
|
private |
Definition at line 232 of file hackrfoutputgui.cpp.
References arg(), DeviceSampleSink::calculateFrequencyShift(), HackRFOutputSettings::m_devSampleRate, HackRFOutputSettings::m_fcPos, HackRFOutputSettings::m_log2Interp, m_settings, and ui.
Referenced by displaySampleRate(), on_fcPos_currentIndexChanged(), and on_sampleRate_changed().
|
private |
Definition at line 202 of file hackrfoutputgui.cpp.
References arg(), displayFcTooltip(), HackRFOutputSettings::m_devSampleRate, HackRFOutputSettings::m_log2Interp, m_sampleRateMode, m_settings, and ui.
Referenced by displaySettings(), on_interp_currentIndexChanged(), on_sampleRateMode_toggled(), and updateSampleRateAndFrequency().
|
private |
Definition at line 241 of file hackrfoutputgui.cpp.
References arg(), blockApplySettings(), displaySampleRate(), HackRFBandwidths::getBandwidthIndex(), HackRFOutputSettings::m_bandwidth, HackRFOutputSettings::m_biasT, HackRFOutputSettings::m_centerFrequency, HackRFOutputSettings::m_fcPos, HackRFOutputSettings::m_lnaExt, HackRFOutputSettings::m_log2Interp, HackRFOutputSettings::m_LOppmTenths, m_settings, HackRFOutputSettings::m_vgaGain, and ui.
Referenced by deserialize(), HackRFOutputGui(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 98 of file hackrfoutputgui.cpp.
References HackRFOutputSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 62 of file hackrfoutputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 86 of file hackrfoutputgui.cpp.
|
privateslot |
Definition at line 167 of file hackrfoutputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by HackRFOutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 137 of file hackrfoutputgui.cpp.
References blockApplySettings(), displaySettings(), HackRFOutput::MsgConfigureHackRF::getSettings(), HackRFOutput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 321 of file hackrfoutputgui.cpp.
References HackRFBandwidths::getBandwidth(), HackRFOutputSettings::m_bandwidth, m_settings, and sendSettings().
|
privateslot |
Definition at line 328 of file hackrfoutputgui.cpp.
References HackRFOutputSettings::m_biasT, m_settings, and sendSettings().
|
privateslot |
Definition at line 296 of file hackrfoutputgui.cpp.
References HackRFOutputSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 357 of file hackrfoutputgui.cpp.
References displayFcTooltip(), HackRFOutputSettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 340 of file hackrfoutputgui.cpp.
References displaySampleRate(), HackRFOutputSettings::m_devSampleRate, HackRFOutputSettings::m_log2Interp, m_sampleRateMode, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 334 of file hackrfoutputgui.cpp.
References HackRFOutputSettings::m_lnaExt, m_settings, and sendSettings().
|
privateslot |
Definition at line 314 of file hackrfoutputgui.cpp.
References arg(), HackRFOutputSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 302 of file hackrfoutputgui.cpp.
References displayFcTooltip(), HackRFOutputSettings::m_devSampleRate, HackRFOutputSettings::m_log2Interp, m_sampleRateMode, m_settings, and sendSettings().
|
privateslot |
Definition at line 383 of file hackrfoutputgui.cpp.
References displaySampleRate(), and m_sampleRateMode.
|
privateslot |
Definition at line 374 of file hackrfoutputgui.cpp.
References HackRFOutput::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_doApplySettings, and MessageQueue::push().
|
privateslot |
Definition at line 364 of file hackrfoutputgui.cpp.
References arg(), m_settings, HackRFOutputSettings::m_vgaGain, sendSettings(), and ui.
|
privateslot |
Definition at line 431 of file hackrfoutputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), HackRFOutputSettings::m_reverseAPIAddress, HackRFOutputSettings::m_reverseAPIDeviceIndex, HackRFOutputSettings::m_reverseAPIPort, m_settings, HackRFOutputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by HackRFOutputGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 91 of file hackrfoutputgui.cpp.
References displaySettings(), m_settings, HackRFOutputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 290 of file hackrfoutputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), HackRFOutputGui(), on_bbFilter_currentIndexChanged(), on_biasT_stateChanged(), on_centerFrequency_changed(), on_fcPos_currentIndexChanged(), on_interp_currentIndexChanged(), on_lnaExt_stateChanged(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_txvga_valueChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 110 of file hackrfoutputgui.cpp.
References m_settings, and HackRFOutputSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 103 of file hackrfoutputgui.cpp.
References displaySettings(), HackRFOutputSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 81 of file hackrfoutputgui.cpp.
|
privateslot |
Definition at line 389 of file hackrfoutputgui.cpp.
References HackRFOutput::MsgConfigureHackRF::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_doApplySettings, m_forceSettings, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by HackRFOutputGui().
|
private |
Definition at line 195 of file hackrfoutputgui.cpp.
References displaySampleRate(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), and GLSpectrum::setSampleRate().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 401 of file hackrfoutputgui.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 HackRFOutputGui().
|
private |
Center frequency in device.
Definition at line 76 of file hackrfoutputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 74 of file hackrfoutputgui.h.
Referenced by HackRFOutputGui(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 68 of file hackrfoutputgui.h.
Referenced by HackRFOutputGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 79 of file hackrfoutputgui.h.
Referenced by blockApplySettings(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 69 of file hackrfoutputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 78 of file hackrfoutputgui.h.
Referenced by HackRFOutputGui(), and handleInputMessages().
|
private |
Definition at line 77 of file hackrfoutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 75 of file hackrfoutputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
true: device, false: base band sample rate update mode
Definition at line 71 of file hackrfoutputgui.h.
Referenced by displaySampleRate(), on_interp_currentIndexChanged(), on_sampleRate_changed(), and on_sampleRateMode_toggled().
|
private |
Definition at line 70 of file hackrfoutputgui.h.
Referenced by deserialize(), displayBandwidths(), displayFcTooltip(), displaySampleRate(), displaySettings(), getCenterFrequency(), handleMessage(), on_bbFilter_currentIndexChanged(), on_biasT_stateChanged(), on_centerFrequency_changed(), on_fcPos_currentIndexChanged(), on_interp_currentIndexChanged(), on_lnaExt_stateChanged(), on_LOppm_valueChanged(), on_sampleRate_changed(), on_txvga_valueChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), and updateHardware().
|
private |
Definition at line 73 of file hackrfoutputgui.h.
Referenced by HackRFOutputGui().
|
private |
Definition at line 72 of file hackrfoutputgui.h.
Referenced by HackRFOutputGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 66 of file hackrfoutputgui.h.
Referenced by displayBandwidths(), displayFcTooltip(), displaySampleRate(), displaySettings(), HackRFOutputGui(), handleMessage(), on_interp_currentIndexChanged(), on_LOppm_valueChanged(), on_txvga_valueChanged(), updateStatus(), and ~HackRFOutputGui().