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 <hackrfinputsettings.h>
Public Types | |
enum | fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER } |
Public Member Functions | |
HackRFInputSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
quint64 | m_centerFrequency |
qint32 | m_LOppmTenths |
quint32 | m_bandwidth |
quint32 | m_lnaGain |
quint32 | m_vgaGain |
quint32 | m_log2Decim |
fcPos_t | m_fcPos |
quint64 | m_devSampleRate |
bool | m_biasT |
bool | m_lnaExt |
bool | m_dcBlock |
bool | m_iqCorrection |
QString | m_fileRecordName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Definition at line 24 of file hackrfinputsettings.h.
Enumerator | |
---|---|
FC_POS_INFRA | |
FC_POS_SUPRA | |
FC_POS_CENTER |
Definition at line 25 of file hackrfinputsettings.h.
HackRFInputSettings::HackRFInputSettings | ( | ) |
Definition at line 24 of file hackrfinputsettings.cpp.
References resetToDefaults().
bool HackRFInputSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 73 of file hackrfinputsettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_bandwidth, m_biasT, m_dcBlock, m_devSampleRate, m_fcPos, m_iqCorrection, m_lnaExt, m_lnaGain, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_useReverseAPI, m_vgaGain, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), SimpleDeserializer::readU64(), and resetToDefaults().
Referenced by HackRFInputGui::deserialize(), and HackRFInput::deserialize().
void HackRFInputSettings::resetToDefaults | ( | ) |
Definition at line 29 of file hackrfinputsettings.cpp.
References FC_POS_CENTER, m_bandwidth, m_biasT, m_centerFrequency, m_dcBlock, m_devSampleRate, m_fcPos, m_fileRecordName, m_iqCorrection, m_lnaExt, m_lnaGain, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_useReverseAPI, and m_vgaGain.
Referenced by deserialize(), HackRFInput::deserialize(), HackRFInputSettings(), and HackRFInputGui::resetToDefaults().
QByteArray HackRFInputSettings::serialize | ( | ) | const |
Definition at line 50 of file hackrfinputsettings.cpp.
References SimpleSerializer::final(), m_bandwidth, m_biasT, m_dcBlock, m_devSampleRate, m_fcPos, m_iqCorrection, m_lnaExt, m_lnaGain, m_log2Decim, m_LOppmTenths, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_useReverseAPI, m_vgaGain, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), SimpleSerializer::writeU32(), and SimpleSerializer::writeU64().
Referenced by HackRFInputGui::serialize(), and HackRFInput::serialize().
quint32 HackRFInputSettings::m_bandwidth |
Definition at line 33 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displayBandwidths(), HackRFInputGui::displaySettings(), HackRFInputGui::on_bbFilter_currentIndexChanged(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
bool HackRFInputSettings::m_biasT |
Definition at line 39 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displaySettings(), HackRFInputGui::on_biasT_stateChanged(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
quint64 HackRFInputSettings::m_centerFrequency |
Definition at line 31 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), HackRFInputGui::displaySettings(), HackRFInputGui::getCenterFrequency(), HackRFInput::getCenterFrequency(), HackRFInput::handleMessage(), HackRFInputGui::on_centerFrequency_changed(), resetToDefaults(), HackRFInputGui::setCenterFrequency(), HackRFInput::setCenterFrequency(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
bool HackRFInputSettings::m_dcBlock |
Definition at line 41 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displaySettings(), HackRFInputGui::on_dcOffset_toggled(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
quint64 HackRFInputSettings::m_devSampleRate |
Definition at line 38 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displayFcTooltip(), HackRFInputGui::displaySampleRate(), HackRFInput::getSampleRate(), HackRFInput::handleMessage(), HackRFInputGui::on_decim_currentIndexChanged(), HackRFInputGui::on_sampleRate_changed(), resetToDefaults(), serialize(), HackRFInput::start(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
fcPos_t HackRFInputSettings::m_fcPos |
Definition at line 37 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displayFcTooltip(), HackRFInputGui::displaySettings(), HackRFInput::handleMessage(), HackRFInputGui::on_fcPos_currentIndexChanged(), resetToDefaults(), serialize(), HackRFInput::start(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
QString HackRFInputSettings::m_fileRecordName |
Definition at line 43 of file hackrfinputsettings.h.
Referenced by HackRFInput::handleMessage(), resetToDefaults(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
bool HackRFInputSettings::m_iqCorrection |
Definition at line 42 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displaySettings(), HackRFInputGui::on_iqImbalance_toggled(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
bool HackRFInputSettings::m_lnaExt |
Definition at line 40 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displaySettings(), HackRFInputGui::on_lnaExt_stateChanged(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
quint32 HackRFInputSettings::m_lnaGain |
Definition at line 34 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displaySettings(), HackRFInputGui::on_lna_valueChanged(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
quint32 HackRFInputSettings::m_log2Decim |
Definition at line 36 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displayFcTooltip(), HackRFInputGui::displaySampleRate(), HackRFInputGui::displaySettings(), HackRFInput::getSampleRate(), HackRFInput::handleMessage(), HackRFInputGui::on_decim_currentIndexChanged(), HackRFInputGui::on_sampleRate_changed(), resetToDefaults(), serialize(), HackRFInput::start(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
qint32 HackRFInputSettings::m_LOppmTenths |
Definition at line 32 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displaySettings(), HackRFInputGui::on_LOppm_valueChanged(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().
QString HackRFInputSettings::m_reverseAPIAddress |
Definition at line 45 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), HackRFInput::webapiReverseSendStartStop(), and HackRFInput::webapiSettingsPutPatch().
uint16_t HackRFInputSettings::m_reverseAPIDeviceIndex |
Definition at line 47 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), HackRFInput::webapiReverseSendStartStop(), and HackRFInput::webapiSettingsPutPatch().
uint16_t HackRFInputSettings::m_reverseAPIPort |
Definition at line 46 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), HackRFInput::webapiReverseSendStartStop(), and HackRFInput::webapiSettingsPutPatch().
bool HackRFInputSettings::m_useReverseAPI |
Definition at line 44 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInput::handleMessage(), HackRFInputGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), and HackRFInput::webapiSettingsPutPatch().
quint32 HackRFInputSettings::m_vgaGain |
Definition at line 35 of file hackrfinputsettings.h.
Referenced by HackRFInput::applySettings(), deserialize(), HackRFInputGui::displaySettings(), HackRFInputGui::on_vga_valueChanged(), resetToDefaults(), serialize(), HackRFInput::webapiFormatDeviceSettings(), HackRFInput::webapiReverseSendSettings(), and HackRFInput::webapiSettingsPutPatch().