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 <airspygui.h>
Public Member Functions | |
AirspyGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~AirspyGui () |
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_dcOffset_toggled (bool checked) |
void | on_iqImbalance_toggled (bool checked) |
void | on_sampleRate_currentIndexChanged (int index) |
void | on_biasT_stateChanged (int state) |
void | on_decim_currentIndexChanged (int index) |
void | on_fcPos_currentIndexChanged (int index) |
void | on_lna_valueChanged (int value) |
void | on_mix_valueChanged (int value) |
void | on_vga_valueChanged (int value) |
void | on_lnaAGC_stateChanged (int state) |
void | on_mixAGC_stateChanged (int state) |
void | on_startStop_toggled (bool checked) |
void | on_record_toggled (bool checked) |
void | on_transverter_clicked () |
void | updateHardware () |
void | updateStatus () |
void | handleInputMessages () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | displaySampleRates () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | updateFrequencyLimits () |
Private Attributes | |
Ui::AirspyGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
AirspySettings | 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 35 of file airspygui.h.
|
explicit |
Definition at line 37 of file airspygui.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 70 of file airspygui.cpp.
References ui.
|
inlineprivate |
Definition at line 72 of file airspygui.h.
Referenced by handleMessage().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 114 of file airspygui.cpp.
References AirspySettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 75 of file airspygui.cpp.
|
private |
Definition at line 236 of file airspygui.cpp.
References arg(), i, AirspySettings::m_devSampleRateIndex, m_rates, m_settings, and ui.
Referenced by AirspyGui().
|
private |
Definition at line 203 of file airspygui.cpp.
References arg(), AirspySettings::m_biasT, AirspySettings::m_centerFrequency, AirspySettings::m_dcBlock, AirspySettings::m_devSampleRateIndex, AirspySettings::m_fcPos, AirspySettings::m_iqCorrection, AirspySettings::m_lnaAGC, AirspySettings::m_lnaGain, AirspySettings::m_log2Decim, AirspySettings::m_LOppmTenths, AirspySettings::m_mixerAGC, AirspySettings::m_mixerGain, m_settings, AirspySettings::m_transverterDeltaFrequency, AirspySettings::m_transverterMode, AirspySettings::m_vgaGain, ui, and updateFrequencyLimits().
Referenced by AirspyGui(), deserialize(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 97 of file airspygui.cpp.
References AirspySettings::m_centerFrequency, and m_settings.
uint32_t AirspyGui::getDevSampleRate | ( | unsigned int | index | ) |
int AirspyGui::getDevSampleRateIndex | ( | uint32_t | sampleRate | ) |
Definition at line 451 of file airspygui.cpp.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 85 of file airspygui.cpp.
|
privateslot |
Definition at line 153 of file airspygui.cpp.
References DSPSignalNotification::getCenterFrequency(), Message::getIdentifier(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by AirspyGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 127 of file airspygui.cpp.
References blockApplySettings(), displaySettings(), AirspyInput::MsgConfigureAirspy::getSettings(), AirspyInput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 300 of file airspygui.cpp.
References AirspySettings::m_biasT, m_settings, and sendSettings().
|
privateslot |
Definition at line 269 of file airspygui.cpp.
References AirspySettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 282 of file airspygui.cpp.
References AirspySettings::m_dcBlock, m_settings, and sendSettings().
|
privateslot |
Definition at line 318 of file airspygui.cpp.
References AirspySettings::m_log2Decim, m_settings, and sendSettings().
|
privateslot |
Definition at line 326 of file airspygui.cpp.
References AirspySettings::FC_POS_CENTER, AirspySettings::FC_POS_INFRA, AirspySettings::FC_POS_SUPRA, AirspySettings::m_fcPos, m_settings, and sendSettings().
|
privateslot |
Definition at line 288 of file airspygui.cpp.
References AirspySettings::m_iqCorrection, m_settings, and sendSettings().
|
privateslot |
Definition at line 340 of file airspygui.cpp.
References arg(), AirspySettings::m_lnaGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 306 of file airspygui.cpp.
References AirspySettings::m_lnaAGC, m_settings, and sendSettings().
|
privateslot |
Definition at line 275 of file airspygui.cpp.
References arg(), AirspySettings::m_LOppmTenths, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 350 of file airspygui.cpp.
References arg(), AirspySettings::m_mixerGain, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 312 of file airspygui.cpp.
References AirspySettings::m_mixerAGC, m_settings, and sendSettings().
|
privateslot |
Definition at line 379 of file airspygui.cpp.
References AirspyInput::MsgFileRecord::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 294 of file airspygui.cpp.
References AirspySettings::m_devSampleRateIndex, m_settings, and sendSettings().
|
privateslot |
Definition at line 370 of file airspygui.cpp.
References AirspyInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 391 of file airspygui.cpp.
References AirspySettings::m_centerFrequency, m_settings, AirspySettings::m_transverterDeltaFrequency, AirspySettings::m_transverterMode, sendSettings(), ui, and updateFrequencyLimits().
|
privateslot |
Definition at line 360 of file airspygui.cpp.
References arg(), m_settings, AirspySettings::m_vgaGain, sendSettings(), and ui.
|
privateslot |
Definition at line 464 of file airspygui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), AirspySettings::m_reverseAPIAddress, AirspySettings::m_reverseAPIDeviceIndex, AirspySettings::m_reverseAPIPort, m_settings, AirspySettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by AirspyGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 90 of file airspygui.cpp.
References displaySettings(), m_settings, AirspySettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 263 of file airspygui.cpp.
References m_updateTimer.
Referenced by AirspyGui(), deserialize(), on_biasT_stateChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_iqImbalance_toggled(), on_lna_valueChanged(), on_lnaAGC_stateChanged(), on_LOppm_valueChanged(), on_mix_valueChanged(), on_mixAGC_stateChanged(), on_sampleRate_currentIndexChanged(), on_transverter_clicked(), on_vga_valueChanged(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 109 of file airspygui.cpp.
References m_settings, and AirspySettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 102 of file airspygui.cpp.
References displaySettings(), AirspySettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 80 of file airspygui.cpp.
|
private |
Definition at line 188 of file airspygui.cpp.
References AirspyInput::loHighLimitFreq, AirspyInput::loLowLimitFreq, m_settings, AirspySettings::m_transverterDeltaFrequency, AirspySettings::m_transverterMode, and ui.
Referenced by AirspyGui(), displaySettings(), and on_transverter_clicked().
|
privateslot |
Definition at line 401 of file airspygui.cpp.
References AirspyInput::MsgConfigureAirspy::create(), DeviceSampleSource::getInputMessageQueue(), m_forceSettings, m_sampleSource, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by AirspyGui().
|
private |
Definition at line 181 of file airspygui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, m_sampleRate, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 410 of file airspygui.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 AirspyGui().
|
private |
Center frequency in device.
Definition at line 68 of file airspygui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 59 of file airspygui.h.
Referenced by AirspyGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 60 of file airspygui.h.
Referenced by on_startStop_toggled().
|
private |
Definition at line 61 of file airspygui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 70 of file airspygui.h.
Referenced by AirspyGui(), and handleInputMessages().
|
private |
Definition at line 69 of file airspygui.h.
Referenced by updateStatus().
|
private |
Definition at line 65 of file airspygui.h.
Referenced by AirspyGui(), displaySampleRates(), getDevSampleRate(), and getDevSampleRateIndex().
|
private |
Definition at line 67 of file airspygui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 66 of file airspygui.h.
Referenced by AirspyGui(), on_record_toggled(), on_startStop_toggled(), and updateHardware().
|
private |
Definition at line 62 of file airspygui.h.
Referenced by deserialize(), displaySampleRates(), displaySettings(), getCenterFrequency(), handleMessage(), on_biasT_stateChanged(), on_centerFrequency_changed(), on_dcOffset_toggled(), on_decim_currentIndexChanged(), on_fcPos_currentIndexChanged(), on_iqImbalance_toggled(), on_lna_valueChanged(), on_lnaAGC_stateChanged(), on_LOppm_valueChanged(), on_mix_valueChanged(), on_mixAGC_stateChanged(), on_sampleRate_currentIndexChanged(), on_transverter_clicked(), on_vga_valueChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), setCenterFrequency(), updateFrequencyLimits(), and updateHardware().
|
private |
Definition at line 64 of file airspygui.h.
Referenced by AirspyGui().
|
private |
Definition at line 63 of file airspygui.h.
Referenced by AirspyGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 57 of file airspygui.h.
Referenced by AirspyGui(), displaySampleRates(), displaySettings(), handleMessage(), on_lna_valueChanged(), on_LOppm_valueChanged(), on_mix_valueChanged(), on_record_toggled(), on_transverter_clicked(), on_vga_valueChanged(), updateFrequencyLimits(), updateSampleRateAndFrequency(), updateStatus(), and ~AirspyGui().