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 <airspyhfgui.h>
Public Member Functions | |
AirspyHFGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~AirspyHFGui () |
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) |
uint32_t | getDevSampleRate (unsigned int index) |
int | getDevSampleRateIndex (uint32_t sampleRate) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Slots | |
void | on_centerFrequency_changed (quint64 value) |
void | on_LOppm_valueChanged (int value) |
void | on_resetLOppm_clicked () |
void | on_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_sampleRate_currentIndexChanged (int index) |
void | on_decim_currentIndexChanged (int index) |
void | on_startStop_toggled (bool checked) |
void | on_record_toggled (bool checked) |
void | on_transverter_clicked () |
void | on_band_currentIndexChanged (int index) |
void | on_dsp_toggled (bool checked) |
void | on_lna_toggled (bool checked) |
void | on_agc_currentIndexChanged (int index) |
void | on_att_currentIndexChanged (int index) |
void | updateHardware () |
void | updateStatus () |
void | handleInputMessages () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | displaySampleRates () |
void | displayAGC () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | updateFrequencyLimits () |
Private Attributes | |
Ui::AirspyHFGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
AirspyHFSettings | m_settings |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
std::vector< uint32_t > | m_rates |
DeviceSampleSource * | m_sampleSource |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 36 of file airspyhfgui.h.
|
explicit |
Definition at line 36 of file airspyhfgui.cpp.
References displaySampleRates(), displaySettings(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_inputMessageQueue, m_rates, m_sampleSource, m_statusTimer, m_updateTimer, openDeviceSettingsDialog(), sendSettings(), DeviceSampleSource::setMessageQueueToGUI(), ui, updateFrequencyLimits(), updateHardware(), and updateStatus().
|
virtual |
Definition at line 69 of file airspyhfgui.cpp.
References ui.
|
inlineprivate |
Definition at line 73 of file airspyhfgui.h.
Referenced by displaySettings(), and handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 113 of file airspyhfgui.cpp.
References AirspyHFSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 74 of file airspyhfgui.cpp.
|
private |
Definition at line 268 of file airspyhfgui.cpp.
References AirspyHFSettings::m_agcHigh, m_settings, AirspyHFSettings::m_useAGC, and ui.
Referenced by displaySettings().
|
private |
Definition at line 240 of file airspyhfgui.cpp.
References arg(), i, AirspyHFSettings::m_devSampleRateIndex, m_rates, m_settings, and ui.
Referenced by AirspyHFGui().
|
private |
Definition at line 216 of file airspyhfgui.cpp.
References arg(), blockApplySettings(), displayAGC(), AirspyHFSettings::m_attenuatorSteps, AirspyHFSettings::m_bandIndex, AirspyHFSettings::m_centerFrequency, AirspyHFSettings::m_dcBlock, AirspyHFSettings::m_devSampleRateIndex, AirspyHFSettings::m_iqCorrection, AirspyHFSettings::m_log2Decim, AirspyHFSettings::m_LOppmTenths, m_settings, AirspyHFSettings::m_transverterDeltaFrequency, AirspyHFSettings::m_transverterMode, AirspyHFSettings::m_useDSP, AirspyHFSettings::m_useLNA, ui, and updateFrequencyLimits().
Referenced by AirspyHFGui(), deserialize(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 96 of file airspyhfgui.cpp.
References AirspyHFSettings::m_centerFrequency, and m_settings.
uint32_t AirspyHFGui::getDevSampleRate | ( | unsigned int | index | ) |
int AirspyHFGui::getDevSampleRateIndex | ( | uint32_t | sampleRate | ) |
Definition at line 470 of file airspyhfgui.cpp.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 84 of file airspyhfgui.cpp.
|
privateslot |
Definition at line 152 of file airspyhfgui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by AirspyHFGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 126 of file airspyhfgui.cpp.
References blockApplySettings(), displaySettings(), AirspyHFInput::MsgConfigureAirspyHF::getSettings(), AirspyHFInput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 378 of file airspyhfgui.cpp.
References AirspyHFSettings::m_agcHigh, m_settings, AirspyHFSettings::m_useAGC, and sendSettings().
|
privateslot |
Definition at line 399 of file airspyhfgui.cpp.
References AirspyHFSettings::m_attenuatorSteps, m_settings, and sendSettings().
|
privateslot |
Definition at line 353 of file airspyhfgui.cpp.
References AirspyHFSettings::m_bandIndex, AirspyHFSettings::m_centerFrequency, m_settings, sendSettings(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 290 of file airspyhfgui.cpp.
References AirspyHFSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 408 of file airspyhfgui.cpp.
References AirspyHFSettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 314 of file airspyhfgui.cpp.
References AirspyHFSettings::m_log2Decim, m_settings, and sendSettings().
|
privateslot |
Definition at line 366 of file airspyhfgui.cpp.
References m_settings, AirspyHFSettings::m_useDSP, and sendSettings().
|
privateslot |
Definition at line 414 of file airspyhfgui.cpp.
References AirspyHFSettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 372 of file airspyhfgui.cpp.
References m_settings, AirspyHFSettings::m_useLNA, and sendSettings().
|
privateslot |
Definition at line 296 of file airspyhfgui.cpp.
References arg(), AirspyHFSettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 331 of file airspyhfgui.cpp.
References AirspyHFInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
|
privateslot |
Definition at line 308 of file airspyhfgui.cpp.
References AirspyHFSettings::m_devSampleRateIndex, m_settings, and sendSettings().
|
privateslot |
Definition at line 322 of file airspyhfgui.cpp.
References AirspyHFInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 343 of file airspyhfgui.cpp.
References AirspyHFSettings::m_centerFrequency, m_settings, AirspyHFSettings::m_transverterDeltaFrequency, AirspyHFSettings::m_transverterMode, sendSettings(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 483 of file airspyhfgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), AirspyHFSettings::m_reverseAPIAddress, AirspyHFSettings::m_reverseAPIDeviceIndex, AirspyHFSettings::m_reverseAPIPort, m_settings, AirspyHFSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by AirspyHFGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 89 of file airspyhfgui.cpp.
References displaySettings(), m_settings, AirspyHFSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 284 of file airspyhfgui.cpp.
References m_updateTimer.
Referenced by AirspyHFGui(), deserialize(), on_agc_currentIndexChanged(), on_att_currentIndexChanged(), on_band_currentIndexChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_dsp_toggled(), on_iqImbalance_toggled(), on_lna_toggled(), on_LOppm_valueChanged(), on_sampleRate_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 108 of file airspyhfgui.cpp.
References m_settings, and AirspyHFSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 101 of file airspyhfgui.cpp.
References displaySettings(), AirspyHFSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 79 of file airspyhfgui.cpp.
|
private |
Definition at line 187 of file airspyhfgui.cpp.
References AirspyHFInput::loHighLimitFreqHF, AirspyHFInput::loHighLimitFreqVHF, AirspyHFInput::loLowLimitFreqHF, AirspyHFInput::loLowLimitFreqVHF, AirspyHFSettings::m_bandIndex, m_settings, AirspyHFSettings::m_transverterDeltaFrequency, AirspyHFSettings::m_transverterMode, and ui.
Referenced by AirspyHFGui(), displaySettings(), on_band_currentIndexChanged(), and on_transverter_clicked().
|
privateslot |
Definition at line 420 of file airspyhfgui.cpp.
References AirspyHFInput::MsgConfigureAirspyHF::create(), DeviceSampleSource::getInputMessageQueue(), m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by AirspyHFGui().
|
private |
Definition at line 180 of file airspyhfgui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 429 of file airspyhfgui.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 AirspyHFGui().
|
private |
Center frequency in device.
Definition at line 69 of file airspyhfgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 60 of file airspyhfgui.h.
Referenced by AirspyHFGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 61 of file airspyhfgui.h.
Referenced by on_startStop_toggled().
|
private |
Definition at line 62 of file airspyhfgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 71 of file airspyhfgui.h.
Referenced by AirspyHFGui(), and handleInputMessages().
|
private |
Definition at line 70 of file airspyhfgui.h.
Referenced by updateStatus().
|
private |
Definition at line 66 of file airspyhfgui.h.
Referenced by AirspyHFGui(), displaySampleRates(), getDevSampleRate(), and getDevSampleRateIndex().
|
private |
Definition at line 68 of file airspyhfgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 67 of file airspyhfgui.h.
Referenced by AirspyHFGui(), on_record_toggled(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 63 of file airspyhfgui.h.
Referenced by deserialize(), displayAGC(), displaySampleRates(), displaySettings(), getCenterFrequency(), handleMessage(), on_agc_currentIndexChanged(), on_att_currentIndexChanged(), on_band_currentIndexChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_dsp_toggled(), on_iqImbalance_toggled(), on_lna_toggled(), on_LOppm_valueChanged(), on_sampleRate_currentIndexChanged(), on_transverter_clicked(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 65 of file airspyhfgui.h.
Referenced by AirspyHFGui().
|
private |
Definition at line 64 of file airspyhfgui.h.
Referenced by AirspyHFGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 58 of file airspyhfgui.h.
Referenced by AirspyHFGui(), displayAGC(), displaySampleRates(), displaySettings(), handleMessage(), on_band_currentIndexChanged(), on_LOppm_valueChanged(), on_record_toggled(), on_resetLOppm_clicked(), on_transverter_clicked(), updateFrequencyLimits(), updateSampleRateAndFrequency(), updateStatus(), and ~AirspyHFGui().