18 #ifndef DEVICES_SOAPYSDR_DEVICESOAPYSDRPARAMS_H_ 19 #define DEVICES_SOAPYSDR_DEVICESOAPYSDRPARAMS_H_ 25 #include <SoapySDR/Device.hpp> 72 const SoapySDR::ArgInfoList&
getDeviceArgs()
const {
return m_deviceSettingsArgs; }
77 return &m_RxChannelsSettings[index];
86 return &m_TxChannelsSettings[index];
92 std::string getRxChannelMainTunableElementName(
uint32_t index);
93 std::string getTxChannelMainTunableElementName(
uint32_t index);
97 void fillChannelParams(std::vector<ChannelSettings>& channelSettings,
int direction,
unsigned int ichan);
102 std::string argInfoToString(
const SoapySDR::ArgInfo &argInfo,
const std::string indent =
" ");
103 std::string argInfoListToString(
const SoapySDR::ArgInfoList &argInfos);
104 std::string rangeToString(
const SoapySDR::Range &range);
105 std::string rangeListToString(
const SoapySDR::RangeList &range,
const double scale);
107 template <
typename Type>
110 std::stringstream ss;
112 if (options.empty()) {
116 for (std::size_t
i = 0;
i < options.size();
i++)
118 if (not ss.str().empty()) {
SoapySDR::Device * m_device
std::vector< ChannelSettings > m_RxChannelsSettings
uint32_t m_nbRx
number of Rx channels
SoapySDR::ArgInfoList m_deviceSettingsArgs
list (vector) of device settings arguments
SoapySDR::ArgInfoList m_frequencySettingsArgs
common tuning parameters
bool m_hasFrequencyCorrectionValue
Frequency correction value flag.
bool m_hasDCOffsetValue
DC offset value flag.
uint32_t m_nbTx
number of Tx channels
bool m_hasDCAutoCorrection
DC offset auto correction flag.
std::vector< ChannelSettings > m_TxChannelsSettings
std::vector< FrequencySetting > m_frequencySettings
tunable elements settings
std::string m_name
Name of the gain element.
std::string m_name
Name of the tunable element.
const ChannelSettings * getRxChannelSettings(uint32_t index)
SoapySDR::RangeList m_ranges
List of ranges of the tunable element.
std::vector< std::string > m_antennas
Antenna ports names.
SoapySDR::RangeList m_ratesRanges
list of ranges of sample rates
const SoapySDR::ArgInfoList & getDeviceArgs() const
SoapySDR::Range m_range
Gain range.
SoapySDR::RangeList m_bandwidthsRanges
list of ranges of bandwidths
const ChannelSettings * getTxChannelSettings(uint32_t index)
std::string vectorToString(const std::vector< Type > &options)
std::vector< GainSetting > m_gainSettings
gain elements settings
SoapySDR::ArgInfoList m_streamSettingsArgs
common stream parameters
bool m_hasIQBalanceValue
IQ correction value flag.
SoapySDR::Range m_gainRange
Global gain range.