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 <devicesoapysdrparams.h>
Classes | |
struct | ChannelSettings |
struct | FrequencySetting |
struct | GainSetting |
Public Member Functions | |
DeviceSoapySDRParams (SoapySDR::Device *device) | |
~DeviceSoapySDRParams () | |
const SoapySDR::ArgInfoList & | getDeviceArgs () const |
const ChannelSettings * | getRxChannelSettings (uint32_t index) |
const ChannelSettings * | getTxChannelSettings (uint32_t index) |
std::string | getRxChannelMainTunableElementName (uint32_t index) |
std::string | getTxChannelMainTunableElementName (uint32_t index) |
Private Member Functions | |
void | fillParams () |
void | fillChannelParams (std::vector< ChannelSettings > &channelSettings, int direction, unsigned int ichan) |
void | printParams () |
void | printChannelParams (const ChannelSettings &channelSetting) |
std::string | argInfoToString (const SoapySDR::ArgInfo &argInfo, const std::string indent=" ") |
std::string | argInfoListToString (const SoapySDR::ArgInfoList &argInfos) |
std::string | rangeToString (const SoapySDR::Range &range) |
std::string | rangeListToString (const SoapySDR::RangeList &range, const double scale) |
template<typename Type > | |
std::string | vectorToString (const std::vector< Type > &options) |
Private Attributes | |
SoapySDR::Device * | m_device |
SoapySDR::ArgInfoList | m_deviceSettingsArgs |
list (vector) of device settings arguments More... | |
uint32_t | m_nbRx |
number of Rx channels More... | |
uint32_t | m_nbTx |
number of Tx channels More... | |
std::vector< ChannelSettings > | m_RxChannelsSettings |
std::vector< ChannelSettings > | m_TxChannelsSettings |
This structure refers to one physical device shared among parties (logical devices represented by the DeviceAPI with single Rx or Tx stream type). It allows storing information on the common resources in one place and is shared among participants. There is only one copy that is constructed by the first participant and destroyed by the last. A participant knows it is the first or last by checking the lists of buddies (Rx + Tx).
Definition at line 37 of file devicesoapysdrparams.h.
DeviceSoapySDRParams::DeviceSoapySDRParams | ( | SoapySDR::Device * | device | ) |
Definition at line 25 of file devicesoapysdrparams.cpp.
References fillParams(), and printParams().
DeviceSoapySDRParams::~DeviceSoapySDRParams | ( | ) |
Definition at line 32 of file devicesoapysdrparams.cpp.
|
private |
Definition at line 248 of file devicesoapysdrparams.cpp.
References argInfoToString(), and i.
Referenced by printChannelParams(), and printParams().
|
private |
Definition at line 185 of file devicesoapysdrparams.cpp.
References rangeToString(), and vectorToString().
Referenced by argInfoListToString().
|
private |
Definition at line 86 of file devicesoapysdrparams.cpp.
References m_device.
Referenced by fillParams().
|
private |
Definition at line 71 of file devicesoapysdrparams.cpp.
References fillChannelParams(), m_device, m_deviceSettingsArgs, m_nbRx, m_nbTx, m_RxChannelsSettings, and m_TxChannelsSettings.
Referenced by DeviceSoapySDRParams().
|
inline |
Definition at line 72 of file devicesoapysdrparams.h.
Referenced by SoapySDROutput::getDeviceArgInfoList(), SoapySDRInput::getDeviceArgInfoList(), SoapySDROutput::initDeviceArgSettings(), SoapySDRInput::initDeviceArgSettings(), SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().
std::string DeviceSoapySDRParams::getRxChannelMainTunableElementName | ( | uint32_t | index | ) |
Definition at line 35 of file devicesoapysdrparams.cpp.
References DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, m_nbRx, and m_RxChannelsSettings.
Referenced by SoapySDRInput::handleMessage(), and SoapySDRInput::setDeviceCenterFrequency().
|
inline |
Definition at line 74 of file devicesoapysdrparams.h.
Referenced by SoapySDRInput::getAntennas(), SoapySDRInput::getBandwidthRanges(), SoapySDRInput::getFrequencyRange(), SoapySDRInput::getGlobalGainRange(), SoapySDRInput::getIndividualGainsRanges(), SoapySDRInput::getRateRanges(), SoapySDRInput::getStreamArgInfoList(), SoapySDRInput::getTunableElements(), SoapySDRInput::hasDCAutoCorrection(), SoapySDRInput::hasDCCorrectionValue(), SoapySDRInput::hasIQCorrectionValue(), SoapySDRInput::initGainSettings(), SoapySDRInput::initStreamArgSettings(), SoapySDRInput::initTunableElementsSettings(), SoapySDRInput::isAGCSupported(), and SoapySDRInput::webapiFormatDeviceReport().
std::string DeviceSoapySDRParams::getTxChannelMainTunableElementName | ( | uint32_t | index | ) |
Definition at line 53 of file devicesoapysdrparams.cpp.
References DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, m_nbRx, and m_RxChannelsSettings.
Referenced by SoapySDROutput::handleMessage(), and SoapySDROutput::setDeviceCenterFrequency().
|
inline |
Definition at line 83 of file devicesoapysdrparams.h.
Referenced by SoapySDROutput::getAntennas(), SoapySDROutput::getBandwidthRanges(), SoapySDROutput::getFrequencyRange(), SoapySDROutput::getGlobalGainRange(), SoapySDROutput::getIndividualGainsRanges(), SoapySDROutput::getRateRanges(), SoapySDROutput::getStreamArgInfoList(), SoapySDROutput::getTunableElements(), SoapySDROutput::hasDCAutoCorrection(), SoapySDROutput::hasDCCorrectionValue(), SoapySDROutput::hasIQCorrectionValue(), SoapySDROutput::initGainSettings(), SoapySDROutput::initStreamArgSettings(), SoapySDROutput::initTunableElementsSettings(), SoapySDROutput::isAGCSupported(), and SoapySDROutput::webapiFormatDeviceReport().
|
private |
Definition at line 152 of file devicesoapysdrparams.cpp.
References argInfoListToString(), DeviceSoapySDRParams::ChannelSettings::m_antennas, DeviceSoapySDRParams::ChannelSettings::m_bandwidthsRanges, DeviceSoapySDRParams::ChannelSettings::m_frequencySettings, DeviceSoapySDRParams::ChannelSettings::m_frequencySettingsArgs, DeviceSoapySDRParams::ChannelSettings::m_gainRange, DeviceSoapySDRParams::ChannelSettings::m_gainSettings, DeviceSoapySDRParams::ChannelSettings::m_hasAGC, DeviceSoapySDRParams::ChannelSettings::m_hasDCAutoCorrection, DeviceSoapySDRParams::ChannelSettings::m_hasDCOffsetValue, DeviceSoapySDRParams::ChannelSettings::m_hasFrequencyCorrectionValue, DeviceSoapySDRParams::ChannelSettings::m_hasIQBalanceValue, DeviceSoapySDRParams::ChannelSettings::m_ratesRanges, DeviceSoapySDRParams::ChannelSettings::m_streamSettingsArgs, rangeListToString(), rangeToString(), and vectorToString().
Referenced by printParams().
|
private |
Definition at line 130 of file devicesoapysdrparams.cpp.
References argInfoListToString(), m_deviceSettingsArgs, m_RxChannelsSettings, m_TxChannelsSettings, and printChannelParams().
Referenced by DeviceSoapySDRParams().
|
private |
Definition at line 272 of file devicesoapysdrparams.cpp.
References i.
Referenced by printChannelParams().
|
private |
Definition at line 259 of file devicesoapysdrparams.cpp.
Referenced by argInfoToString(), and printChannelParams().
|
inlineprivate |
Definition at line 108 of file devicesoapysdrparams.h.
References i.
Referenced by argInfoToString(), and printChannelParams().
|
private |
Definition at line 128 of file devicesoapysdrparams.h.
Referenced by fillChannelParams(), and fillParams().
|
private |
list (vector) of device settings arguments
Definition at line 129 of file devicesoapysdrparams.h.
Referenced by fillParams(), and printParams().
|
private |
number of Rx channels
Definition at line 130 of file devicesoapysdrparams.h.
Referenced by fillParams(), getRxChannelMainTunableElementName(), and getTxChannelMainTunableElementName().
|
private |
number of Tx channels
Definition at line 131 of file devicesoapysdrparams.h.
Referenced by fillParams().
|
private |
Definition at line 132 of file devicesoapysdrparams.h.
Referenced by fillParams(), getRxChannelMainTunableElementName(), getTxChannelMainTunableElementName(), and printParams().
|
private |
Definition at line 133 of file devicesoapysdrparams.h.
Referenced by fillParams(), and printParams().