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 <xtrxinputsettings.h>
Public Types | |
enum | GainMode { GAIN_AUTO, GAIN_MANUAL } |
Public Member Functions | |
XTRXInputSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
uint64_t | m_centerFrequency |
double | m_devSampleRate |
uint32_t | m_log2HardDecim |
bool | m_dcBlock |
bool | m_iqCorrection |
uint32_t | m_log2SoftDecim |
float | m_lpfBW |
LMS analog lowpass filter bandwidth (Hz) More... | |
uint32_t | m_gain |
Optimally distributed gain (dB) More... | |
bool | m_ncoEnable |
Enable TSP NCO and mixing. More... | |
int | m_ncoFrequency |
Actual NCO frequency (the resulting frequency with mixing is displayed) More... | |
xtrx_antenna_t | m_antennaPath |
GainMode | m_gainMode |
Gain mode: auto or manual. More... | |
uint32_t | m_lnaGain |
Manual LNA gain. More... | |
uint32_t | m_tiaGain |
Manual TIA gain. More... | |
uint32_t | m_pgaGain |
Manual PGA gain. More... | |
bool | m_extClock |
True if external clock source. More... | |
uint32_t | m_extClockFreq |
Frequency (Hz) of external clock source. More... | |
uint32_t | m_pwrmode |
QString | m_fileRecordName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
These are the settings individual to each hardware channel or software Rx chain Plus the settings to be saved in the presets
Definition at line 32 of file xtrxinputsettings.h.
XTRXInputSettings::XTRXInputSettings | ( | ) |
Definition at line 21 of file xtrxinputsettings.cpp.
References resetToDefaults().
bool XTRXInputSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 83 of file xtrxinputsettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_antennaPath, m_dcBlock, m_devSampleRate, m_extClock, m_extClockFreq, m_fileRecordName, m_gain, m_gainMode, m_iqCorrection, m_lnaGain, m_log2HardDecim, m_log2SoftDecim, m_lpfBW, m_ncoEnable, m_ncoFrequency, m_pgaGain, m_pwrmode, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tiaGain, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readDouble(), SimpleDeserializer::readFloat(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by XTRXInputGUI::deserialize(), and XTRXInput::deserialize().
void XTRXInputSettings::resetToDefaults | ( | ) |
Definition at line 26 of file xtrxinputsettings.cpp.
References GAIN_AUTO, m_antennaPath, m_centerFrequency, m_dcBlock, m_devSampleRate, m_extClock, m_extClockFreq, m_fileRecordName, m_gain, m_gainMode, m_iqCorrection, m_lnaGain, m_log2HardDecim, m_log2SoftDecim, m_lpfBW, m_ncoEnable, m_ncoFrequency, m_pgaGain, m_pwrmode, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tiaGain, and m_useReverseAPI.
Referenced by deserialize(), XTRXInput::deserialize(), XTRXInputGUI::resetToDefaults(), and XTRXInputSettings().
QByteArray XTRXInputSettings::serialize | ( | ) | const |
Definition at line 53 of file xtrxinputsettings.cpp.
References SimpleSerializer::final(), m_antennaPath, m_dcBlock, m_devSampleRate, m_extClock, m_extClockFreq, m_fileRecordName, m_gain, m_gainMode, m_iqCorrection, m_lnaGain, m_log2HardDecim, m_log2SoftDecim, m_lpfBW, m_ncoEnable, m_ncoFrequency, m_pgaGain, m_pwrmode, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tiaGain, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeDouble(), SimpleSerializer::writeFloat(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by XTRXInputGUI::serialize(), and XTRXInput::serialize().
xtrx_antenna_t XTRXInputSettings::m_antennaPath |
Definition at line 51 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_antenna_currentIndexChanged(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint64_t XTRXInputSettings::m_centerFrequency |
Definition at line 40 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), XTRXInputGUI::getCenterFrequency(), XTRXInput::getCenterFrequency(), XTRXInputGUI::handleMessage(), XTRXInput::handleMessage(), resetToDefaults(), XTRXInputGUI::setCenterFrequency(), XTRXInput::setCenterFrequency(), XTRXInputGUI::setCenterFrequencyDisplay(), XTRXInputGUI::setCenterFrequencySetting(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
bool XTRXInputSettings::m_dcBlock |
Definition at line 44 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_dcOffset_toggled(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
double XTRXInputSettings::m_devSampleRate |
Definition at line 41 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySampleRate(), XTRXInput::getDevSampleRate(), XTRXInput::getSampleRate(), XTRXInputGUI::handleMessage(), XTRXInput::handleMessage(), XTRXInputGUI::on_hwDecim_currentIndexChanged(), XTRXInputGUI::on_sampleRate_changed(), resetToDefaults(), serialize(), XTRXInputGUI::setNCODisplay(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
bool XTRXInputSettings::m_extClock |
True if external clock source.
Definition at line 56 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::handleMessage(), XTRXInput::handleMessage(), XTRXInputGUI::on_extClock_clicked(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_extClockFreq |
Frequency (Hz) of external clock source.
Definition at line 57 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::handleMessage(), XTRXInput::handleMessage(), XTRXInputGUI::on_extClock_clicked(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
QString XTRXInputSettings::m_fileRecordName |
Definition at line 59 of file xtrxinputsettings.h.
Referenced by deserialize(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_gain |
Optimally distributed gain (dB)
Definition at line 48 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_gain_valueChanged(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
GainMode XTRXInputSettings::m_gainMode |
Gain mode: auto or manual.
Definition at line 52 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_gainMode_currentIndexChanged(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
bool XTRXInputSettings::m_iqCorrection |
Definition at line 45 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_iqImbalance_toggled(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_lnaGain |
Manual LNA gain.
Definition at line 53 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_lnaGain_valueChanged(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_log2HardDecim |
Definition at line 42 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInput::getLog2HardDecim(), XTRXInputGUI::handleMessage(), XTRXInput::handleMessage(), XTRXInputGUI::on_hwDecim_currentIndexChanged(), resetToDefaults(), serialize(), XTRXInputGUI::setNCODisplay(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_log2SoftDecim |
Definition at line 46 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySampleRate(), XTRXInputGUI::displaySettings(), XTRXInput::getSampleRate(), XTRXInput::handleMessage(), XTRXInputGUI::on_hwDecim_currentIndexChanged(), XTRXInputGUI::on_sampleRate_changed(), XTRXInputGUI::on_swDecim_currentIndexChanged(), resetToDefaults(), serialize(), XTRXInput::start(), XTRXInput::stop(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
float XTRXInputSettings::m_lpfBW |
LMS analog lowpass filter bandwidth (Hz)
Definition at line 47 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_lpf_changed(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
bool XTRXInputSettings::m_ncoEnable |
Enable TSP NCO and mixing.
Definition at line 49 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::getCenterFrequency(), XTRXInput::getCenterFrequency(), XTRXInput::handleMessage(), XTRXInputGUI::on_ncoEnable_toggled(), resetToDefaults(), serialize(), XTRXInputGUI::setCenterFrequency(), XTRXInput::setCenterFrequency(), XTRXInputGUI::setCenterFrequencyDisplay(), XTRXInputGUI::setCenterFrequencySetting(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
int XTRXInputSettings::m_ncoFrequency |
Actual NCO frequency (the resulting frequency with mixing is displayed)
Definition at line 50 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::getCenterFrequency(), XTRXInput::getCenterFrequency(), XTRXInput::handleMessage(), XTRXInputGUI::on_ncoFrequency_changed(), resetToDefaults(), serialize(), XTRXInputGUI::setCenterFrequency(), XTRXInput::setCenterFrequency(), XTRXInputGUI::setCenterFrequencyDisplay(), XTRXInputGUI::setCenterFrequencySetting(), XTRXInputGUI::setNCODisplay(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_pgaGain |
Manual PGA gain.
Definition at line 55 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_pgaGain_valueChanged(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_pwrmode |
Definition at line 58 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_pwrmode_currentIndexChanged(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
QString XTRXInputSettings::m_reverseAPIAddress |
Definition at line 61 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), XTRXInput::webapiReverseSendStartStop(), and XTRXInput::webapiSettingsPutPatch().
uint16_t XTRXInputSettings::m_reverseAPIDeviceIndex |
Definition at line 63 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), XTRXInput::webapiReverseSendStartStop(), and XTRXInput::webapiSettingsPutPatch().
uint16_t XTRXInputSettings::m_reverseAPIPort |
Definition at line 62 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), XTRXInput::webapiReverseSendStartStop(), and XTRXInput::webapiSettingsPutPatch().
uint32_t XTRXInputSettings::m_tiaGain |
Manual TIA gain.
Definition at line 54 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::displaySettings(), XTRXInputGUI::on_tiaGain_currentIndexChanged(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), XTRXInput::webapiReverseSendSettings(), and XTRXInput::webapiSettingsPutPatch().
bool XTRXInputSettings::m_useReverseAPI |
Definition at line 60 of file xtrxinputsettings.h.
Referenced by XTRXInput::applySettings(), deserialize(), XTRXInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXInput::webapiFormatDeviceSettings(), and XTRXInput::webapiSettingsPutPatch().