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 <rtlsdrsettings.h>
Public Types | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
Public Member Functions | |
RTLSDRSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
int | m_devSampleRate |
bool | m_lowSampleRate |
quint64 | m_centerFrequency |
qint32 | m_gain |
qint32 | m_loPpmCorrection |
quint32 | m_log2Decim |
fcPos_t | m_fcPos |
bool | m_dcBlock |
bool | m_iqImbalance |
bool | m_agc |
bool | m_noModMode |
bool | m_transverterMode |
qint64 | m_transverterDeltaFrequency |
quint32 | m_rfBandwidth |
RF filter bandwidth in Hz. More... | |
QString | m_fileRecordName |
bool | m_offsetTuning |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Definition at line 23 of file rtlsdrsettings.h.
Enumerator | |
---|---|
FC_POS_INFRA | |
FC_POS_SUPRA | |
FC_POS_CENTER |
Definition at line 24 of file rtlsdrsettings.h.
RTLSDRSettings::RTLSDRSettings | ( | ) |
Definition at line 22 of file rtlsdrsettings.cpp.
References resetToDefaults().
bool RTLSDRSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 77 of file rtlsdrsettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_agc, m_dcBlock, m_devSampleRate, m_fcPos, m_gain, m_iqImbalance, m_log2Decim, m_loPpmCorrection, m_lowSampleRate, m_noModMode, m_offsetTuning, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readS64(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by RTLSDRGui::deserialize(), and RTLSDRInput::deserialize().
void RTLSDRSettings::resetToDefaults | ( | ) |
Definition at line 27 of file rtlsdrsettings.cpp.
References FC_POS_CENTER, m_agc, m_centerFrequency, m_dcBlock, m_devSampleRate, m_fcPos, m_fileRecordName, m_gain, m_iqImbalance, m_log2Decim, m_loPpmCorrection, m_lowSampleRate, m_noModMode, m_offsetTuning, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_transverterDeltaFrequency, m_transverterMode, and m_useReverseAPI.
Referenced by deserialize(), RTLSDRInput::deserialize(), RTLSDRGui::resetToDefaults(), and RTLSDRSettings().
QByteArray RTLSDRSettings::serialize | ( | ) | const |
Definition at line 51 of file rtlsdrsettings.cpp.
References SimpleSerializer::final(), m_agc, m_dcBlock, m_devSampleRate, m_fcPos, m_gain, m_iqImbalance, m_log2Decim, m_loPpmCorrection, m_lowSampleRate, m_noModMode, m_offsetTuning, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeS64(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by RTLSDRGui::serialize(), and RTLSDRInput::serialize().
bool RTLSDRSettings::m_agc |
Definition at line 39 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_agc_stateChanged(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
quint64 RTLSDRSettings::m_centerFrequency |
Definition at line 32 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), RTLSDRGui::displaySettings(), RTLSDRGui::getCenterFrequency(), RTLSDRInput::getCenterFrequency(), RTLSDRGui::on_centerFrequency_changed(), RTLSDRGui::on_checkBox_stateChanged(), RTLSDRGui::on_transverter_clicked(), resetToDefaults(), RTLSDRGui::setCenterFrequency(), RTLSDRInput::setCenterFrequency(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
bool RTLSDRSettings::m_dcBlock |
Definition at line 37 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_dcOffset_toggled(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
int RTLSDRSettings::m_devSampleRate |
Definition at line 30 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displayFcTooltip(), RTLSDRGui::displaySampleRate(), RTLSDRInput::getSampleRate(), RTLSDRGui::on_decim_currentIndexChanged(), RTLSDRGui::on_lowSampleRate_toggled(), RTLSDRGui::on_sampleRate_changed(), resetToDefaults(), serialize(), RTLSDRInput::start(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
fcPos_t RTLSDRSettings::m_fcPos |
Definition at line 36 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displayFcTooltip(), RTLSDRGui::displaySettings(), RTLSDRGui::on_fcPos_currentIndexChanged(), resetToDefaults(), serialize(), RTLSDRInput::start(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
QString RTLSDRSettings::m_fileRecordName |
Definition at line 44 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::handleMessage(), resetToDefaults(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
qint32 RTLSDRSettings::m_gain |
Definition at line 33 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displayGains(), RTLSDRGui::on_gain_valueChanged(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
bool RTLSDRSettings::m_iqImbalance |
Definition at line 38 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_iqImbalance_toggled(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
quint32 RTLSDRSettings::m_log2Decim |
Definition at line 35 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displayFcTooltip(), RTLSDRGui::displaySampleRate(), RTLSDRGui::displaySettings(), RTLSDRInput::getSampleRate(), RTLSDRGui::on_decim_currentIndexChanged(), RTLSDRGui::on_lowSampleRate_toggled(), RTLSDRGui::on_sampleRate_changed(), resetToDefaults(), serialize(), RTLSDRInput::start(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
qint32 RTLSDRSettings::m_loPpmCorrection |
Definition at line 34 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_ppm_valueChanged(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
bool RTLSDRSettings::m_lowSampleRate |
Definition at line 31 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySampleRate(), RTLSDRGui::displaySettings(), RTLSDRGui::on_lowSampleRate_toggled(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
bool RTLSDRSettings::m_noModMode |
Definition at line 40 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_checkBox_stateChanged(), resetToDefaults(), serialize(), RTLSDRGui::updateFrequencyLimits(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
bool RTLSDRSettings::m_offsetTuning |
Definition at line 45 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_offsetTuning_toggled(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
QString RTLSDRSettings::m_reverseAPIAddress |
Definition at line 47 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), RTLSDRInput::webapiReverseSendStartStop(), and RTLSDRInput::webapiSettingsPutPatch().
uint16_t RTLSDRSettings::m_reverseAPIDeviceIndex |
Definition at line 49 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), RTLSDRInput::webapiReverseSendStartStop(), and RTLSDRInput::webapiSettingsPutPatch().
uint16_t RTLSDRSettings::m_reverseAPIPort |
Definition at line 48 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), RTLSDRInput::webapiReverseSendStartStop(), and RTLSDRInput::webapiSettingsPutPatch().
quint32 RTLSDRSettings::m_rfBandwidth |
RF filter bandwidth in Hz.
Definition at line 43 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_rfBW_changed(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
qint64 RTLSDRSettings::m_transverterDeltaFrequency |
Definition at line 42 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_transverter_clicked(), resetToDefaults(), serialize(), RTLSDRGui::updateFrequencyLimits(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
bool RTLSDRSettings::m_transverterMode |
Definition at line 41 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRGui::displaySettings(), RTLSDRGui::on_transverter_clicked(), resetToDefaults(), serialize(), RTLSDRGui::updateFrequencyLimits(), RTLSDRInput::webapiFormatDeviceSettings(), RTLSDRInput::webapiReverseSendSettings(), and RTLSDRInput::webapiSettingsPutPatch().
bool RTLSDRSettings::m_useReverseAPI |
Definition at line 46 of file rtlsdrsettings.h.
Referenced by RTLSDRInput::applySettings(), deserialize(), RTLSDRInput::handleMessage(), RTLSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), RTLSDRInput::webapiFormatDeviceSettings(), and RTLSDRInput::webapiSettingsPutPatch().