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 <rtlsdrthread.h>
Inherits QThread.
Public Member Functions | |
RTLSDRThread (rtlsdr_dev_t *dev, SampleSinkFifo *sampleFifo, QObject *parent=NULL) | |
~RTLSDRThread () | |
void | startWork () |
void | stopWork () |
void | setSamplerate (int samplerate) |
void | setLog2Decimation (unsigned int log2_decim) |
void | setFcPos (int fcPos) |
Private Member Functions | |
void | run () |
void | callback (const quint8 *buf, qint32 len) |
Static Private Member Functions | |
static void | callbackHelper (unsigned char *buf, uint32_t len, void *ctx) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
rtlsdr_dev_t * | m_dev |
SampleVector | m_convertBuffer |
SampleSinkFifo * | m_sampleFifo |
int | m_samplerate |
unsigned int | m_log2Decim |
int | m_fcPos |
DecimatorsU< qint32, quint8, SDR_RX_SAMP_SZ, 8, 127 > | m_decimators |
Definition at line 30 of file rtlsdrthread.h.
RTLSDRThread::RTLSDRThread | ( | rtlsdr_dev_t * | dev, |
SampleSinkFifo * | sampleFifo, | ||
QObject * | parent = NULL |
||
) |
Definition at line 27 of file rtlsdrthread.cpp.
RTLSDRThread::~RTLSDRThread | ( | ) |
Definition at line 39 of file rtlsdrthread.cpp.
References stopWork().
|
private |
Definition at line 92 of file rtlsdrthread.cpp.
References DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate1(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate16_cen(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate16_inf(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate16_sup(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate2_cen(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate2_inf(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate2_sup(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate32_cen(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate32_inf(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate32_sup(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate4_cen(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate4_inf(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate4_sup(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate64_cen(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate64_inf(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate64_sup(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate8_cen(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate8_inf(), DecimatorsU< StorageType, T, SdrBits, InputBits, Shift >::decimate8_sup(), m_convertBuffer, m_decimators, m_dev, m_fcPos, m_log2Decim, m_running, m_sampleFifo, and SampleSinkFifo::write().
Referenced by callbackHelper().
|
staticprivate |
Definition at line 188 of file rtlsdrthread.cpp.
References callback().
Referenced by run().
|
private |
Definition at line 74 of file rtlsdrthread.cpp.
References callbackHelper(), FCD_BLOCKSIZE, m_dev, m_running, and m_startWaiter.
void RTLSDRThread::setFcPos | ( | int | fcPos | ) |
Definition at line 69 of file rtlsdrthread.cpp.
References m_fcPos.
Referenced by RTLSDRInput::applySettings(), and RTLSDRInput::start().
void RTLSDRThread::setLog2Decimation | ( | unsigned int | log2_decim | ) |
Definition at line 64 of file rtlsdrthread.cpp.
References m_log2Decim.
Referenced by RTLSDRInput::applySettings(), and RTLSDRInput::start().
void RTLSDRThread::setSamplerate | ( | int | samplerate | ) |
Definition at line 59 of file rtlsdrthread.cpp.
References m_samplerate.
Referenced by RTLSDRInput::applySettings(), and RTLSDRInput::start().
void RTLSDRThread::startWork | ( | ) |
Definition at line 44 of file rtlsdrthread.cpp.
References m_running, m_startWaiter, and m_startWaitMutex.
Referenced by RTLSDRInput::start().
void RTLSDRThread::stopWork | ( | ) |
Definition at line 53 of file rtlsdrthread.cpp.
References m_running.
Referenced by RTLSDRInput::stop(), and ~RTLSDRThread().
|
private |
Definition at line 49 of file rtlsdrthread.h.
Referenced by callback().
|
private |
Definition at line 56 of file rtlsdrthread.h.
Referenced by callback().
|
private |
Definition at line 48 of file rtlsdrthread.h.
Referenced by callback(), and run().
|
private |
Definition at line 54 of file rtlsdrthread.h.
Referenced by callback(), and setFcPos().
|
private |
Definition at line 53 of file rtlsdrthread.h.
Referenced by callback(), and setLog2Decimation().
|
private |
Definition at line 46 of file rtlsdrthread.h.
Referenced by callback(), run(), startWork(), and stopWork().
|
private |
Definition at line 50 of file rtlsdrthread.h.
Referenced by callback().
|
private |
Definition at line 52 of file rtlsdrthread.h.
Referenced by setSamplerate().
|
private |
Definition at line 45 of file rtlsdrthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 44 of file rtlsdrthread.h.
Referenced by startWork().