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 <limesdrinputsettings.h>
Public Types | |
enum | PathRFE { PATH_RFE_NONE = 0, PATH_RFE_LNAH, PATH_RFE_LNAL, PATH_RFE_LNAW, PATH_RFE_LB1, PATH_RFE_LB2 } |
enum | GainMode { GAIN_AUTO, GAIN_MANUAL } |
Public Member Functions | |
LimeSDRInputSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
uint64_t | m_centerFrequency |
int | m_devSampleRate |
uint32_t | m_log2HardDecim |
bool | m_dcBlock |
bool | m_iqCorrection |
uint32_t | m_log2SoftDecim |
float | m_lpfBW |
LMS amalog lowpass filter bandwidth (Hz) More... | |
bool | m_lpfFIREnable |
Enable LMS digital lowpass FIR filters. More... | |
float | m_lpfFIRBW |
LMS digital lowpass FIR filters 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... | |
PathRFE | m_antennaPath |
GainMode | m_gainMode |
Gain mode: auto or manual. More... | |
uint32_t | m_lnaGain |
Manual LAN 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... | |
bool | m_transverterMode |
qint64 | m_transverterDeltaFrequency |
QString | m_fileRecordName |
uint8_t | m_gpioDir |
GPIO pin direction LSB first; 0 input, 1 output. More... | |
uint8_t | m_gpioPins |
GPIO pins to write; LSB first. More... | |
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 29 of file limesdrinputsettings.h.
Enumerator | |
---|---|
PATH_RFE_NONE | |
PATH_RFE_LNAH | |
PATH_RFE_LNAL | |
PATH_RFE_LNAW | |
PATH_RFE_LB1 | |
PATH_RFE_LB2 |
Definition at line 31 of file limesdrinputsettings.h.
LimeSDRInputSettings::LimeSDRInputSettings | ( | ) |
Definition at line 21 of file limesdrinputsettings.cpp.
References resetToDefaults().
bool LimeSDRInputSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 91 of file limesdrinputsettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_antennaPath, m_dcBlock, m_devSampleRate, m_extClock, m_extClockFreq, m_gain, m_gainMode, m_gpioDir, m_gpioPins, m_iqCorrection, m_lnaGain, m_log2HardDecim, m_log2SoftDecim, m_lpfBW, m_lpfFIRBW, m_lpfFIREnable, m_ncoEnable, m_ncoFrequency, m_pgaGain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tiaGain, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readFloat(), SimpleDeserializer::readS32(), SimpleDeserializer::readS64(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by LimeSDRInputGUI::deserialize(), and LimeSDRInput::deserialize().
void LimeSDRInputSettings::resetToDefaults | ( | ) |
Definition at line 26 of file limesdrinputsettings.cpp.
References GAIN_AUTO, m_antennaPath, m_centerFrequency, m_dcBlock, m_devSampleRate, m_extClock, m_extClockFreq, m_fileRecordName, m_gain, m_gainMode, m_gpioDir, m_gpioPins, m_iqCorrection, m_lnaGain, m_log2HardDecim, m_log2SoftDecim, m_lpfBW, m_lpfFIRBW, m_lpfFIREnable, m_ncoEnable, m_ncoFrequency, m_pgaGain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tiaGain, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, and PATH_RFE_NONE.
Referenced by deserialize(), LimeSDRInput::deserialize(), LimeSDRInputSettings(), and LimeSDRInputGUI::resetToDefaults().
QByteArray LimeSDRInputSettings::serialize | ( | ) | const |
Definition at line 58 of file limesdrinputsettings.cpp.
References SimpleSerializer::final(), m_antennaPath, m_dcBlock, m_devSampleRate, m_extClock, m_extClockFreq, m_gain, m_gainMode, m_gpioDir, m_gpioPins, m_iqCorrection, m_lnaGain, m_log2HardDecim, m_log2SoftDecim, m_lpfBW, m_lpfFIRBW, m_lpfFIREnable, m_ncoEnable, m_ncoFrequency, m_pgaGain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_tiaGain, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeFloat(), SimpleSerializer::writeS32(), SimpleSerializer::writeS64(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by LimeSDRInputGUI::serialize(), and LimeSDRInput::serialize().
PathRFE LimeSDRInputSettings::m_antennaPath |
Definition at line 60 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_antenna_currentIndexChanged(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint64_t LimeSDRInputSettings::m_centerFrequency |
Definition at line 47 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), LimeSDRInputGUI::getCenterFrequency(), LimeSDRInput::getCenterFrequency(), LimeSDRInputGUI::handleMessage(), LimeSDRInput::handleMessage(), resetToDefaults(), LimeSDRInputGUI::setCenterFrequency(), LimeSDRInput::setCenterFrequency(), LimeSDRInputGUI::setCenterFrequencyDisplay(), LimeSDRInputGUI::setCenterFrequencySetting(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
bool LimeSDRInputSettings::m_dcBlock |
Definition at line 51 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_dcOffset_toggled(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
int LimeSDRInputSettings::m_devSampleRate |
Definition at line 48 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySampleRate(), LimeSDRInput::getSampleRate(), LimeSDRInputGUI::handleMessage(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::on_sampleRate_changed(), LimeSDRInputGUI::on_swDecim_currentIndexChanged(), resetToDefaults(), serialize(), LimeSDRInputGUI::setNCODisplay(), LimeSDRInputGUI::updateADCRate(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
bool LimeSDRInputSettings::m_extClock |
True if external clock source.
Definition at line 65 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::handleMessage(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::on_extClock_clicked(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint32_t LimeSDRInputSettings::m_extClockFreq |
Frequency (Hz) of external clock source.
Definition at line 66 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::handleMessage(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::on_extClock_clicked(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
QString LimeSDRInputSettings::m_fileRecordName |
Definition at line 69 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::handleMessage(), resetToDefaults(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint32_t LimeSDRInputSettings::m_gain |
Optimally distributed gain (dB)
Definition at line 57 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_gain_valueChanged(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
GainMode LimeSDRInputSettings::m_gainMode |
Gain mode: auto or manual.
Definition at line 61 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_gainMode_currentIndexChanged(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint8_t LimeSDRInputSettings::m_gpioDir |
GPIO pin direction LSB first; 0 input, 1 output.
Definition at line 70 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInput::handleMessage(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint8_t LimeSDRInputSettings::m_gpioPins |
GPIO pins to write; LSB first.
Definition at line 71 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInput::handleMessage(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
bool LimeSDRInputSettings::m_iqCorrection |
Definition at line 52 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_iqImbalance_toggled(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint32_t LimeSDRInputSettings::m_lnaGain |
Manual LAN gain.
Definition at line 62 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_lnaGain_valueChanged(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint32_t LimeSDRInputSettings::m_log2HardDecim |
Definition at line 49 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::handleMessage(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::on_hwDecim_currentIndexChanged(), resetToDefaults(), serialize(), LimeSDRInputGUI::setNCODisplay(), LimeSDRInputGUI::updateADCRate(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint32_t LimeSDRInputSettings::m_log2SoftDecim |
Definition at line 53 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySampleRate(), LimeSDRInputGUI::displaySettings(), LimeSDRInput::getSampleRate(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::on_sampleRate_changed(), LimeSDRInputGUI::on_swDecim_currentIndexChanged(), resetToDefaults(), serialize(), LimeSDRInput::start(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
float LimeSDRInputSettings::m_lpfBW |
LMS amalog lowpass filter bandwidth (Hz)
Definition at line 54 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_lpf_changed(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
float LimeSDRInputSettings::m_lpfFIRBW |
LMS digital lowpass FIR filters bandwidth (Hz)
Definition at line 56 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_lpFIR_changed(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
bool LimeSDRInputSettings::m_lpfFIREnable |
Enable LMS digital lowpass FIR filters.
Definition at line 55 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_lpFIREnable_toggled(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
bool LimeSDRInputSettings::m_ncoEnable |
Enable TSP NCO and mixing.
Definition at line 58 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::getCenterFrequency(), LimeSDRInput::getCenterFrequency(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::on_ncoEnable_toggled(), resetToDefaults(), serialize(), LimeSDRInputGUI::setCenterFrequency(), LimeSDRInput::setCenterFrequency(), LimeSDRInputGUI::setCenterFrequencyDisplay(), LimeSDRInputGUI::setCenterFrequencySetting(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
int LimeSDRInputSettings::m_ncoFrequency |
Actual NCO frequency (the resulting frequency with mixing is displayed)
Definition at line 59 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::getCenterFrequency(), LimeSDRInput::getCenterFrequency(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::on_ncoFrequency_changed(), resetToDefaults(), serialize(), LimeSDRInputGUI::setCenterFrequency(), LimeSDRInput::setCenterFrequency(), LimeSDRInputGUI::setCenterFrequencyDisplay(), LimeSDRInputGUI::setCenterFrequencySetting(), LimeSDRInputGUI::setNCODisplay(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
uint32_t LimeSDRInputSettings::m_pgaGain |
Manual PGA gain.
Definition at line 64 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_pgaGain_valueChanged(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
QString LimeSDRInputSettings::m_reverseAPIAddress |
Definition at line 73 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), LimeSDRInput::webapiReverseSendStartStop(), and LimeSDRInput::webapiSettingsPutPatch().
uint16_t LimeSDRInputSettings::m_reverseAPIDeviceIndex |
Definition at line 75 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), LimeSDRInput::webapiReverseSendStartStop(), and LimeSDRInput::webapiSettingsPutPatch().
uint16_t LimeSDRInputSettings::m_reverseAPIPort |
Definition at line 74 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), LimeSDRInput::webapiReverseSendStartStop(), and LimeSDRInput::webapiSettingsPutPatch().
uint32_t LimeSDRInputSettings::m_tiaGain |
Manual TIA gain.
Definition at line 63 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_tiaGain_currentIndexChanged(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
qint64 LimeSDRInputSettings::m_transverterDeltaFrequency |
Definition at line 68 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_transverter_clicked(), resetToDefaults(), serialize(), LimeSDRInputGUI::updateFrequencyLimits(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
bool LimeSDRInputSettings::m_transverterMode |
Definition at line 67 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInputGUI::displaySettings(), LimeSDRInputGUI::on_transverter_clicked(), resetToDefaults(), serialize(), LimeSDRInputGUI::updateFrequencyLimits(), LimeSDRInput::webapiFormatDeviceSettings(), LimeSDRInput::webapiReverseSendSettings(), and LimeSDRInput::webapiSettingsPutPatch().
bool LimeSDRInputSettings::m_useReverseAPI |
Definition at line 72 of file limesdrinputsettings.h.
Referenced by LimeSDRInput::applySettings(), deserialize(), LimeSDRInput::handleMessage(), LimeSDRInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), LimeSDRInput::webapiFormatDeviceSettings(), and LimeSDRInput::webapiSettingsPutPatch().