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 <xtrxoutputsettings.h>
Public Member Functions | |
XTRXOutputSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
uint64_t | m_centerFrequency |
double | m_devSampleRate |
uint32_t | m_log2HardInterp |
uint32_t | m_log2SoftInterp |
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 |
bool | m_extClock |
True if external clock source. More... | |
uint32_t | m_extClockFreq |
Frequency (Hz) of external clock source. More... | |
uint32_t | m_pwrmode |
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 Tx chain Plus the settings to be saved in the presets
Definition at line 32 of file xtrxoutputsettings.h.
XTRXOutputSettings::XTRXOutputSettings | ( | ) |
Definition at line 22 of file xtrxoutputsettings.cpp.
References resetToDefaults().
bool XTRXOutputSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 70 of file xtrxoutputsettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_antennaPath, m_devSampleRate, m_extClock, m_extClockFreq, m_gain, m_log2HardInterp, m_log2SoftInterp, m_lpfBW, m_ncoEnable, m_ncoFrequency, m_pwrmode, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readDouble(), SimpleDeserializer::readFloat(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by XTRXOutputGUI::deserialize(), and XTRXOutput::deserialize().
void XTRXOutputSettings::resetToDefaults | ( | ) |
Definition at line 27 of file xtrxoutputsettings.cpp.
References m_antennaPath, m_centerFrequency, m_devSampleRate, m_extClock, m_extClockFreq, m_gain, m_log2HardInterp, m_log2SoftInterp, m_lpfBW, m_ncoEnable, m_ncoFrequency, m_pwrmode, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, and m_useReverseAPI.
Referenced by deserialize(), XTRXOutput::deserialize(), XTRXOutputGUI::resetToDefaults(), and XTRXOutputSettings().
QByteArray XTRXOutputSettings::serialize | ( | ) | const |
Definition at line 47 of file xtrxoutputsettings.cpp.
References SimpleSerializer::final(), m_antennaPath, m_devSampleRate, m_extClock, m_extClockFreq, m_gain, m_log2HardInterp, m_log2SoftInterp, m_lpfBW, m_ncoEnable, m_ncoFrequency, m_pwrmode, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeDouble(), SimpleSerializer::writeFloat(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by XTRXOutputGUI::serialize(), and XTRXOutput::serialize().
xtrx_antenna_t XTRXOutputSettings::m_antennaPath |
Definition at line 44 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutputGUI::on_antenna_currentIndexChanged(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
uint64_t XTRXOutputSettings::m_centerFrequency |
Definition at line 35 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), XTRXOutputGUI::getCenterFrequency(), XTRXOutput::getCenterFrequency(), XTRXOutputGUI::handleMessage(), XTRXOutput::handleMessage(), resetToDefaults(), XTRXOutputGUI::setCenterFrequency(), XTRXOutput::setCenterFrequency(), XTRXOutputGUI::setCenterFrequencyDisplay(), XTRXOutputGUI::setCenterFrequencySetting(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
double XTRXOutputSettings::m_devSampleRate |
Definition at line 36 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySampleRate(), XTRXOutput::getDevSampleRate(), XTRXOutput::getSampleRate(), XTRXOutputGUI::handleMessage(), XTRXOutput::handleMessage(), XTRXOutputGUI::on_sampleRate_changed(), XTRXOutputGUI::on_swInterp_currentIndexChanged(), XTRXOutput::openDevice(), resetToDefaults(), serialize(), XTRXOutputGUI::setNCODisplay(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
bool XTRXOutputSettings::m_extClock |
True if external clock source.
Definition at line 45 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutputGUI::handleMessage(), XTRXOutput::handleMessage(), XTRXOutputGUI::on_extClock_clicked(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
uint32_t XTRXOutputSettings::m_extClockFreq |
Frequency (Hz) of external clock source.
Definition at line 46 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutputGUI::handleMessage(), XTRXOutput::handleMessage(), XTRXOutputGUI::on_extClock_clicked(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
uint32_t XTRXOutputSettings::m_gain |
Optimally distributed gain (dB)
Definition at line 41 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutputGUI::on_gain_valueChanged(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
uint32_t XTRXOutputSettings::m_log2HardInterp |
Definition at line 37 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutput::getLog2HardInterp(), XTRXOutputGUI::handleMessage(), XTRXOutput::handleMessage(), XTRXOutputGUI::on_hwInterp_currentIndexChanged(), resetToDefaults(), serialize(), XTRXOutputGUI::setNCODisplay(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
uint32_t XTRXOutputSettings::m_log2SoftInterp |
Definition at line 39 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySampleRate(), XTRXOutputGUI::displaySettings(), XTRXOutput::getSampleRate(), XTRXOutput::handleMessage(), XTRXOutputGUI::on_sampleRate_changed(), XTRXOutputGUI::on_swInterp_currentIndexChanged(), XTRXOutput::openDevice(), resetToDefaults(), serialize(), XTRXOutput::start(), XTRXOutput::stop(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
float XTRXOutputSettings::m_lpfBW |
LMS analog lowpass filter bandwidth (Hz)
Definition at line 40 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutputGUI::on_lpf_changed(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
bool XTRXOutputSettings::m_ncoEnable |
Enable TSP NCO and mixing.
Definition at line 42 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutputGUI::getCenterFrequency(), XTRXOutput::getCenterFrequency(), XTRXOutput::handleMessage(), XTRXOutputGUI::on_ncoEnable_toggled(), resetToDefaults(), serialize(), XTRXOutputGUI::setCenterFrequency(), XTRXOutput::setCenterFrequency(), XTRXOutputGUI::setCenterFrequencyDisplay(), XTRXOutputGUI::setCenterFrequencySetting(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
int XTRXOutputSettings::m_ncoFrequency |
Actual NCO frequency (the resulting frequency with mixing is displayed)
Definition at line 43 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::getCenterFrequency(), XTRXOutput::getCenterFrequency(), XTRXOutput::handleMessage(), XTRXOutputGUI::on_ncoFrequency_changed(), resetToDefaults(), serialize(), XTRXOutputGUI::setCenterFrequency(), XTRXOutput::setCenterFrequency(), XTRXOutputGUI::setCenterFrequencyDisplay(), XTRXOutputGUI::setCenterFrequencySetting(), XTRXOutputGUI::setNCODisplay(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
uint32_t XTRXOutputSettings::m_pwrmode |
Definition at line 47 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::displaySettings(), XTRXOutputGUI::on_pwrmode_currentIndexChanged(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), and XTRXOutput::webapiSettingsPutPatch().
QString XTRXOutputSettings::m_reverseAPIAddress |
Definition at line 49 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), XTRXOutput::webapiReverseSendStartStop(), and XTRXOutput::webapiSettingsPutPatch().
uint16_t XTRXOutputSettings::m_reverseAPIDeviceIndex |
Definition at line 51 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), XTRXOutput::webapiReverseSendStartStop(), and XTRXOutput::webapiSettingsPutPatch().
uint16_t XTRXOutputSettings::m_reverseAPIPort |
Definition at line 50 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), XTRXOutput::webapiReverseSendSettings(), XTRXOutput::webapiReverseSendStartStop(), and XTRXOutput::webapiSettingsPutPatch().
bool XTRXOutputSettings::m_useReverseAPI |
Definition at line 48 of file xtrxoutputsettings.h.
Referenced by XTRXOutput::applySettings(), deserialize(), XTRXOutputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), XTRXOutput::webapiFormatDeviceSettings(), and XTRXOutput::webapiSettingsPutPatch().