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 <soapysdroutputsettings.h>
Public Member Functions | |
SoapySDROutputSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
quint64 | m_centerFrequency |
int | m_LOppmTenths |
qint32 | m_devSampleRate |
quint32 | m_log2Interp |
bool | m_transverterMode |
qint64 | m_transverterDeltaFrequency |
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 25 of file soapysdroutputsettings.h.
SoapySDROutputSettings::SoapySDROutputSettings | ( | ) |
Definition at line 25 of file soapysdroutputsettings.cpp.
References resetToDefaults().
bool SoapySDROutputSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 83 of file soapysdroutputsettings.cpp.
References deserializeArgumentMap(), deserializeNamedElementMap(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_antenna, m_autoDCCorrection, m_autoGain, m_autoIQCorrection, m_bandwidth, m_dcCorrection, m_deviceArgSettings, m_devSampleRate, m_globalGain, m_individualGains, m_iqCorrection, m_log2Interp, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, 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 SoapySDROutputGui::deserialize(), and SoapySDROutput::deserialize().
|
private |
Definition at line 173 of file soapysdroutputsettings.cpp.
Referenced by deserialize().
|
private |
Definition at line 156 of file soapysdroutputsettings.cpp.
Referenced by deserialize().
void SoapySDROutputSettings::resetToDefaults | ( | ) |
Definition at line 30 of file soapysdroutputsettings.cpp.
References m_antenna, m_autoDCCorrection, m_autoGain, m_autoIQCorrection, m_bandwidth, m_centerFrequency, m_dcCorrection, m_devSampleRate, m_globalGain, m_iqCorrection, m_log2Interp, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_transverterDeltaFrequency, m_transverterMode, and m_useReverseAPI.
Referenced by deserialize(), SoapySDROutput::deserialize(), SoapySDROutputGui::resetToDefaults(), and SoapySDROutputSettings().
QByteArray SoapySDROutputSettings::serialize | ( | ) | const |
Definition at line 52 of file soapysdroutputsettings.cpp.
References SimpleSerializer::final(), m_antenna, m_autoDCCorrection, m_autoGain, m_autoIQCorrection, m_bandwidth, m_dcCorrection, m_deviceArgSettings, m_devSampleRate, m_globalGain, m_individualGains, m_iqCorrection, m_log2Interp, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, 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 SoapySDROutputGui::serialize(), and SoapySDROutput::serialize().
|
private |
Definition at line 163 of file soapysdroutputsettings.cpp.
Referenced by serialize().
|
private |
Definition at line 146 of file soapysdroutputsettings.cpp.
Referenced by serialize().
QString SoapySDROutputSettings::m_antenna |
Definition at line 32 of file soapysdroutputsettings.h.
Referenced by SoapySDROutputGui::antennasChanged(), SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displaySettings(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
bool SoapySDROutputSettings::m_autoDCCorrection |
Definition at line 38 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), SoapySDROutputGui::autoDCCorrectionChanged(), deserialize(), SoapySDROutputGui::displayCorrectionsSettings(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
bool SoapySDROutputSettings::m_autoGain |
Definition at line 37 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), SoapySDROutputGui::autoGainChanged(), deserialize(), SoapySDROutputGui::displaySettings(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
bool SoapySDROutputSettings::m_autoIQCorrection |
Definition at line 39 of file soapysdroutputsettings.h.
Referenced by SoapySDROutputGui::autoIQCorrectionChanged(), deserialize(), SoapySDROutputGui::displayCorrectionsSettings(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
quint32 SoapySDROutputSettings::m_bandwidth |
Definition at line 33 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), SoapySDROutputGui::bandwidthChanged(), deserialize(), SoapySDROutputGui::displaySettings(), SoapySDROutput::handleMessage(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
quint64 SoapySDROutputSettings::m_centerFrequency |
Definition at line 26 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), SoapySDROutputGui::displaySettings(), SoapySDROutputGui::getCenterFrequency(), SoapySDROutput::getCenterFrequency(), SoapySDROutput::handleMessage(), SoapySDROutputGui::on_centerFrequency_changed(), resetToDefaults(), SoapySDROutputGui::setCenterFrequency(), SoapySDROutput::setCenterFrequency(), SoapySDROutputGui::setCenterFrequencySetting(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
std::complex<double> SoapySDROutputSettings::m_dcCorrection |
Definition at line 40 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), SoapySDROutputGui::dcCorrectionArgumentChanged(), SoapySDROutputGui::dcCorrectionModuleChanged(), deserialize(), SoapySDROutputGui::displayCorrectionsSettings(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
QMap<QString, QVariant> SoapySDROutputSettings::m_deviceArgSettings |
Definition at line 43 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::deviceArgChanged(), SoapySDROutputGui::displayDeviceArgsSettings(), SoapySDROutputGui::handleMessage(), SoapySDROutput::handleMessage(), SoapySDROutput::initDeviceArgSettings(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().
qint32 SoapySDROutputSettings::m_devSampleRate |
Definition at line 28 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displaySettings(), SoapySDROutput::getSampleRate(), SoapySDROutput::handleMessage(), SoapySDROutput::openDevice(), resetToDefaults(), SoapySDROutputGui::sampleRateChanged(), serialize(), SoapySDROutput::start(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
qint32 SoapySDROutputSettings::m_globalGain |
Definition at line 35 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displaySettings(), SoapySDROutputGui::globalGainChanged(), SoapySDROutputGui::handleMessage(), SoapySDROutput::initGainSettings(), resetToDefaults(), serialize(), SoapySDROutput::updateGains(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
QMap<QString, double> SoapySDROutputSettings::m_individualGains |
Definition at line 36 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displayIndividualGainsControlSettings(), SoapySDROutputGui::handleMessage(), SoapySDROutputGui::individualGainChanged(), SoapySDROutput::initGainSettings(), serialize(), SoapySDROutput::updateGains(), SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().
std::complex<double> SoapySDROutputSettings::m_iqCorrection |
Definition at line 41 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displayCorrectionsSettings(), SoapySDROutputGui::iqCorrectionArgumentChanged(), SoapySDROutputGui::iqCorrectionModuleChanged(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
quint32 SoapySDROutputSettings::m_log2Interp |
Definition at line 29 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displaySettings(), SoapySDROutput::getSampleRate(), SoapySDROutputGui::on_interp_currentIndexChanged(), SoapySDROutput::openDevice(), resetToDefaults(), serialize(), SoapySDROutput::start(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
int SoapySDROutputSettings::m_LOppmTenths |
Definition at line 27 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displaySettings(), SoapySDROutputGui::on_LOppm_valueChanged(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
QString SoapySDROutputSettings::m_reverseAPIAddress |
Definition at line 45 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), SoapySDROutput::webapiReverseSendStartStop(), and SoapySDROutput::webapiSettingsPutPatch().
uint16_t SoapySDROutputSettings::m_reverseAPIDeviceIndex |
Definition at line 47 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), SoapySDROutput::webapiReverseSendStartStop(), and SoapySDROutput::webapiSettingsPutPatch().
uint16_t SoapySDROutputSettings::m_reverseAPIPort |
Definition at line 46 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), SoapySDROutput::webapiReverseSendStartStop(), and SoapySDROutput::webapiSettingsPutPatch().
QMap<QString, QVariant> SoapySDROutputSettings::m_streamArgSettings |
Definition at line 42 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displayStreamArgsSettings(), SoapySDROutput::initStreamArgSettings(), serialize(), SoapySDROutputGui::streamArgChanged(), SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().
qint64 SoapySDROutputSettings::m_transverterDeltaFrequency |
Definition at line 31 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::on_transverter_clicked(), resetToDefaults(), serialize(), SoapySDROutputGui::updateFrequencyLimits(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
bool SoapySDROutputSettings::m_transverterMode |
Definition at line 30 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::on_transverter_clicked(), resetToDefaults(), serialize(), SoapySDROutputGui::updateFrequencyLimits(), SoapySDROutput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDROutput::webapiSettingsPutPatch().
QMap<QString, double> SoapySDROutputSettings::m_tunableElements |
Definition at line 34 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutputGui::displayTunableElementsControlSettings(), SoapySDROutput::initTunableElementsSettings(), serialize(), SoapySDROutputGui::tunableElementChanged(), SoapySDROutput::updateTunableElements(), SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().
bool SoapySDROutputSettings::m_useReverseAPI |
Definition at line 44 of file soapysdroutputsettings.h.
Referenced by SoapySDROutput::applySettings(), deserialize(), SoapySDROutput::handleMessage(), SoapySDROutputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SoapySDROutput::webapiFormatDeviceSettings(), and SoapySDROutput::webapiSettingsPutPatch().