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 <samplesinkfifo.h>
Inherits QObject.
Signals | |
void | dataReady () |
Public Member Functions | |
SampleSinkFifo (QObject *parent=nullptr) | |
SampleSinkFifo (int size, QObject *parent=nullptr) | |
SampleSinkFifo (const SampleSinkFifo &other) | |
~SampleSinkFifo () | |
bool | setSize (int size) |
uint | size () const |
uint | fill () |
uint | write (const quint8 *data, uint count) |
uint | write (SampleVector::const_iterator begin, SampleVector::const_iterator end) |
uint | read (SampleVector::iterator begin, SampleVector::iterator end) |
uint | readBegin (uint count, SampleVector::iterator *part1Begin, SampleVector::iterator *part1End, SampleVector::iterator *part2Begin, SampleVector::iterator *part2End) |
uint | readCommit (uint count) |
Private Member Functions | |
void | create (uint s) |
Private Attributes | |
QMutex | m_mutex |
QTime | m_msgRateTimer |
int | m_suppressed |
SampleVector | m_data |
uint | m_size |
uint | m_fill |
uint | m_head |
uint | m_tail |
Definition at line 28 of file samplesinkfifo.h.
SampleSinkFifo::SampleSinkFifo | ( | QObject * | parent = nullptr | ) |
Definition at line 37 of file samplesinkfifo.cpp.
References m_fill, m_head, m_size, m_suppressed, and m_tail.
SampleSinkFifo::SampleSinkFifo | ( | int | size, |
QObject * | parent = nullptr |
||
) |
Definition at line 48 of file samplesinkfifo.cpp.
References create(), and m_suppressed.
SampleSinkFifo::SampleSinkFifo | ( | const SampleSinkFifo & | other | ) |
Definition at line 57 of file samplesinkfifo.cpp.
References m_data, m_fill, m_head, m_size, m_suppressed, and m_tail.
SampleSinkFifo::~SampleSinkFifo | ( | ) |
|
private |
Definition at line 23 of file samplesinkfifo.cpp.
References m_data, m_fill, m_head, m_size, and m_tail.
Referenced by SampleSinkFifo(), and setSize().
|
signal |
Referenced by DSPDeviceMIMOEngine::handleSetMIMO(), and write().
|
inline |
Definition at line 53 of file samplesinkfifo.h.
References fill().
Referenced by fill(), ThreadedBasebandSampleSinkFifo::handleFifoData(), DSPDeviceSourceEngine::work(), DSPDeviceMIMOEngine::work(), DSPDeviceMIMOEngine::workSampleSink(), and ThreadedBasebandSampleSinkFifo::~ThreadedBasebandSampleSinkFifo().
uint SampleSinkFifo::read | ( | SampleVector::iterator | begin, |
SampleVector::iterator | end | ||
) |
uint SampleSinkFifo::readBegin | ( | uint | count, |
SampleVector::iterator * | part1Begin, | ||
SampleVector::iterator * | part1End, | ||
SampleVector::iterator * | part2Begin, | ||
SampleVector::iterator * | part2End | ||
) |
Definition at line 193 of file samplesinkfifo.cpp.
References m_data, m_fill, m_head, m_mutex, m_size, and MIN.
Referenced by ThreadedBasebandSampleSinkFifo::handleFifoData(), DSPDeviceSourceEngine::work(), DSPDeviceMIMOEngine::work(), and DSPDeviceMIMOEngine::workSampleSink().
uint SampleSinkFifo::readCommit | ( | uint | count | ) |
Definition at line 231 of file samplesinkfifo.cpp.
References m_fill, m_head, m_mutex, and m_size.
Referenced by ThreadedBasebandSampleSinkFifo::handleFifoData(), DSPDeviceSourceEngine::work(), DSPDeviceMIMOEngine::work(), DSPDeviceMIMOEngine::workSampleSink(), and ThreadedBasebandSampleSinkFifo::~ThreadedBasebandSampleSinkFifo().
bool SampleSinkFifo::setSize | ( | int | size | ) |
Definition at line 75 of file samplesinkfifo.cpp.
References create(), and m_data.
Referenced by FileInput::applySettings(), Bladerf1Input::openDevice(), PerseusInput::openDevice(), AirspyInput::openDevice(), AirspyHFInput::openDevice(), PlutoSDRInput::openDevice(), RTLSDRInput::openDevice(), HackRFInput::openDevice(), SDRPlayInput::openDevice(), BladeRF2Input::openDevice(), SoapySDRInput::openDevice(), XTRXInput::openDevice(), LimeSDRInput::openDevice(), FCDProPlusInput::start(), FCDProInput::start(), FileInput::start(), and ThreadedBasebandSampleSinkFifo::ThreadedBasebandSampleSinkFifo().
|
inline |
Definition at line 52 of file samplesinkfifo.h.
uint SampleSinkFifo::write | ( | const quint8 * | data, |
uint | count | ||
) |
Definition at line 82 of file samplesinkfifo.cpp.
References dataReady(), m_data, m_fill, m_msgRateTimer, m_mutex, m_size, m_suppressed, m_tail, and MIN.
Referenced by Bladerf1InputThread::callback(), RTLSDRThread::callback(), SDRPlayThread::callback(), AirspyHFThread::callback(), PerseusThread::callback(), HackRFInputThread::callback(), AirspyThread::callback(), LimeSDRInputThread::callback(), TestMIThread::callback(), TestSourceThread::callback(), XTRXInputThread::callbackSI(), BladeRF2InputThread::callbackSI(), SoapySDRInputThread::callbackSI12(), SoapySDRInputThread::callbackSI16(), SoapySDRInputThread::callbackSI8(), SoapySDRInputThread::callbackSIF(), PlutoSDRInputThread::convert(), KiwiSDRWorker::onBinaryMessageReceived(), LocalSinkThread::processSamples(), RemoteInputUDPHandler::tick(), FCDProThread::work(), FCDProPlusThread::work(), ThreadedBasebandSampleSinkFifo::writeToFifo(), and FileInputThread::writeToSampleFifo().
uint SampleSinkFifo::write | ( | SampleVector::const_iterator | begin, |
SampleVector::const_iterator | end | ||
) |
Definition at line 125 of file samplesinkfifo.cpp.
References dataReady(), m_data, m_fill, m_msgRateTimer, m_mutex, m_size, m_suppressed, m_tail, and MIN.
|
private |
Definition at line 36 of file samplesinkfifo.h.
Referenced by create(), read(), readBegin(), SampleSinkFifo(), setSize(), and write().
|
private |
Definition at line 39 of file samplesinkfifo.h.
Referenced by create(), read(), readBegin(), readCommit(), SampleSinkFifo(), and write().
|
private |
Definition at line 40 of file samplesinkfifo.h.
Referenced by create(), read(), readBegin(), readCommit(), and SampleSinkFifo().
|
private |
Definition at line 33 of file samplesinkfifo.h.
Referenced by write().
|
private |
Definition at line 32 of file samplesinkfifo.h.
Referenced by read(), readBegin(), readCommit(), write(), and ~SampleSinkFifo().
|
private |
Definition at line 38 of file samplesinkfifo.h.
Referenced by create(), read(), readBegin(), readCommit(), SampleSinkFifo(), write(), and ~SampleSinkFifo().
|
private |
Definition at line 34 of file samplesinkfifo.h.
Referenced by SampleSinkFifo(), and write().
|
private |
Definition at line 41 of file samplesinkfifo.h.
Referenced by create(), SampleSinkFifo(), and write().