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 <testsourcesettings.h>
Public Types | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
enum | AutoCorrOptions { AutoCorrNone, AutoCorrDC, AutoCorrDCAndIQ, AutoCorrLast } |
enum | Modulation { ModulationNone, ModulationAM, ModulationFM, ModulationPattern0, ModulationPattern1, ModulationPattern2, ModulationLast } |
Public Member Functions | |
TestSourceSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
quint64 | m_centerFrequency |
qint32 | m_frequencyShift |
quint32 | m_sampleRate |
quint32 | m_log2Decim |
fcPos_t | m_fcPos |
quint32 | m_sampleSizeIndex |
qint32 | m_amplitudeBits |
AutoCorrOptions | m_autoCorrOptions |
Modulation | m_modulation |
int | m_modulationTone |
10'Hz More... | |
int | m_amModulation |
percent More... | |
int | m_fmDeviation |
100'Hz More... | |
float | m_dcFactor |
-1.0 < x < 1.0 More... | |
float | m_iFactor |
-1.0 < x < 1.0 More... | |
float | m_qFactor |
-1.0 < x < 1.0 More... | |
float | m_phaseImbalance |
-1.0 < x < 1.0 More... | |
QString | m_fileRecordName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Definition at line 23 of file testsourcesettings.h.
Enumerator | |
---|---|
AutoCorrNone | |
AutoCorrDC | |
AutoCorrDCAndIQ | |
AutoCorrLast |
Definition at line 30 of file testsourcesettings.h.
Enumerator | |
---|---|
FC_POS_INFRA | |
FC_POS_SUPRA | |
FC_POS_CENTER |
Definition at line 24 of file testsourcesettings.h.
Enumerator | |
---|---|
ModulationNone | |
ModulationAM | |
ModulationFM | |
ModulationPattern0 | |
ModulationPattern1 | |
ModulationPattern2 | |
ModulationLast |
Definition at line 37 of file testsourcesettings.h.
TestSourceSettings::TestSourceSettings | ( | ) |
Definition at line 22 of file testsourcesettings.cpp.
References resetToDefaults().
bool TestSourceSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 78 of file testsourcesettings.cpp.
References AutoCorrLast, AutoCorrNone, SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_amModulation, m_amplitudeBits, m_autoCorrOptions, m_dcFactor, m_fcPos, m_fmDeviation, m_frequencyShift, m_iFactor, m_log2Decim, m_modulation, m_modulationTone, m_phaseImbalance, m_qFactor, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_sampleRate, m_sampleSizeIndex, m_useReverseAPI, ModulationLast, ModulationNone, SimpleDeserializer::readBool(), SimpleDeserializer::readFloat(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by TestSourceGui::deserialize(), and TestSourceInput::deserialize().
void TestSourceSettings::resetToDefaults | ( | ) |
Definition at line 27 of file testsourcesettings.cpp.
References AutoCorrNone, FC_POS_CENTER, m_amModulation, m_amplitudeBits, m_autoCorrOptions, m_centerFrequency, m_dcFactor, m_fcPos, m_fileRecordName, m_fmDeviation, m_frequencyShift, m_iFactor, m_log2Decim, m_modulation, m_modulationTone, m_phaseImbalance, m_qFactor, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_sampleRate, m_sampleSizeIndex, m_useReverseAPI, and ModulationNone.
Referenced by deserialize(), TestSourceInput::deserialize(), TestSourceGui::resetToDefaults(), and TestSourceSettings().
QByteArray TestSourceSettings::serialize | ( | ) | const |
Definition at line 52 of file testsourcesettings.cpp.
References SimpleSerializer::final(), m_amModulation, m_amplitudeBits, m_autoCorrOptions, m_dcFactor, m_fcPos, m_fmDeviation, m_frequencyShift, m_iFactor, m_log2Decim, m_modulation, m_modulationTone, m_phaseImbalance, m_qFactor, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_sampleRate, m_sampleSizeIndex, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeFloat(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by TestSourceGui::serialize(), and TestSourceInput::serialize().
int TestSourceSettings::m_amModulation |
percent
Definition at line 57 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_amModulation_valueChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
qint32 TestSourceSettings::m_amplitudeBits |
Definition at line 53 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_amplitudeCoarse_valueChanged(), TestSourceGui::on_amplitudeFine_valueChanged(), TestSourceGui::on_sampleSize_currentIndexChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
AutoCorrOptions TestSourceSettings::m_autoCorrOptions |
Definition at line 54 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_autoCorr_currentIndexChanged(), resetToDefaults(), serialize(), and TestSourceInput::webapiFormatDeviceSettings().
quint64 TestSourceSettings::m_centerFrequency |
Definition at line 47 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), TestSourceGui::displaySettings(), TestSourceGui::getCenterFrequency(), TestSourceInput::getCenterFrequency(), TestSourceGui::on_centerFrequency_changed(), resetToDefaults(), TestSourceGui::setCenterFrequency(), TestSourceInput::setCenterFrequency(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
float TestSourceSettings::m_dcFactor |
-1.0 < x < 1.0
Definition at line 59 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_dcBias_valueChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
fcPos_t TestSourceSettings::m_fcPos |
Definition at line 51 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_fcPos_currentIndexChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
QString TestSourceSettings::m_fileRecordName |
Definition at line 63 of file testsourcesettings.h.
Referenced by TestSourceInput::handleMessage(), resetToDefaults(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
int TestSourceSettings::m_fmDeviation |
100'Hz
Definition at line 58 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_fmDeviation_valueChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
qint32 TestSourceSettings::m_frequencyShift |
Definition at line 48 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_frequencyShift_changed(), TestSourceGui::on_sampleRate_changed(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
float TestSourceSettings::m_iFactor |
-1.0 < x < 1.0
Definition at line 60 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_iBias_valueChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
quint32 TestSourceSettings::m_log2Decim |
Definition at line 50 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceInput::getSampleRate(), TestSourceGui::on_decimation_currentIndexChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
Modulation TestSourceSettings::m_modulation |
Definition at line 55 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_modulation_currentIndexChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
int TestSourceSettings::m_modulationTone |
10'Hz
Definition at line 56 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_modulationFrequency_valueChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
float TestSourceSettings::m_phaseImbalance |
-1.0 < x < 1.0
Definition at line 62 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_phaseImbalance_valueChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
float TestSourceSettings::m_qFactor |
-1.0 < x < 1.0
Definition at line 61 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_qBias_valueChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
QString TestSourceSettings::m_reverseAPIAddress |
Definition at line 65 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), TestSourceInput::webapiReverseSendStartStop(), and TestSourceInput::webapiSettingsPutPatch().
uint16_t TestSourceSettings::m_reverseAPIDeviceIndex |
Definition at line 67 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), TestSourceInput::webapiReverseSendStartStop(), and TestSourceInput::webapiSettingsPutPatch().
uint16_t TestSourceSettings::m_reverseAPIPort |
Definition at line 66 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), TestSourceInput::webapiReverseSendStartStop(), and TestSourceInput::webapiSettingsPutPatch().
quint32 TestSourceSettings::m_sampleRate |
Definition at line 49 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceInput::getSampleRate(), TestSourceGui::on_sampleRate_changed(), resetToDefaults(), serialize(), TestSourceInput::start(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
quint32 TestSourceSettings::m_sampleSizeIndex |
Definition at line 52 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceGui::displaySettings(), TestSourceGui::on_sampleSize_currentIndexChanged(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), TestSourceInput::webapiReverseSendSettings(), and TestSourceInput::webapiSettingsPutPatch().
bool TestSourceSettings::m_useReverseAPI |
Definition at line 64 of file testsourcesettings.h.
Referenced by TestSourceInput::applySettings(), deserialize(), TestSourceInput::handleMessage(), TestSourceGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), TestSourceInput::webapiFormatDeviceSettings(), and TestSourceInput::webapiSettingsPutPatch().