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 <hackrfinputthread.h>
Inherits QThread.
Public Member Functions | |
HackRFInputThread (hackrf_device *dev, SampleSinkFifo *sampleFifo, QObject *parent=NULL) | |
~HackRFInputThread () | |
void | startWork () |
void | stopWork () |
void | setSamplerate (uint32_t samplerate) |
void | setLog2Decimation (unsigned int log2_decim) |
void | setFcPos (int fcPos) |
Private Member Functions | |
void | run () |
void | callback (const qint8 *buf, qint32 len) |
Static Private Member Functions | |
static int | rx_callback (hackrf_transfer *transfer) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
hackrf_device * | m_dev |
qint16 | m_buf [2 *HACKRF_BLOCKSIZE] |
SampleVector | m_convertBuffer |
SampleSinkFifo * | m_sampleFifo |
int | m_samplerate |
unsigned int | m_log2Decim |
int | m_fcPos |
Decimators< qint32, qint8, SDR_RX_SAMP_SZ, 8 > | m_decimators |
Definition at line 31 of file hackrfinputthread.h.
HackRFInputThread::HackRFInputThread | ( | hackrf_device * | dev, |
SampleSinkFifo * | sampleFifo, | ||
QObject * | parent = NULL |
||
) |
HackRFInputThread::~HackRFInputThread | ( | ) |
Definition at line 39 of file hackrfinputthread.cpp.
References stopWork().
|
private |
Definition at line 125 of file hackrfinputthread.cpp.
References Decimators< StorageType, T, SdrBits, InputBits >::decimate1(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_inf_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_sup_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_inf_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_sup_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_inf_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_sup_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_inf_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_sup_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_inf_txsync(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_sup_txsync(), m_convertBuffer, m_decimators, m_fcPos, m_log2Decim, m_sampleFifo, and SampleSinkFifo::write().
Referenced by rx_callback().
|
private |
Definition at line 75 of file hackrfinputthread.cpp.
References m_dev, m_running, m_startWaiter, and rx_callback().
|
staticprivate |
Definition at line 219 of file hackrfinputthread.cpp.
References callback().
Referenced by run().
void HackRFInputThread::setFcPos | ( | int | fcPos | ) |
Definition at line 70 of file hackrfinputthread.cpp.
References m_fcPos.
Referenced by HackRFInput::applySettings(), and HackRFInput::start().
void HackRFInputThread::setLog2Decimation | ( | unsigned int | log2_decim | ) |
Definition at line 65 of file hackrfinputthread.cpp.
References m_log2Decim.
Referenced by HackRFInput::applySettings(), and HackRFInput::start().
void HackRFInputThread::setSamplerate | ( | uint32_t | samplerate | ) |
Definition at line 60 of file hackrfinputthread.cpp.
References m_samplerate.
Referenced by HackRFInput::applySettings(), and HackRFInput::start().
void HackRFInputThread::startWork | ( | ) |
Definition at line 44 of file hackrfinputthread.cpp.
References m_running, m_startWaiter, and m_startWaitMutex.
Referenced by HackRFInput::start().
void HackRFInputThread::stopWork | ( | ) |
Definition at line 53 of file hackrfinputthread.cpp.
References m_running.
Referenced by HackRFInput::stop(), and ~HackRFInputThread().
|
private |
Definition at line 50 of file hackrfinputthread.h.
Referenced by HackRFInputThread().
|
private |
Definition at line 51 of file hackrfinputthread.h.
Referenced by callback().
|
private |
Definition at line 58 of file hackrfinputthread.h.
Referenced by callback().
|
private |
Definition at line 49 of file hackrfinputthread.h.
Referenced by run().
|
private |
Definition at line 56 of file hackrfinputthread.h.
Referenced by callback(), and setFcPos().
|
private |
Definition at line 55 of file hackrfinputthread.h.
Referenced by callback(), and setLog2Decimation().
|
private |
Definition at line 47 of file hackrfinputthread.h.
Referenced by run(), startWork(), and stopWork().
|
private |
Definition at line 52 of file hackrfinputthread.h.
Referenced by callback().
|
private |
Definition at line 54 of file hackrfinputthread.h.
Referenced by setSamplerate().
|
private |
Definition at line 46 of file hackrfinputthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 45 of file hackrfinputthread.h.
Referenced by startWork().