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 <channelapi.h>
Public Types | |
enum | StreamType { StreamSingleSink, StreamSingleSource, StreamMIMO } |
< This is the same enum as in PluginInterface More... | |
Public Member Functions | |
ChannelAPI (const QString &name, StreamType streamType) | |
virtual | ~ChannelAPI () |
virtual void | destroy ()=0 |
virtual void | getIdentifier (QString &id)=0 |
virtual void | getTitle (QString &title)=0 |
virtual void | setName (const QString &name) |
virtual const QString & | getName () const |
virtual qint64 | getCenterFrequency () const =0 |
Applies to a default stream. More... | |
virtual QByteArray | serialize () const =0 |
virtual bool | deserialize (const QByteArray &data)=0 |
virtual int | webapiSettingsGet (SWGSDRangel::SWGChannelSettings &response, QString &errorMessage) |
virtual int | webapiSettingsPutPatch (bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, QString &errorMessage) |
virtual int | webapiReportGet (SWGSDRangel::SWGChannelReport &response, QString &errorMessage) |
int | getIndexInDeviceSet () const |
void | setIndexInDeviceSet (int indexInDeviceSet) |
int | getDeviceSetIndex () const |
void | setDeviceSetIndex (int deviceSetIndex) |
DeviceAPI * | getDeviceAPI () |
void | setDeviceAPI (DeviceAPI *deviceAPI) |
uint64_t | getUID () const |
StreamType | getStreamType () const |
virtual int | getNbSinkStreams () const =0 |
virtual int | getNbSourceStreams () const =0 |
virtual qint64 | getStreamCenterFrequency (int streamIndex, bool sinkElseSource) const =0 |
Private Attributes | |
StreamType | m_streamType |
QString | m_name |
int | m_indexInDeviceSet |
int | m_deviceSetIndex |
DeviceAPI * | m_deviceAPI |
uint64_t | m_uid |
Definition at line 37 of file channelapi.h.
< This is the same enum as in PluginInterface
Enumerator | |
---|---|
StreamSingleSink | Exposes a single sink stream (input, Rx) |
StreamSingleSource | Exposes a single source stream (output, Tx) |
StreamMIMO | May expose any number of sink and/or source streams. |
Definition at line 39 of file channelapi.h.
ChannelAPI::ChannelAPI | ( | const QString & | name, |
StreamType | streamType | ||
) |
Definition at line 23 of file channelapi.cpp.
|
inlinevirtual |
Definition at line 47 of file channelapi.h.
|
pure virtual |
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, FreeDVDemod, BFMDemod, DATVDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
Referenced by DeviceSet::loadRxChannelSettings(), and DeviceSet::loadTxChannelSettings().
|
pure virtual |
Implemented in ATVMod, FileSource, FreeDVMod, NFMMod, SSBMod, WFMMod, AMMod, ATVDemod, RemoteSource, DATVDemod, BFMDemod, FreqTracker, NFMDemod, FreeDVDemod, RemoteSink, ChannelAnalyzer, LocalSource, LocalSink, DSDDemod, UDPSink, AMDemod, SSBDemod, WFMDemod, UDPSource, and LoRaDemod.
|
pure virtual |
Applies to a default stream.
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, FreeDVDemod, BFMDemod, DATVDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
Referenced by WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), and DeviceSet::ChannelInstanceRegistration::operator<().
|
inline |
Definition at line 91 of file channelapi.h.
Referenced by LocalSink::getLocalDevice(), and LocalSource::getLocalDevice().
|
inline |
Definition at line 89 of file channelapi.h.
Referenced by LocalSink::webapiReverseSendSettings(), LocalSource::webapiReverseSendSettings(), RemoteSink::webapiReverseSendSettings(), WFMDemod::webapiReverseSendSettings(), AMDemod::webapiReverseSendSettings(), FreqTracker::webapiReverseSendSettings(), UDPSink::webapiReverseSendSettings(), RemoteSource::webapiReverseSendSettings(), UDPSource::webapiReverseSendSettings(), NFMDemod::webapiReverseSendSettings(), DSDDemod::webapiReverseSendSettings(), BFMDemod::webapiReverseSendSettings(), WFMMod::webapiReverseSendSettings(), AMMod::webapiReverseSendSettings(), SSBDemod::webapiReverseSendSettings(), NFMMod::webapiReverseSendSettings(), FreeDVMod::webapiReverseSendSettings(), SSBMod::webapiReverseSendSettings(), FreeDVDemod::webapiReverseSendSettings(), FileSource::webapiReverseSendSettings(), and ATVMod::webapiReverseSendSettings().
|
pure virtual |
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, FreeDVDemod, BFMDemod, DATVDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
Referenced by WebAPIAdapterGUI::devicesetChannelReportGet(), WebAPIAdapterSrv::devicesetChannelReportGet(), WebAPIAdapterGUI::devicesetChannelSettingsGet(), WebAPIAdapterSrv::devicesetChannelSettingsGet(), WebAPIAdapterGUI::devicesetChannelSettingsPutPatch(), WebAPIAdapterSrv::devicesetChannelSettingsPutPatch(), WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
|
inline |
Definition at line 87 of file channelapi.h.
Referenced by WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), LocalSink::webapiReverseSendSettings(), LocalSource::webapiReverseSendSettings(), RemoteSink::webapiReverseSendSettings(), WFMDemod::webapiReverseSendSettings(), AMDemod::webapiReverseSendSettings(), FreqTracker::webapiReverseSendSettings(), UDPSink::webapiReverseSendSettings(), RemoteSource::webapiReverseSendSettings(), UDPSource::webapiReverseSendSettings(), NFMDemod::webapiReverseSendSettings(), DSDDemod::webapiReverseSendSettings(), BFMDemod::webapiReverseSendSettings(), WFMMod::webapiReverseSendSettings(), AMMod::webapiReverseSendSettings(), SSBDemod::webapiReverseSendSettings(), NFMMod::webapiReverseSendSettings(), FreeDVMod::webapiReverseSendSettings(), SSBMod::webapiReverseSendSettings(), FreeDVDemod::webapiReverseSendSettings(), FileSource::webapiReverseSendSettings(), and ATVMod::webapiReverseSendSettings().
|
inlinevirtual |
Definition at line 53 of file channelapi.h.
Referenced by DeviceSet::addRxChannel(), DeviceSet::addTxChannel(), and DeviceSet::ChannelInstanceRegistration::operator<().
|
pure virtual |
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, DATVDemod, FreeDVDemod, BFMDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
|
pure virtual |
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, DATVDemod, FreeDVDemod, BFMDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
|
pure virtual |
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, DATVDemod, FreeDVDemod, BFMDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
|
inline |
Definition at line 96 of file channelapi.h.
Referenced by DeviceSet::ChannelInstanceRegistration::ChannelInstanceRegistration().
|
pure virtual |
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, FreeDVDemod, BFMDemod, DATVDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
Referenced by WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
|
inline |
Definition at line 93 of file channelapi.h.
Referenced by WebAPIAdapterGUI::getChannelsDetail(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
|
pure virtual |
Implemented in ATVMod, FileSource, ATVDemod, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, ChannelAnalyzer, FreeDVDemod, BFMDemod, DATVDemod, FreqTracker, NFMDemod, SSBDemod, RemoteSink, LocalSource, LocalSink, UDPSink, DSDDemod, AMDemod, WFMDemod, UDPSource, and LoRaDemod.
Referenced by DeviceSet::saveRxChannelSettings(), and DeviceSet::saveTxChannelSettings().
|
inline |
Definition at line 92 of file channelapi.h.
|
inline |
Definition at line 90 of file channelapi.h.
|
inline |
Definition at line 88 of file channelapi.h.
Referenced by DeviceAPI::removeChannelSinkAPI(), and DeviceAPI::removeChannelSourceAPI().
|
inlinevirtual |
Definition at line 52 of file channelapi.h.
|
inlinevirtual |
Reimplemented in ATVMod, FileSource, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, BFMDemod, FreeDVDemod, SSBDemod, DSDDemod, FreqTracker, NFMDemod, WFMDemod, UDPSink, AMDemod, and UDPSource.
Definition at line 79 of file channelapi.h.
Referenced by WebAPIAdapterGUI::devicesetChannelReportGet(), WebAPIAdapterSrv::devicesetChannelReportGet(), WebAPIAdapterGUI::getChannelsDetail(), and WebAPIAdapterSrv::getChannelsDetail().
|
inlinevirtual |
Reimplemented in ATVMod, FileSource, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, BFMDemod, FreeDVDemod, SSBDemod, DSDDemod, FreqTracker, NFMDemod, WFMDemod, RemoteSink, LocalSource, LocalSink, UDPSink, AMDemod, and UDPSource.
Definition at line 59 of file channelapi.h.
Referenced by WebAPIAdapterGUI::devicesetChannelSettingsGet(), and WebAPIAdapterSrv::devicesetChannelSettingsGet().
|
inlinevirtual |
Reimplemented in ATVMod, FileSource, FreeDVMod, SSBMod, NFMMod, WFMMod, AMMod, RemoteSource, BFMDemod, FreeDVDemod, SSBDemod, DSDDemod, FreqTracker, NFMDemod, WFMDemod, RemoteSink, LocalSource, LocalSink, UDPSink, AMDemod, and UDPSource.
Definition at line 67 of file channelapi.h.
Referenced by WebAPIAdapterGUI::devicesetChannelSettingsPutPatch(), and WebAPIAdapterSrv::devicesetChannelSettingsPutPatch().
|
private |
Definition at line 111 of file channelapi.h.
|
private |
Definition at line 110 of file channelapi.h.
|
private |
Definition at line 109 of file channelapi.h.
|
private |
Unique identifier in a device set used for sorting. Used when there is no GUI. In GUI version it is supported by GUI object name accessed through PluginInstanceGUI.
Definition at line 107 of file channelapi.h.
|
private |
Definition at line 103 of file channelapi.h.
|
private |
Definition at line 112 of file channelapi.h.