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 <airspysettings.h>
Public Types | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
Public Member Functions | |
AirspySettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
quint64 | m_centerFrequency |
qint32 | m_LOppmTenths |
quint32 | m_devSampleRateIndex |
quint32 | m_lnaGain |
quint32 | m_mixerGain |
quint32 | m_vgaGain |
bool | m_lnaAGC |
bool | m_mixerAGC |
quint32 | m_log2Decim |
fcPos_t | m_fcPos |
bool | m_biasT |
bool | m_dcBlock |
bool | m_iqCorrection |
bool | m_transverterMode |
qint64 | m_transverterDeltaFrequency |
QString | m_fileRecordName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Definition at line 23 of file airspysettings.h.
Enumerator | |
---|---|
FC_POS_INFRA | |
FC_POS_SUPRA | |
FC_POS_CENTER |
Definition at line 24 of file airspysettings.h.
AirspySettings::AirspySettings | ( | ) |
Definition at line 22 of file airspysettings.cpp.
References resetToDefaults().
bool AirspySettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 77 of file airspysettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_biasT, m_dcBlock, m_devSampleRateIndex, m_fcPos, m_iqCorrection, m_lnaAGC, m_lnaGain, m_log2Decim, m_LOppmTenths, m_mixerAGC, m_mixerGain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, m_vgaGain, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readS64(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by AirspyGui::deserialize(), and AirspyInput::deserialize().
void AirspySettings::resetToDefaults | ( | ) |
Definition at line 27 of file airspysettings.cpp.
References FC_POS_CENTER, m_biasT, m_centerFrequency, m_dcBlock, m_devSampleRateIndex, m_fcPos, m_fileRecordName, m_iqCorrection, m_lnaAGC, m_lnaGain, m_log2Decim, m_LOppmTenths, m_mixerAGC, m_mixerGain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, and m_vgaGain.
Referenced by AirspySettings(), deserialize(), AirspyInput::deserialize(), and AirspyGui::resetToDefaults().
QByteArray AirspySettings::serialize | ( | ) | const |
Definition at line 51 of file airspysettings.cpp.
References SimpleSerializer::final(), m_biasT, m_dcBlock, m_devSampleRateIndex, m_fcPos, m_iqCorrection, m_lnaAGC, m_lnaGain, m_log2Decim, m_LOppmTenths, m_mixerAGC, m_mixerGain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, m_vgaGain, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeS64(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by AirspyGui::serialize(), and AirspyInput::serialize().
bool AirspySettings::m_biasT |
Definition at line 40 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_biasT_stateChanged(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
quint64 AirspySettings::m_centerFrequency |
Definition at line 30 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), AirspyGui::displaySettings(), AirspyGui::getCenterFrequency(), AirspyInput::getCenterFrequency(), AirspyGui::on_centerFrequency_changed(), AirspyGui::on_transverter_clicked(), resetToDefaults(), AirspyGui::setCenterFrequency(), AirspyInput::setCenterFrequency(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
bool AirspySettings::m_dcBlock |
Definition at line 41 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_dcOffset_toggled(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
quint32 AirspySettings::m_devSampleRateIndex |
Definition at line 32 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySampleRates(), AirspyGui::displaySettings(), AirspyInput::getSampleRate(), AirspyGui::on_sampleRate_currentIndexChanged(), resetToDefaults(), serialize(), AirspyInput::start(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
fcPos_t AirspySettings::m_fcPos |
Definition at line 39 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_fcPos_currentIndexChanged(), resetToDefaults(), serialize(), AirspyInput::start(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
QString AirspySettings::m_fileRecordName |
Definition at line 45 of file airspysettings.h.
Referenced by AirspyInput::handleMessage(), resetToDefaults(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
bool AirspySettings::m_iqCorrection |
Definition at line 42 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_iqImbalance_toggled(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
bool AirspySettings::m_lnaAGC |
Definition at line 36 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_lnaAGC_stateChanged(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
quint32 AirspySettings::m_lnaGain |
Definition at line 33 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_lna_valueChanged(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
quint32 AirspySettings::m_log2Decim |
Definition at line 38 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyInput::getSampleRate(), AirspyGui::on_decim_currentIndexChanged(), resetToDefaults(), serialize(), AirspyInput::start(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
qint32 AirspySettings::m_LOppmTenths |
Definition at line 31 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_LOppm_valueChanged(), resetToDefaults(), serialize(), AirspyInput::setDeviceCenterFrequency(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
bool AirspySettings::m_mixerAGC |
Definition at line 37 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_mixAGC_stateChanged(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
quint32 AirspySettings::m_mixerGain |
Definition at line 34 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_mix_valueChanged(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
QString AirspySettings::m_reverseAPIAddress |
Definition at line 47 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), AirspyInput::webapiReverseSendStartStop(), and AirspyInput::webapiSettingsPutPatch().
uint16_t AirspySettings::m_reverseAPIDeviceIndex |
Definition at line 49 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), AirspyInput::webapiReverseSendStartStop(), and AirspyInput::webapiSettingsPutPatch().
uint16_t AirspySettings::m_reverseAPIPort |
Definition at line 48 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), AirspyInput::webapiReverseSendStartStop(), and AirspyInput::webapiSettingsPutPatch().
qint64 AirspySettings::m_transverterDeltaFrequency |
Definition at line 44 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_transverter_clicked(), resetToDefaults(), serialize(), AirspyGui::updateFrequencyLimits(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
bool AirspySettings::m_transverterMode |
Definition at line 43 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_transverter_clicked(), resetToDefaults(), serialize(), AirspyGui::updateFrequencyLimits(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().
bool AirspySettings::m_useReverseAPI |
Definition at line 46 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyInput::handleMessage(), AirspyGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), and AirspyInput::webapiSettingsPutPatch().
quint32 AirspySettings::m_vgaGain |
Definition at line 35 of file airspysettings.h.
Referenced by AirspyInput::applySettings(), deserialize(), AirspyGui::displaySettings(), AirspyGui::on_vga_valueChanged(), resetToDefaults(), serialize(), AirspyInput::webapiFormatDeviceSettings(), AirspyInput::webapiReverseSendSettings(), and AirspyInput::webapiSettingsPutPatch().