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 <xtrxinputthread.h>
Classes | |
struct | Channel |
Public Member Functions | |
XTRXInputThread (struct xtrx_dev *dev, unsigned int nbChannels, unsigned int uniqueChannelIndex=0, QObject *parent=0) | |
~XTRXInputThread () | |
virtual void | startWork () |
virtual void | stopWork () |
virtual bool | isRunning () |
unsigned int | getNbChannels () const |
void | setLog2Decimation (unsigned int channel, unsigned int log2_decim) |
unsigned int | getLog2Decimation (unsigned int channel) const |
void | setFifo (unsigned int channel, SampleSinkFifo *sampleFifo) |
SampleSinkFifo * | getFifo (unsigned int channel) |
Private Member Functions | |
void | run () |
unsigned int | getNbFifos () |
void | callbackSI (const qint16 *buf, qint32 len) |
void | callbackMI (const qint16 *buf0, const qint16 *buf1, qint32 len) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
struct xtrx_dev * | m_dev |
Channel * | m_channels |
Array of channels dynamically allocated for the given number of Rx channels. More... | |
unsigned int | m_nbChannels |
unsigned int | m_uniqueChannelIndex |
Definition at line 34 of file xtrxinputthread.h.
XTRXInputThread::XTRXInputThread | ( | struct xtrx_dev * | dev, |
unsigned int | nbChannels, | ||
unsigned int | uniqueChannelIndex = 0 , |
||
QObject * | parent = 0 |
||
) |
Definition at line 27 of file xtrxinputthread.cpp.
References DeviceXTRX::blockSize, i, m_channels, and XTRXInputThread::Channel::m_convertBuffer.
XTRXInputThread::~XTRXInputThread | ( | ) |
Definition at line 42 of file xtrxinputthread.cpp.
References m_channels, m_running, and stopWork().
|
private |
Definition at line 264 of file xtrxinputthread.cpp.
References callbackSI(), and m_uniqueChannelIndex.
Referenced by run().
|
private |
Definition at line 226 of file xtrxinputthread.cpp.
References Decimators< StorageType, T, SdrBits, InputBits >::decimate1(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_cen(), m_channels, XTRXInputThread::Channel::m_convertBuffer, XTRXInputThread::Channel::m_decimators, XTRXInputThread::Channel::m_sampleFifo, m_uniqueChannelIndex, and SampleSinkFifo::write().
Referenced by callbackMI(), and run().
SampleSinkFifo * XTRXInputThread::getFifo | ( | unsigned int | channel | ) |
Definition at line 217 of file xtrxinputthread.cpp.
References m_channels, and XTRXInputThread::Channel::m_sampleFifo.
Referenced by getNbChannels(), and XTRXInput::start().
unsigned int XTRXInputThread::getLog2Decimation | ( | unsigned int | channel | ) | const |
Definition at line 201 of file xtrxinputthread.cpp.
References m_channels, and XTRXInputThread::Channel::m_log2Decim.
Referenced by getNbChannels(), and XTRXInput::start().
|
inline |
Definition at line 45 of file xtrxinputthread.h.
References getFifo(), getLog2Decimation(), m_nbChannels, setFifo(), and setLog2Decimation().
Referenced by XTRXInput::start(), and XTRXInput::stop().
|
private |
Definition at line 180 of file xtrxinputthread.cpp.
References i, and m_channels.
Referenced by run().
|
inlinevirtual |
Implements DeviceXTRXShared::ThreadInterface.
Definition at line 44 of file xtrxinputthread.h.
References m_running.
Referenced by XTRXInput::applySettings().
|
private |
Definition at line 80 of file xtrxinputthread.cpp.
References DeviceXTRX::blockSize, callbackMI(), callbackSI(), getNbFifos(), i, m_dev, m_nbChannels, m_running, m_startWaiter, and m_uniqueChannelIndex.
void XTRXInputThread::setFifo | ( | unsigned int | channel, |
SampleSinkFifo * | sampleFifo | ||
) |
Definition at line 210 of file xtrxinputthread.cpp.
References m_channels, and XTRXInputThread::Channel::m_sampleFifo.
Referenced by getNbChannels(), XTRXInput::start(), and XTRXInput::stop().
void XTRXInputThread::setLog2Decimation | ( | unsigned int | channel, |
unsigned int | log2_decim | ||
) |
Definition at line 194 of file xtrxinputthread.cpp.
References m_channels, and XTRXInputThread::Channel::m_log2Decim.
Referenced by XTRXInput::applySettings(), getNbChannels(), XTRXInput::start(), and XTRXInput::stop().
|
virtual |
Implements DeviceXTRXShared::ThreadInterface.
Definition at line 53 of file xtrxinputthread.cpp.
References m_running, m_startWaiter, and m_startWaitMutex.
Referenced by XTRXInput::applySettings(), XTRXInput::start(), and XTRXInput::stop().
|
virtual |
Implements DeviceXTRXShared::ThreadInterface.
Definition at line 69 of file xtrxinputthread.cpp.
References m_running.
Referenced by XTRXInput::applySettings(), XTRXInput::start(), XTRXInput::stop(), and ~XTRXInputThread().
|
private |
Array of channels dynamically allocated for the given number of Rx channels.
Definition at line 73 of file xtrxinputthread.h.
Referenced by callbackSI(), getFifo(), getLog2Decimation(), getNbFifos(), setFifo(), setLog2Decimation(), XTRXInputThread(), and ~XTRXInputThread().
|
private |
Definition at line 71 of file xtrxinputthread.h.
Referenced by run().
|
private |
Definition at line 74 of file xtrxinputthread.h.
Referenced by getNbChannels(), and run().
|
private |
Definition at line 70 of file xtrxinputthread.h.
Referenced by isRunning(), run(), startWork(), stopWork(), and ~XTRXInputThread().
|
private |
Definition at line 69 of file xtrxinputthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 68 of file xtrxinputthread.h.
Referenced by startWork().
|
private |
Definition at line 75 of file xtrxinputthread.h.
Referenced by callbackMI(), callbackSI(), and run().