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 <sdrplaysettings.h>
Public Types | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
Public Member Functions | |
SDRPlaySettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
void | debug (const char *title) const |
Public Attributes | |
uint64_t | m_centerFrequency |
qint32 | m_tunerGain |
int32_t | m_LOppmTenths |
uint32_t | m_frequencyBandIndex |
uint32_t | m_ifFrequencyIndex |
uint32_t | m_bandwidthIndex |
uint32_t | m_devSampleRateIndex |
uint32_t | m_log2Decim |
fcPos_t | m_fcPos |
bool | m_dcBlock |
bool | m_iqCorrection |
bool | m_tunerGainMode |
bool | m_lnaOn |
bool | m_mixerAmpOn |
int | m_basebandGain |
QString | m_fileRecordName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Definition at line 26 of file sdrplaysettings.h.
SDRPlaySettings::SDRPlaySettings | ( | ) |
Definition at line 23 of file sdrplaysettings.cpp.
References resetToDefaults().
|
inline |
bool SDRPlaySettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 78 of file sdrplaysettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_bandwidthIndex, m_basebandGain, m_dcBlock, m_devSampleRateIndex, m_fcPos, m_frequencyBandIndex, m_ifFrequencyIndex, m_iqCorrection, m_lnaOn, m_log2Decim, m_LOppmTenths, m_mixerAmpOn, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tunerGain, m_tunerGainMode, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by SDRPlayGui::deserialize(), and SDRPlayInput::deserialize().
void SDRPlaySettings::resetToDefaults | ( | ) |
Definition at line 28 of file sdrplaysettings.cpp.
References FC_POS_CENTER, m_bandwidthIndex, m_basebandGain, m_centerFrequency, m_dcBlock, m_devSampleRateIndex, m_fcPos, m_fileRecordName, m_frequencyBandIndex, m_ifFrequencyIndex, m_iqCorrection, m_lnaOn, m_log2Decim, m_LOppmTenths, m_mixerAmpOn, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tunerGain, m_tunerGainMode, and m_useReverseAPI.
Referenced by deserialize(), SDRPlayInput::deserialize(), SDRPlayGui::resetToDefaults(), and SDRPlaySettings().
QByteArray SDRPlaySettings::serialize | ( | ) | const |
Definition at line 52 of file sdrplaysettings.cpp.
References SimpleSerializer::final(), m_bandwidthIndex, m_basebandGain, m_dcBlock, m_devSampleRateIndex, m_fcPos, m_frequencyBandIndex, m_ifFrequencyIndex, m_iqCorrection, m_lnaOn, m_log2Decim, m_LOppmTenths, m_mixerAmpOn, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tunerGain, m_tunerGainMode, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by SDRPlayGui::serialize(), and SDRPlayInput::serialize().
uint32_t SDRPlaySettings::m_bandwidthIndex |
Definition at line 38 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_bandwidth_currentIndexChanged(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
int SDRPlaySettings::m_basebandGain |
Definition at line 47 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), debug(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_gainBaseband_valueChanged(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
uint64_t SDRPlaySettings::m_centerFrequency |
Definition at line 33 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), SDRPlayGui::displaySettings(), SDRPlayGui::getCenterFrequency(), SDRPlayInput::getCenterFrequency(), SDRPlayGui::on_centerFrequency_changed(), SDRPlayGui::on_fBand_currentIndexChanged(), resetToDefaults(), SDRPlayGui::setCenterFrequency(), SDRPlayInput::setCenterFrequency(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
bool SDRPlaySettings::m_dcBlock |
Definition at line 42 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_dcOffset_toggled(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
uint32_t SDRPlaySettings::m_devSampleRateIndex |
Definition at line 39 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayInput::getSampleRate(), SDRPlayInput::handleMessage(), SDRPlayGui::on_samplerate_currentIndexChanged(), resetToDefaults(), serialize(), SDRPlayInput::start(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
fcPos_t SDRPlaySettings::m_fcPos |
Definition at line 41 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_fcPos_currentIndexChanged(), resetToDefaults(), serialize(), SDRPlayInput::start(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
QString SDRPlaySettings::m_fileRecordName |
Definition at line 48 of file sdrplaysettings.h.
Referenced by SDRPlayInput::handleMessage(), resetToDefaults(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
uint32_t SDRPlaySettings::m_frequencyBandIndex |
Definition at line 36 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_fBand_currentIndexChanged(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
uint32_t SDRPlaySettings::m_ifFrequencyIndex |
Definition at line 37 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_ifFrequency_currentIndexChanged(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
bool SDRPlaySettings::m_iqCorrection |
Definition at line 43 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_iqImbalance_toggled(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
bool SDRPlaySettings::m_lnaOn |
Definition at line 45 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_gainLNA_toggled(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
uint32_t SDRPlaySettings::m_log2Decim |
Definition at line 40 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayInput::getSampleRate(), SDRPlayGui::on_decim_currentIndexChanged(), resetToDefaults(), serialize(), SDRPlayInput::start(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
int32_t SDRPlaySettings::m_LOppmTenths |
Definition at line 35 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_ppm_valueChanged(), resetToDefaults(), serialize(), SDRPlayInput::setDeviceCenterFrequency(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
bool SDRPlaySettings::m_mixerAmpOn |
Definition at line 46 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_gainMixer_toggled(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
QString SDRPlaySettings::m_reverseAPIAddress |
Definition at line 50 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), SDRPlayInput::webapiReverseSendStartStop(), and SDRPlayInput::webapiSettingsPutPatch().
uint16_t SDRPlaySettings::m_reverseAPIDeviceIndex |
Definition at line 52 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), SDRPlayInput::webapiReverseSendStartStop(), and SDRPlayInput::webapiSettingsPutPatch().
uint16_t SDRPlaySettings::m_reverseAPIPort |
Definition at line 51 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), SDRPlayInput::webapiReverseSendStartStop(), and SDRPlayInput::webapiSettingsPutPatch().
qint32 SDRPlaySettings::m_tunerGain |
Definition at line 34 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::on_gainTuner_valueChanged(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
bool SDRPlaySettings::m_tunerGainMode |
Definition at line 44 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayGui::displaySettings(), SDRPlayGui::handleMessage(), SDRPlayGui::on_gainManualOn_toggled(), SDRPlayGui::on_gainTunerOn_toggled(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), SDRPlayInput::webapiReverseSendSettings(), and SDRPlayInput::webapiSettingsPutPatch().
bool SDRPlaySettings::m_useReverseAPI |
Definition at line 49 of file sdrplaysettings.h.
Referenced by SDRPlayInput::applySettings(), deserialize(), SDRPlayInput::handleMessage(), SDRPlayGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiSettingsPutPatch().