#include <bladerf2outputplugin.h>
|
| BladeRF2OutputPlugin (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) |
|
Definition at line 28 of file bladerf2outputplugin.h.
◆ BladeRF2OutputPlugin()
BladeRF2OutputPlugin::BladeRF2OutputPlugin |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ createSampleSinkPluginInstance()
◆ createSampleSinkPluginInstanceGUI()
PluginInstanceGUI * BladeRF2OutputPlugin::createSampleSinkPluginInstanceGUI |
( |
const QString & |
sinkId, |
|
|
QWidget ** |
widget, |
|
|
DeviceUISet * |
deviceUISet |
|
) |
| |
|
virtual |
◆ enumSampleSinks()
Reimplemented from PluginInterface.
Definition at line 58 of file bladerf2outputplugin.cpp.
References arg(), createSampleSinkPluginInstanceGUI(), i, m_deviceTypeID, m_hardwareID, PluginInterface::SamplingDevice::PhysicalDevice, and PluginInterface::SamplingDevice::StreamSingleTx.
61 struct bladerf_devinfo *devinfo = 0;
63 int count = bladerf_get_device_list(&devinfo);
67 for(
int i = 0;
i < count;
i++)
71 int status = bladerf_open_with_devinfo(&dev, &devinfo[
i]);
73 if (status == BLADERF_ERR_NODEV)
75 qCritical(
"Bladerf2OutputPlugin::enumSampleSinks: No device at index %d",
i);
80 qCritical(
"Bladerf2OutputPlugin::enumSampleSinks: Failed to open device at index %d",
i);
84 const char *boardName = bladerf_get_board_name(dev);
86 if (strcmp(boardName,
"bladerf2") == 0)
88 unsigned int nbTxChannels = bladerf_get_channel_count(dev, BLADERF_TX);
90 for (
unsigned int j = 0; j < nbTxChannels; j++)
92 qDebug(
"Blderf2InputPlugin::enumSampleSinks: device #%d (%s) channel %u",
i, devinfo[
i].serial, j);
93 QString displayedName(QString(
"BladeRF2[%1:%2] %3").
arg(devinfo[
i].instance).
arg(j).
arg(devinfo[
i].serial));
94 result.append(SamplingDevice(displayedName,
97 QString(devinfo[
i].serial),
109 bladerf_free_device_list(devinfo);
static const QString m_deviceTypeID
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Exposes a single output stream that can be one of the streams of a physical device.
static const QString m_hardwareID
QList< SamplingDevice > SamplingDevices
◆ getPluginDescriptor()
◆ initPlugin()
void BladeRF2OutputPlugin::initPlugin |
( |
PluginAPI * |
pluginAPI | ) |
|
|
virtual |
◆ m_deviceTypeID
◆ m_hardwareID
const QString BladeRF2OutputPlugin::m_hardwareID = "BladeRF2" |
|
static |
◆ m_pluginDescriptor
Initial value:= {
QString("BladeRF2 Output"),
QString("4.5.4"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}
Definition at line 52 of file bladerf2outputplugin.h.
Referenced by getPluginDescriptor().
The documentation for this class was generated from the following files: