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 <soapysdrinputsettings.h>
Public Types | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
Public Member Functions | |
SoapySDRInputSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
quint64 | m_centerFrequency |
qint32 | m_LOppmTenths |
qint32 | m_devSampleRate |
quint32 | m_log2Decim |
fcPos_t | m_fcPos |
bool | m_softDCCorrection |
bool | m_softIQCorrection |
bool | m_transverterMode |
qint64 | m_transverterDeltaFrequency |
QString | m_fileRecordName |
QString | m_antenna |
quint32 | m_bandwidth |
QMap< QString, double > | m_tunableElements |
qint32 | m_globalGain |
QMap< QString, double > | m_individualGains |
bool | m_autoGain |
bool | m_autoDCCorrection |
bool | m_autoIQCorrection |
std::complex< double > | m_dcCorrection |
std::complex< double > | m_iqCorrection |
QMap< QString, QVariant > | m_streamArgSettings |
QMap< QString, QVariant > | m_deviceArgSettings |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Private Member Functions | |
QByteArray | serializeNamedElementMap (const QMap< QString, double > &map) const |
void | deserializeNamedElementMap (const QByteArray &data, QMap< QString, double > &map) |
QByteArray | serializeArgumentMap (const QMap< QString, QVariant > &map) const |
void | deserializeArgumentMap (const QByteArray &data, QMap< QString, QVariant > &map) |
Definition at line 26 of file soapysdrinputsettings.h.
Enumerator | |
---|---|
FC_POS_INFRA | |
FC_POS_SUPRA | |
FC_POS_CENTER |
Definition at line 27 of file soapysdrinputsettings.h.
SoapySDRInputSettings::SoapySDRInputSettings | ( | ) |
Definition at line 24 of file soapysdrinputsettings.cpp.
References resetToDefaults().
bool SoapySDRInputSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 89 of file soapysdrinputsettings.cpp.
References deserializeArgumentMap(), deserializeNamedElementMap(), FC_POS_CENTER, SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_antenna, m_autoDCCorrection, m_autoGain, m_autoIQCorrection, m_bandwidth, m_dcCorrection, m_deviceArgSettings, m_devSampleRate, m_fcPos, m_globalGain, m_individualGains, m_iqCorrection, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_softDCCorrection, m_softIQCorrection, m_streamArgSettings, m_transverterDeltaFrequency, m_transverterMode, m_tunableElements, m_useReverseAPI, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readDouble(), SimpleDeserializer::readS32(), SimpleDeserializer::readS64(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by SoapySDRInputGui::deserialize().
|
private |
Definition at line 184 of file soapysdrinputsettings.cpp.
Referenced by deserialize().
|
private |
Definition at line 167 of file soapysdrinputsettings.cpp.
Referenced by deserialize().
void SoapySDRInputSettings::resetToDefaults | ( | ) |
Definition at line 29 of file soapysdrinputsettings.cpp.
References FC_POS_CENTER, m_antenna, m_autoDCCorrection, m_autoGain, m_autoIQCorrection, m_bandwidth, m_centerFrequency, m_dcCorrection, m_devSampleRate, m_fcPos, m_fileRecordName, m_globalGain, m_iqCorrection, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_softDCCorrection, m_softIQCorrection, m_transverterDeltaFrequency, m_transverterMode, and m_useReverseAPI.
Referenced by deserialize(), SoapySDRInputGui::resetToDefaults(), and SoapySDRInputSettings().
QByteArray SoapySDRInputSettings::serialize | ( | ) | const |
Definition at line 55 of file soapysdrinputsettings.cpp.
References SimpleSerializer::final(), m_antenna, m_autoDCCorrection, m_autoGain, m_autoIQCorrection, m_bandwidth, m_dcCorrection, m_deviceArgSettings, m_devSampleRate, m_fcPos, m_globalGain, m_individualGains, m_iqCorrection, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_softDCCorrection, m_softIQCorrection, m_streamArgSettings, m_transverterDeltaFrequency, m_transverterMode, m_tunableElements, m_useReverseAPI, serializeArgumentMap(), serializeNamedElementMap(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeDouble(), SimpleSerializer::writeS32(), SimpleSerializer::writeS64(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by SoapySDRInputGui::serialize().
|
private |
Definition at line 174 of file soapysdrinputsettings.cpp.
Referenced by serialize().
|
private |
Definition at line 157 of file soapysdrinputsettings.cpp.
Referenced by serialize().
QString SoapySDRInputSettings::m_antenna |
Definition at line 43 of file soapysdrinputsettings.h.
Referenced by SoapySDRInputGui::antennasChanged(), SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
bool SoapySDRInputSettings::m_autoDCCorrection |
Definition at line 49 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), SoapySDRInputGui::autoDCCorrectionChanged(), deserialize(), SoapySDRInputGui::displayCorrectionsSettings(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
bool SoapySDRInputSettings::m_autoGain |
Definition at line 48 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), SoapySDRInputGui::autoGainChanged(), deserialize(), SoapySDRInputGui::displaySettings(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
bool SoapySDRInputSettings::m_autoIQCorrection |
Definition at line 50 of file soapysdrinputsettings.h.
Referenced by SoapySDRInputGui::autoIQCorrectionChanged(), deserialize(), SoapySDRInputGui::displayCorrectionsSettings(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
quint32 SoapySDRInputSettings::m_bandwidth |
Definition at line 44 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), SoapySDRInputGui::bandwidthChanged(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInput::handleMessage(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
quint64 SoapySDRInputSettings::m_centerFrequency |
Definition at line 33 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), SoapySDRInputGui::displaySettings(), SoapySDRInputGui::getCenterFrequency(), SoapySDRInput::getCenterFrequency(), SoapySDRInput::handleMessage(), SoapySDRInputGui::on_centerFrequency_changed(), resetToDefaults(), SoapySDRInputGui::setCenterFrequency(), SoapySDRInput::setCenterFrequency(), SoapySDRInputGui::setCenterFrequencySetting(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
std::complex<double> SoapySDRInputSettings::m_dcCorrection |
Definition at line 51 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), SoapySDRInputGui::dcCorrectionArgumentChanged(), SoapySDRInputGui::dcCorrectionModuleChanged(), deserialize(), SoapySDRInputGui::displayCorrectionsSettings(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
QMap<QString, QVariant> SoapySDRInputSettings::m_deviceArgSettings |
Definition at line 54 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::deviceArgChanged(), SoapySDRInputGui::displayDeviceArgsSettings(), SoapySDRInputGui::handleMessage(), SoapySDRInput::handleMessage(), SoapySDRInput::initDeviceArgSettings(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), and SoapySDRInput::webapiSettingsPutPatch().
qint32 SoapySDRInputSettings::m_devSampleRate |
Definition at line 35 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInput::getSampleRate(), SoapySDRInput::handleMessage(), resetToDefaults(), SoapySDRInputGui::sampleRateChanged(), serialize(), SoapySDRInput::start(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
fcPos_t SoapySDRInputSettings::m_fcPos |
Definition at line 37 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInput::handleMessage(), SoapySDRInputGui::on_fcPos_currentIndexChanged(), resetToDefaults(), serialize(), SoapySDRInput::start(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
QString SoapySDRInputSettings::m_fileRecordName |
Definition at line 42 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::handleMessage(), resetToDefaults(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
qint32 SoapySDRInputSettings::m_globalGain |
Definition at line 46 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInputGui::globalGainChanged(), SoapySDRInputGui::handleMessage(), SoapySDRInput::initGainSettings(), resetToDefaults(), serialize(), SoapySDRInput::updateGains(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
QMap<QString, double> SoapySDRInputSettings::m_individualGains |
Definition at line 47 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displayIndividualGainsControlSettings(), SoapySDRInputGui::handleMessage(), SoapySDRInputGui::individualGainChanged(), SoapySDRInput::initGainSettings(), serialize(), SoapySDRInput::updateGains(), SoapySDRInput::webapiFormatDeviceSettings(), and SoapySDRInput::webapiSettingsPutPatch().
std::complex<double> SoapySDRInputSettings::m_iqCorrection |
Definition at line 52 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displayCorrectionsSettings(), SoapySDRInputGui::iqCorrectionArgumentChanged(), SoapySDRInputGui::iqCorrectionModuleChanged(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
quint32 SoapySDRInputSettings::m_log2Decim |
Definition at line 36 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInput::getSampleRate(), SoapySDRInputGui::on_decim_currentIndexChanged(), resetToDefaults(), serialize(), SoapySDRInput::start(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
qint32 SoapySDRInputSettings::m_LOppmTenths |
Definition at line 34 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInputGui::on_LOppm_valueChanged(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
QString SoapySDRInputSettings::m_reverseAPIAddress |
Definition at line 56 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), SoapySDRInput::webapiReverseSendStartStop(), and SoapySDRInput::webapiSettingsPutPatch().
uint16_t SoapySDRInputSettings::m_reverseAPIDeviceIndex |
Definition at line 58 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), SoapySDRInput::webapiReverseSendStartStop(), and SoapySDRInput::webapiSettingsPutPatch().
uint16_t SoapySDRInputSettings::m_reverseAPIPort |
Definition at line 57 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), SoapySDRInput::webapiReverseSendStartStop(), and SoapySDRInput::webapiSettingsPutPatch().
bool SoapySDRInputSettings::m_softDCCorrection |
Definition at line 38 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInputGui::on_dcOffset_toggled(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
bool SoapySDRInputSettings::m_softIQCorrection |
Definition at line 39 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displaySettings(), SoapySDRInputGui::on_iqImbalance_toggled(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
QMap<QString, QVariant> SoapySDRInputSettings::m_streamArgSettings |
Definition at line 53 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displayStreamArgsSettings(), SoapySDRInput::initStreamArgSettings(), serialize(), SoapySDRInputGui::streamArgChanged(), SoapySDRInput::webapiFormatDeviceSettings(), and SoapySDRInput::webapiSettingsPutPatch().
qint64 SoapySDRInputSettings::m_transverterDeltaFrequency |
Definition at line 41 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::on_transverter_clicked(), resetToDefaults(), serialize(), SoapySDRInputGui::updateFrequencyLimits(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
bool SoapySDRInputSettings::m_transverterMode |
Definition at line 40 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::on_transverter_clicked(), resetToDefaults(), serialize(), SoapySDRInputGui::updateFrequencyLimits(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDRInput::webapiReverseSendSettings(), and SoapySDRInput::webapiSettingsPutPatch().
QMap<QString, double> SoapySDRInputSettings::m_tunableElements |
Definition at line 45 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInputGui::displayTunableElementsControlSettings(), SoapySDRInput::initTunableElementsSettings(), serialize(), SoapySDRInputGui::tunableElementChanged(), SoapySDRInput::updateTunableElements(), SoapySDRInput::webapiFormatDeviceSettings(), and SoapySDRInput::webapiSettingsPutPatch().
bool SoapySDRInputSettings::m_useReverseAPI |
Definition at line 55 of file soapysdrinputsettings.h.
Referenced by SoapySDRInput::applySettings(), deserialize(), SoapySDRInput::handleMessage(), SoapySDRInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDRInput::webapiFormatDeviceSettings(), and SoapySDRInput::webapiSettingsPutPatch().