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.
Classes | Public Member Functions | Protected Slots | Protected Attributes | List of all members
BasebandSampleSink Class Referenceabstract

#include <basebandsamplesink.h>

+ Inheritance diagram for BasebandSampleSink:
+ Collaboration diagram for BasebandSampleSink:

Classes

class  MsgThreadedSink
 

Public Member Functions

 BasebandSampleSink ()
 
virtual ~BasebandSampleSink ()
 
virtual void start ()=0
 
virtual void stop ()=0
 
virtual void feed (const SampleVector::const_iterator &begin, const SampleVector::const_iterator &end, bool positiveOnly)=0
 
virtual bool handleMessage (const Message &cmd)=0
 Processing of a message. Returns true if message has actually been processed. More...
 
MessageQueuegetInputMessageQueue ()
 Get the queue for asynchronous inbound communication. More...
 
virtual void setMessageQueueToGUI (MessageQueue *queue)
 
MessageQueuegetMessageQueueToGUI ()
 

Protected Slots

void handleInputMessages ()
 

Protected Attributes

MessageQueue m_inputMessageQueue
 Queue for asynchronous inbound communication. More...
 
MessageQueuem_guiMessageQueue
 Input message queue to the GUI. More...
 

Detailed Description

Definition at line 30 of file basebandsamplesink.h.

Constructor & Destructor Documentation

◆ BasebandSampleSink()

BasebandSampleSink::BasebandSampleSink ( )

Definition at line 5 of file basebandsamplesink.cpp.

5  :
7 {
8  connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
9 }
MessageQueue m_inputMessageQueue
Queue for asynchronous inbound communication.
MessageQueue * m_guiMessageQueue
Input message queue to the GUI.

◆ ~BasebandSampleSink()

BasebandSampleSink::~BasebandSampleSink ( )
virtual

Definition at line 11 of file basebandsamplesink.cpp.

12 {
13 }

Member Function Documentation

◆ feed()

virtual void BasebandSampleSink::feed ( const SampleVector::const_iterator &  begin,
const SampleVector::const_iterator &  end,
bool  positiveOnly 
)
pure virtual

◆ getInputMessageQueue()

MessageQueue* BasebandSampleSink::getInputMessageQueue ( )
inline

Get the queue for asynchronous inbound communication.

Definition at line 62 of file basebandsamplesink.h.

