#include <limesdroutputplugin.h>
|
| LimeSDROutputPlugin (QObject *parent=0) |
|
const PluginDescriptor & | getPluginDescriptor () const |
|
void | initPlugin (PluginAPI *pluginAPI) |
|
virtual SamplingDevices | enumSampleSinks () |
|
virtual PluginInstanceGUI * | createSampleSinkPluginInstanceGUI (const QString &sinkId, QWidget **widget, DeviceUISet *deviceUISet) |
|
virtual DeviceSampleSink * | createSampleSinkPluginInstance (const QString &sinkId, DeviceAPI *deviceAPI) |
|
virtual | ~PluginInterface () |
|
virtual PluginInstanceGUI * | createRxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) |
|
virtual BasebandSampleSink * | createRxChannelBS (DeviceAPI *deviceAPI) |
|
virtual ChannelAPI * | createRxChannelCS (DeviceAPI *deviceAPI) |
|
virtual PluginInstanceGUI * | createTxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSource *txChannel) |
|
virtual BasebandSampleSource * | createTxChannelBS (DeviceAPI *deviceAPI) |
|
virtual ChannelAPI * | createTxChannelCS (DeviceAPI *deviceAPI) |
|
virtual SamplingDevices | enumSampleSources () |
|
virtual PluginInstanceGUI * | createSampleSourcePluginInstanceGUI (const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet) |
|
virtual DeviceSampleSource * | createSampleSourcePluginInstance (const QString &sourceId, DeviceAPI *deviceAPI) |
|
virtual void | deleteSampleSourcePluginInstanceGUI (PluginInstanceGUI *ui) |
|
virtual void | deleteSampleSourcePluginInstanceInput (DeviceSampleSource *source) |
|
virtual void | deleteSampleSinkPluginInstanceGUI (PluginInstanceGUI *ui) |
|
virtual void | deleteSampleSinkPluginInstanceOutput (DeviceSampleSink *sink) |
|
virtual SamplingDevices | enumSampleMIMO () |
|
virtual PluginInstanceGUI * | createSampleMIMOPluginInstanceGUI (const QString &mimoId, QWidget **widget, DeviceUISet *deviceUISet) |
|
virtual DeviceSampleMIMO * | createSampleMIMOPluginInstance (const QString &mimoId, DeviceAPI *deviceAPI) |
|
virtual void | deleteSampleMIMOPluginInstanceGUI (PluginInstanceGUI *ui) |
|
virtual void | deleteSampleMIMOPluginInstanceMIMO (DeviceSampleMIMO *mimo) |
|
|
static bool | findSerial (const char *lmsInfoStr, std::string &serial) |
|
Definition at line 28 of file limesdroutputplugin.h.
◆ LimeSDROutputPlugin()
LimeSDROutputPlugin::LimeSDROutputPlugin |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ createSampleSinkPluginInstance()
◆ createSampleSinkPluginInstanceGUI()
PluginInstanceGUI * LimeSDROutputPlugin::createSampleSinkPluginInstanceGUI |
( |
const QString & |
sinkId, |
|
|
QWidget ** |
widget, |
|
|
DeviceUISet * |
deviceUISet |
|
) |
| |
|
virtual |
◆ enumSampleSinks()
Reimplemented from PluginInterface.
Definition at line 62 of file limesdroutputplugin.cpp.
References arg(), DeviceLimeSDRParams::close(), createSampleSinkPluginInstanceGUI(), findSerial(), i, m_deviceTypeID, m_hardwareID, DeviceLimeSDRParams::m_nbTxChannels, DeviceLimeSDRParams::open(), PluginInterface::SamplingDevice::PhysicalDevice, and PluginInterface::SamplingDevice::StreamSingleTx.
64 lms_info_str_t* deviceList;
68 if ((nbDevices = LMS_GetDeviceList(0)) <= 0)
70 qDebug(
"LimeSDROutputPlugin::enumSampleSources: Could not find any LimeSDR device");
74 deviceList =
new lms_info_str_t[nbDevices];
76 if (LMS_GetDeviceList(deviceList) < 0)
78 qDebug(
"LimeSDROutputPlugin::enumSampleSources: Could not obtain LimeSDR devices information");
84 for (
int i = 0;
i < nbDevices;
i++)
86 std::string serial(
"N/D");
90 limeSDRParams.
open(deviceList[
i]);
91 limeSDRParams.
close();
95 qDebug(
"LimeSDROutputPlugin::enumSampleSources: device #%d channel %u: %s", i, j, (
char *) deviceList[i]);
96 QString displayedName(QString(
"LimeSDR[%1:%2] %3").
arg(i).
arg(j).
arg(serial.c_str()));
97 result.append(SamplingDevice(displayedName,
100 QString(deviceList[i]),
static bool findSerial(const char *lmsInfoStr, std::string &serial)
uint32_t m_nbTxChannels
number of Tx channels (normally 2, we'll see if we really use it...)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
static const QString m_hardwareID
static const QString m_deviceTypeID
Exposes a single output stream that can be one of the streams of a physical device.
bool open(lms_info_str_t deviceStr)
QList< SamplingDevice > SamplingDevices
◆ findSerial()
bool LimeSDROutputPlugin::findSerial |
( |
const char * |
lmsInfoStr, |
|
|
std::string & |
serial |
|
) |
| |
|
staticprivate |
Definition at line 144 of file limesdroutputplugin.cpp.
Referenced by enumSampleSinks().
146 std::regex serial_reg(
"serial=([0-9,A-F]+)");
147 std::string input(lmsInfoStr);
149 std::regex_search(input, result, serial_reg);
151 if (result[1].str().length()>0)
153 serial = result[1].str();
◆ getPluginDescriptor()
◆ initPlugin()
void LimeSDROutputPlugin::initPlugin |
( |
PluginAPI * |
pluginAPI | ) |
|
|
virtual |
◆ m_deviceTypeID
◆ m_hardwareID
const QString LimeSDROutputPlugin::m_hardwareID = "LimeSDR" |
|
static |
◆ m_pluginDescriptor
Initial value:= {
QString("LimeSDR Output"),
QString("4.5.5"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}
Definition at line 50 of file limesdroutputplugin.h.
Referenced by getPluginDescriptor().
The documentation for this class was generated from the following files: