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 <hackrfoutputthread.h>
Inherits QThread.
Public Member Functions | |
HackRFOutputThread (hackrf_device *dev, SampleSourceFifo *sampleFifo, QObject *parent=NULL) | |
~HackRFOutputThread () | |
void | startWork () |
void | stopWork () |
void | setLog2Interpolation (unsigned int log2_interp) |
void | setFcPos (int fcPos) |
Private Member Functions | |
void | run () |
void | callback (qint8 *buf, qint32 len) |
Static Private Member Functions | |
static int | tx_callback (hackrf_transfer *transfer) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
hackrf_device * | m_dev |
qint8 | m_buf [2 *HACKRF_BLOCKSIZE] |
SampleSourceFifo * | m_sampleFifo |
unsigned int | m_log2Interp |
int | m_fcPos |
Interpolators< qint8, SDR_TX_SAMP_SZ, 8 > | m_interpolators |
Definition at line 31 of file hackrfoutputthread.h.
HackRFOutputThread::HackRFOutputThread | ( | hackrf_device * | dev, |
SampleSourceFifo * | sampleFifo, | ||
QObject * | parent = NULL |
||
) |
HackRFOutputThread::~HackRFOutputThread | ( | ) |
Definition at line 36 of file hackrfoutputthread.cpp.
References stopWork().
|
private |
Definition at line 119 of file hackrfoutputthread.cpp.
References Interpolators< T, SdrBits, OutputBits >::interpolate1(), Interpolators< T, SdrBits, OutputBits >::interpolate16_cen(), Interpolators< T, SdrBits, OutputBits >::interpolate16_inf(), Interpolators< T, SdrBits, OutputBits >::interpolate16_sup(), Interpolators< T, SdrBits, OutputBits >::interpolate2_cen(), Interpolators< T, SdrBits, OutputBits >::interpolate2_inf(), Interpolators< T, SdrBits, OutputBits >::interpolate2_sup(), Interpolators< T, SdrBits, OutputBits >::interpolate32_cen(), Interpolators< T, SdrBits, OutputBits >::interpolate32_inf(), Interpolators< T, SdrBits, OutputBits >::interpolate32_sup(), Interpolators< T, SdrBits, OutputBits >::interpolate4_cen(), Interpolators< T, SdrBits, OutputBits >::interpolate4_inf(), Interpolators< T, SdrBits, OutputBits >::interpolate4_sup(), Interpolators< T, SdrBits, OutputBits >::interpolate64_cen(), Interpolators< T, SdrBits, OutputBits >::interpolate64_inf(), Interpolators< T, SdrBits, OutputBits >::interpolate64_sup(), Interpolators< T, SdrBits, OutputBits >::interpolate8_cen(), Interpolators< T, SdrBits, OutputBits >::interpolate8_inf(), Interpolators< T, SdrBits, OutputBits >::interpolate8_sup(), m_fcPos, m_interpolators, m_log2Interp, m_sampleFifo, and SampleSourceFifo::readAdvance().
Referenced by tx_callback().
|
private |
Definition at line 68 of file hackrfoutputthread.cpp.
References m_dev, m_running, m_startWaiter, and tx_callback().
void HackRFOutputThread::setFcPos | ( | int | fcPos | ) |
Definition at line 63 of file hackrfoutputthread.cpp.
References m_fcPos.
Referenced by HackRFOutput::applySettings(), and HackRFOutput::start().
void HackRFOutputThread::setLog2Interpolation | ( | unsigned int | log2_interp | ) |
Definition at line 58 of file hackrfoutputthread.cpp.
References m_log2Interp.
Referenced by HackRFOutput::applySettings(), and HackRFOutput::start().
void HackRFOutputThread::startWork | ( | ) |
Definition at line 41 of file hackrfoutputthread.cpp.
References m_running, m_startWaiter, and m_startWaitMutex.
Referenced by HackRFOutput::applySettings(), and HackRFOutput::start().
void HackRFOutputThread::stopWork | ( | ) |
Definition at line 50 of file hackrfoutputthread.cpp.
References m_running.
Referenced by HackRFOutput::applySettings(), HackRFOutput::stop(), and ~HackRFOutputThread().
|
staticprivate |
Definition at line 212 of file hackrfoutputthread.cpp.
References callback().
Referenced by run().
|
private |
Definition at line 49 of file hackrfoutputthread.h.
Referenced by HackRFOutputThread().
|
private |
Definition at line 48 of file hackrfoutputthread.h.
Referenced by run().
|
private |
Definition at line 53 of file hackrfoutputthread.h.
Referenced by callback(), and setFcPos().
|
private |
Definition at line 55 of file hackrfoutputthread.h.
Referenced by callback().
|
private |
Definition at line 52 of file hackrfoutputthread.h.
Referenced by callback(), and setLog2Interpolation().
|
private |
Definition at line 46 of file hackrfoutputthread.h.
Referenced by run(), startWork(), and stopWork().
|
private |
Definition at line 50 of file hackrfoutputthread.h.
Referenced by callback().
|
private |
Definition at line 45 of file hackrfoutputthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 44 of file hackrfoutputthread.h.
Referenced by startWork().