Referenced by ScopeVis::addTrace(), ScopeVis::addTrigger(), AMDemod::AMDemod(), LocalSinkGUI::applyChannelSettings(), RemoteSinkGUI::applyChannelSettings(), DownChannelizer::applyConfiguration(), ATVDemodGUI::applyRFSettings(), DownChannelizer::applySetting(), WFMDemodGUI::applySettings(), LoRaDemodGUI::applySettings(), NFMDemodGUI::applySettings(), AMDemodGUI::applySettings(), SSBDemodGUI::applySettings(), FreqTrackerGUI::applySettings(), LocalSinkGUI::applySettings(), RemoteSinkGUI::applySettings(), BFMDemodGUI::applySettings(), ATVDemodGUI::applySettings(), UDPSinkGUI::applySettings(), ChannelAnalyzerGUI::applySettings(), FreeDVDemodGUI::applySettings(), DSDDemodGUI::applySettings(), DATVDemodGUI::applySettings(), WFMDemod::applySettings(), AMDemod::applySettings(), UDPSink::applySettings(), NFMDemod::applySettings(), DSDDemod::applySettings(), BFMDemod::applySettings(), SSBDemod::applySettings(), FreeDVDemod::applySettings(), DATVDemod::applySettings(), UDPSinkGUI::applySettingsImmediate(), ATVDemodGUI::ATVDemodGUI(), BFMDemod::BFMDemod(), BFMDemodGUI::BFMDemodGUI(), ScopeVis::changeTrace(), ScopeVis::changeTrigger(), ChannelAnalyzerGUI::ChannelAnalyzerGUI(), ScopeVis::configure(), FreqTracker::configureChannelizer(), DeviceUISet::DeviceUISet(), DSDDemod::DSDDemod(), ScopeVis::focusOnTrace(), ScopeVis::focusOnTrigger(), FreeDVDemod::FreeDVDemod(), FreeDVDemodGUI::FreeDVDemodGUI(), FreeDVModGUI::FreeDVModGUI(), ThreadedBasebandSampleSinkFifo::handleFifoData(), DownChannelizer::handleMessage(), LoRaDemod::handleMessage(), AMDemod::handleMessage(), WFMDemod::handleMessage(), DSDDemod::handleMessage(), LocalSink::handleMessage(), UDPSink::handleMessage(), RemoteSink::handleMessage(), SSBDemod::handleMessage(), NFMDemod::handleMessage(), BFMDemod::handleMessage(), FreeDVDemod::handleMessage(), ChannelAnalyzer::handleMessage(), DATVDemod::handleMessage(), ATVDemod::handleMessage(), LoRaDemodGUI::LoRaDemodGUI(), ScopeVis::moveTrace(), ScopeVis::moveTrigger(), NFMDemod::NFMDemod(), FreeDVDemodGUI::on_reSync_clicked(), UDPSinkGUI::onWidgetRolled(), ScopeVis::removeTrace(), ScopeVis::removeTrigger(), ScopeVis::setMemoryIndex(), ScopeVis::setOneShot(), SSBDemod::SSBDemod(), SSBDemodGUI::SSBDemodGUI(), SSBModGUI::SSBModGUI(), UDPSinkGUI::UDPSinkGUI(), UDPSourceGUI::UDPSourceGUI(), DSDDemodGUI::updateMyPosition(), and WFMDemod::WFMDemod().

+ Here is the caller graph for this function:

◆ getMessageQueueToGUI()

MessageQueue* BasebandSampleSink::getMessageQueueToGUI ( )
inline

Definition at line 64 of file basebandsamplesink.h.

Referenced by FreeDVDemod::applyFreeDVMode(), ATVDemod::applySettings(), ATVDemod::channelSampleRateChanged(), DATVDemod::feed(), BFMDemod::handleMessage(), ChannelAnalyzer::handleMessage(), and NFMDemod::processOneSample().

64 { return m_guiMessageQueue; }
MessageQueue * m_guiMessageQueue
Input message queue to the GUI.
+ Here is the caller graph for this function:

◆ handleInputMessages

void BasebandSampleSink::handleInputMessages ( )
protectedslot

Definition at line 15 of file basebandsamplesink.cpp.

References handleMessage(), m_inputMessageQueue, and MessageQueue::pop().

16 {
17  Message* message;
18 
19  while ((message = m_inputMessageQueue.pop()) != 0)
20  {
21  if (handleMessage(*message))
22  {
23  delete message;
24  }
25  }
26 }
Message * pop()
Pop message from queue.
MessageQueue m_inputMessageQueue
Queue for asynchronous inbound communication.
virtual bool handleMessage(const Message &cmd)=0
Processing of a message. Returns true if message has actually been processed.
+ Here is the call graph for this function:

◆ handleMessage()

virtual bool BasebandSampleSink::handleMessage ( const Message cmd)
pure virtual

◆ setMessageQueueToGUI()

virtual void BasebandSampleSink::setMessageQueueToGUI ( MessageQueue queue)
inlinevirtual

◆ start()

virtual void BasebandSampleSink::start ( )
pure virtual

◆ stop()

virtual void BasebandSampleSink::stop ( )
pure virtual

Member Data Documentation

◆ m_guiMessageQueue

MessageQueue* BasebandSampleSink::m_guiMessageQueue
protected

◆ m_inputMessageQueue

MessageQueue BasebandSampleSink::m_inputMessageQueue
protected

The documentation for this class was generated from the following files: