#include <devicesoapysdr.h>
|
static const unsigned int | blockSize = (1<<14) |
|
Definition at line 27 of file devicesoapysdr.h.
◆ DeviceSoapySDR() [1/2]
DeviceSoapySDR::DeviceSoapySDR |
( |
| ) |
|
|
protected |
◆ DeviceSoapySDR() [2/2]
◆ ~DeviceSoapySDR()
DeviceSoapySDR::~DeviceSoapySDR |
( |
| ) |
|
|
protected |
◆ closeSoapySdr()
void DeviceSoapySDR::closeSoapySdr |
( |
SoapySDR::Device * |
device | ) |
|
◆ getDevicesEnumeration()
◆ getNbDevices()
uint32_t DeviceSoapySDR::getNbDevices |
( |
| ) |
const |
|
inline |
Definition at line 34 of file devicesoapysdr.h.
uint32_t getNbDevices() const
DeviceSoapySDRScan m_scanner
◆ instance()
◆ openopenSoapySDRFromSequence()
SoapySDR::Device * DeviceSoapySDR::openopenSoapySDRFromSequence |
( |
uint32_t |
sequence, |
|
|
const QString & |
hardwareUserArguments |
|
) |
| |
|
private |
Definition at line 46 of file devicesoapysdr.cpp.
References DeviceSoapySDRScan::getDevicesEnumeration(), DeviceSoapySDRScan::getNbDevices(), i, DeviceSoapySDRScan::SoapySDRDeviceEnum::m_driverName, DeviceSoapySDRScan::SoapySDRDeviceEnum::m_idKey, DeviceSoapySDRScan::SoapySDRDeviceEnum::m_idValue, DeviceSoapySDRScan::SoapySDRDeviceEnum::m_label, and m_scanner.
Referenced by openSoapySDR().
58 SoapySDR::Kwargs kwargs;
59 kwargs[
"driver"] = deviceEnum.
m_driverName.toStdString();
61 if (hardwareUserArguments.size() > 0)
63 QStringList kvArgs = hardwareUserArguments.split(
',');
65 for (
int i = 0;
i < kvArgs.size();
i++)
67 QStringList kv = kvArgs.at(
i).split(
'=');
70 kwargs[kv.at(0).toStdString()] = kv.at(1).toStdString();
74 else if (deviceEnum.
m_idKey.size() > 0)
76 kwargs[deviceEnum.
m_idKey.toStdString()] = deviceEnum.
m_idValue.toStdString();
79 SoapySDR::Kwargs::const_iterator it = kwargs.begin();
81 for (; it != kwargs.end(); ++it) {
82 qDebug(
"DeviceSoapySDR::openopenSoapySDRFromSequence: %s=%s", it->first.c_str(), it->second.c_str());
85 SoapySDR::Device *device = SoapySDR::Device::make(kwargs);
88 catch (
const std::exception &ex)
90 qWarning(
"DeviceSoapySDR::openopenSoapySDRFromSequence: %s cannot be opened: %s",
91 deviceEnum.
m_label.toStdString().c_str(), ex.what());
const std::vector< SoapySDRDeviceEnum > & getDevicesEnumeration() const
QString m_idValue
value for the above key
uint32_t getNbDevices() const
QString m_label
the label key for display should always be present
DeviceSoapySDRScan m_scanner
QString m_idKey
key to uniquely identify device
◆ openSoapySDR()
SoapySDR::Device * DeviceSoapySDR::openSoapySDR |
( |
uint32_t |
sequence, |
|
|
const QString & |
hardwareUserArguments |
|
) |
| |
◆ operator=()
◆ blockSize
const unsigned int DeviceSoapySDR::blockSize = (1<<14) |
|
static |
◆ m_scanner
The documentation for this class was generated from the following files: