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 <limesdrinputthread.h>
Public Member Functions | |
LimeSDRInputThread (lms_stream_t *stream, SampleSinkFifo *sampleFifo, QObject *parent=0) | |
~LimeSDRInputThread () | |
virtual void | startWork () |
virtual void | stopWork () |
virtual void | setDeviceSampleRate (int sampleRate) |
virtual bool | isRunning () |
void | setLog2Decimation (unsigned int log2_decim) |
Private Member Functions | |
void | run () |
void | callback (const qint16 *buf, qint32 len) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
lms_stream_t * | m_stream |
qint16 | m_buf [2 *LIMESDR_BLOCKSIZE] |
SampleVector | m_convertBuffer |
SampleSinkFifo * | m_sampleFifo |
unsigned int | m_log2Decim |
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 12 > | m_decimators |
Definition at line 33 of file limesdrinputthread.h.
LimeSDRInputThread::LimeSDRInputThread | ( | lms_stream_t * | stream, |
SampleSinkFifo * | sampleFifo, | ||
QObject * | parent = 0 |
||
) |
LimeSDRInputThread::~LimeSDRInputThread | ( | ) |
Definition at line 35 of file limesdrinputthread.cpp.
References stopWork().
|
private |
Definition at line 104 of file limesdrinputthread.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_convertBuffer, m_decimators, m_log2Decim, m_sampleFifo, and SampleSinkFifo::write().
Referenced by run().
|
inlinevirtual |
Implements DeviceLimeSDRShared::ThreadInterface.
Definition at line 44 of file limesdrinputthread.h.
References m_running, and setLog2Decimation().
Referenced by LimeSDRInput::applySettings().
|
private |
Definition at line 78 of file limesdrinputthread.cpp.
References callback(), LIMESDR_BLOCKSIZE, m_buf, m_running, m_startWaiter, and m_stream.
|
inlinevirtual |
Implements DeviceLimeSDRShared::ThreadInterface.
Definition at line 43 of file limesdrinputthread.h.
void LimeSDRInputThread::setLog2Decimation | ( | unsigned int | log2_decim | ) |
Definition at line 73 of file limesdrinputthread.cpp.
References m_log2Decim.
Referenced by LimeSDRInput::applySettings(), isRunning(), and LimeSDRInput::start().
|
virtual |
Implements DeviceLimeSDRShared::ThreadInterface.
Definition at line 40 of file limesdrinputthread.cpp.
References m_running, m_startWaiter, m_startWaitMutex, and m_stream.
Referenced by LimeSDRInput::applySettings(), and LimeSDRInput::start().
|
virtual |
Implements DeviceLimeSDRShared::ThreadInterface.
Definition at line 58 of file limesdrinputthread.cpp.
References m_running, and m_stream.
Referenced by LimeSDRInput::applySettings(), LimeSDRInput::stop(), and ~LimeSDRInputThread().
|
private |
Definition at line 53 of file limesdrinputthread.h.
Referenced by LimeSDRInputThread(), and run().
|
private |
Definition at line 54 of file limesdrinputthread.h.
Referenced by callback().
|
private |
Definition at line 59 of file limesdrinputthread.h.
Referenced by callback().
|
private |
Definition at line 57 of file limesdrinputthread.h.
Referenced by callback(), and setLog2Decimation().
|
private |
Definition at line 50 of file limesdrinputthread.h.
Referenced by isRunning(), run(), startWork(), and stopWork().
|
private |
Definition at line 55 of file limesdrinputthread.h.
Referenced by callback().
|
private |
Definition at line 49 of file limesdrinputthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 48 of file limesdrinputthread.h.
Referenced by startWork().
|
private |
Definition at line 52 of file limesdrinputthread.h.
Referenced by run(), startWork(), and stopWork().