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 <remoteinputudphandler.h>
Inherits QObject.
Public Slots | |
void | dataReadyRead () |
Public Member Functions | |
RemoteInputUDPHandler (SampleSinkFifo *sampleFifo, DeviceAPI *deviceAPI) | |
~RemoteInputUDPHandler () | |
void | setMessageQueueToGUI (MessageQueue *queue) |
void | start () |
void | stop () |
void | configureUDPLink (const QString &address, quint16 port) |
void | getRemoteAddress (QString &s) const |
int | getNbOriginalBlocks () const |
bool | isStreaming () const |
int | getSampleRate () const |
int | getCenterFrequency () const |
int | getBufferGauge () const |
uint64_t | getTVmSec () const |
int | getMinNbBlocks () |
int | getMaxNbRecovery () |
Private Slots | |
void | tick () |
Private Member Functions | |
void | connectTimer () |
void | disconnectTimer () |
void | processData () |
Private Attributes | |
DeviceAPI * | m_deviceAPI |
const QTimer & | m_masterTimer |
bool | m_masterTimerConnected |
bool | m_running |
uint32_t | m_rateDivider |
RemoteInputBuffer | m_remoteInputBuffer |
QUdpSocket * | m_dataSocket |
QHostAddress | m_dataAddress |
QHostAddress | m_remoteAddress |
quint16 | m_dataPort |
bool | m_dataConnected |
char * | m_udpBuf |
qint64 | m_udpReadBytes |
SampleSinkFifo * | m_sampleFifo |
uint32_t | m_samplerate |
uint64_t | m_centerFrequency |
uint64_t | m_tv_msec |
MessageQueue * | m_outputMessageQueueToGUI |
uint32_t | m_tickCount |
std::size_t | m_samplesCount |
QTimer * | m_timer |
QElapsedTimer | m_elapsedTimer |
int | m_throttlems |
int32_t | m_readLengthSamples |
uint32_t | m_readLength |
int32_t * | m_converterBuffer |
uint32_t | m_converterBufferNbSamples |
bool | m_throttleToggle |
bool | m_autoCorrBuffer |
Definition at line 36 of file remoteinputudphandler.h.
RemoteInputUDPHandler::RemoteInputUDPHandler | ( | SampleSinkFifo * | sampleFifo, |
DeviceAPI * | deviceAPI | ||
) |
Definition at line 29 of file remoteinputudphandler.cpp.
References m_udpBuf.
RemoteInputUDPHandler::~RemoteInputUDPHandler | ( | ) |
Definition at line 71 of file remoteinputudphandler.cpp.
References m_converterBuffer, m_timer, m_udpBuf, and stop().
void RemoteInputUDPHandler::configureUDPLink | ( | const QString & | address, |
quint16 | port | ||
) |
Definition at line 144 of file remoteinputudphandler.cpp.
References m_dataAddress, m_dataPort, start(), and stop().
Referenced by RemoteInput::applySettings(), and setMessageQueueToGUI().
|
private |
Definition at line 217 of file remoteinputudphandler.cpp.
References m_masterTimer, m_masterTimerConnected, m_timer, and tick().
Referenced by processData().
|
slot |
Definition at line 160 of file remoteinputudphandler.cpp.
References m_dataConnected, m_dataSocket, m_remoteAddress, m_udpBuf, and m_udpReadBytes.
Referenced by getMaxNbRecovery(), start(), and stop().
|
private |
Definition at line 232 of file remoteinputudphandler.cpp.
References m_masterTimer, m_masterTimerConnected, m_timer, and tick().
Referenced by stop().
|
inline |
Definition at line 51 of file remoteinputudphandler.h.
References RemoteInputBuffer::getBufferGauge(), and m_remoteInputBuffer.
Referenced by RemoteInput::webapiFormatDeviceReport().
|
inline |
Definition at line 50 of file remoteinputudphandler.h.
References m_centerFrequency.
Referenced by RemoteInput::getCenterFrequency(), and RemoteInput::webapiFormatDeviceReport().
|
inline |
Definition at line 54 of file remoteinputudphandler.h.
References dataReadyRead(), RemoteInputBuffer::getMaxNbRecovery(), and m_remoteInputBuffer.
Referenced by RemoteInput::webapiFormatDeviceReport().
|
inline |
Definition at line 53 of file remoteinputudphandler.h.
References RemoteInputBuffer::getMinNbBlocks(), and m_remoteInputBuffer.
Referenced by RemoteInput::webapiFormatDeviceReport().
|
inline |
Definition at line 47 of file remoteinputudphandler.h.
|
inline |
Definition at line 46 of file remoteinputudphandler.h.
References m_remoteAddress.
Referenced by RemoteInput::applySettings().
|
inline |
Definition at line 49 of file remoteinputudphandler.h.
References m_samplerate.
Referenced by RemoteInput::getSampleRate(), and RemoteInput::webapiFormatDeviceReport().
|
inline |
Definition at line 52 of file remoteinputudphandler.h.
References m_tv_msec.
Referenced by RemoteInput::webapiFormatDeviceReport().
|
inline |
Definition at line 48 of file remoteinputudphandler.h.
References m_masterTimerConnected.
Referenced by RemoteInput::isStreaming().
|
private |
Definition at line 176 of file remoteinputudphandler.cpp.
References connectTimer(), RemoteInput::MsgReportRemoteInputStreamData::create(), RemoteInputBuffer::getCurrentMeta(), DeviceAPI::getDeviceEngineInputMessageQueue(), RemoteInputBuffer::getTVOutMSec(), RemoteMetaDataFEC::m_centerFrequency, m_centerFrequency, m_deviceAPI, m_outputMessageQueueToGUI, m_remoteInputBuffer, RemoteMetaDataFEC::m_sampleRate, m_samplerate, m_tv_msec, m_udpBuf, MessageQueue::push(), and RemoteInputBuffer::writeData().
|
inline |
Definition at line 42 of file remoteinputudphandler.h.
References configureUDPLink(), m_outputMessageQueueToGUI, start(), and stop().
Referenced by RemoteInput::setMessageQueueToGUI().
void RemoteInputUDPHandler::start | ( | ) |
Definition at line 83 of file remoteinputudphandler.cpp.
References dataReadyRead(), m_dataAddress, m_dataConnected, m_dataPort, m_dataSocket, m_elapsedTimer, and m_running.
Referenced by configureUDPLink(), setMessageQueueToGUI(), and RemoteInput::start().
void RemoteInputUDPHandler::stop | ( | ) |
Definition at line 117 of file remoteinputudphandler.cpp.
References dataReadyRead(), disconnectTimer(), m_centerFrequency, m_dataConnected, m_dataSocket, m_running, and m_samplerate.
Referenced by configureUDPLink(), setMessageQueueToGUI(), RemoteInput::stop(), and ~RemoteInputUDPHandler().
|
privateslot |
Definition at line 247 of file remoteinputudphandler.cpp.
References RemoteInput::MsgReportRemoteInputStreamTiming::create(), RemoteInputBuffer::getAvgNbBlocks(), RemoteInputBuffer::getAvgNbRecovery(), RemoteInputBuffer::getAvgOriginalBlocks(), RemoteInputBuffer::getBufferGauge(), RemoteInputBuffer::getBufferLengthInSecs(), RemoteInputBuffer::getCurrentMeta(), RemoteInputBuffer::getMaxNbRecovery(), RemoteInputBuffer::getMinNbBlocks(), RemoteInputBuffer::getMinOriginalBlocks(), RemoteInputBuffer::getRWBalanceCorrection(), m_autoCorrBuffer, m_converterBuffer, m_converterBufferNbSamples, m_elapsedTimer, RemoteMetaDataFEC::m_nbFECBlocks, RemoteMetaDataFEC::m_nbOriginalBlocks, m_outputMessageQueueToGUI, m_rateDivider, m_readLength, m_readLengthSamples, m_remoteInputBuffer, RemoteMetaDataFEC::m_sampleBits, RemoteMetaDataFEC::m_sampleBytes, m_sampleFifo, RemoteMetaDataFEC::m_sampleRate, m_samplesCount, m_throttlems, m_throttleToggle, m_tickCount, m_tv_msec, MessageQueue::push(), RemoteInputBuffer::readData(), SDR_RX_SAMP_SZ, and SampleSinkFifo::write().
Referenced by connectTimer(), and disconnectTimer().
|
private |
Definition at line 88 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 74 of file remoteinputudphandler.h.
Referenced by getCenterFrequency(), processData(), and stop().
|
private |
Definition at line 85 of file remoteinputudphandler.h.
Referenced by tick(), and ~RemoteInputUDPHandler().
|
private |
Definition at line 86 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 66 of file remoteinputudphandler.h.
Referenced by configureUDPLink(), and start().
|
private |
Definition at line 69 of file remoteinputudphandler.h.
Referenced by dataReadyRead(), start(), and stop().
|
private |
Definition at line 68 of file remoteinputudphandler.h.
Referenced by configureUDPLink(), and start().
|
private |
Definition at line 65 of file remoteinputudphandler.h.
Referenced by dataReadyRead(), start(), and stop().
|
private |
Definition at line 59 of file remoteinputudphandler.h.
Referenced by processData().
|
private |
Definition at line 81 of file remoteinputudphandler.h.
|
private |
Definition at line 60 of file remoteinputudphandler.h.
Referenced by connectTimer(), and disconnectTimer().
|
private |
Definition at line 61 of file remoteinputudphandler.h.
Referenced by connectTimer(), disconnectTimer(), and isStreaming().
|
private |
Definition at line 76 of file remoteinputudphandler.h.
Referenced by processData(), setMessageQueueToGUI(), and tick().
|
private |
Definition at line 63 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 84 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 83 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 67 of file remoteinputudphandler.h.
Referenced by dataReadyRead(), and getRemoteAddress().
|
private |
Definition at line 64 of file remoteinputudphandler.h.
Referenced by getBufferGauge(), getMaxNbRecovery(), getMinNbBlocks(), processData(), and tick().
|
private |
Definition at line 62 of file remoteinputudphandler.h.
|
private |
Definition at line 72 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 73 of file remoteinputudphandler.h.
Referenced by getSampleRate(), processData(), and stop().
|
private |
Definition at line 78 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 82 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 87 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 77 of file remoteinputudphandler.h.
Referenced by tick().
|
private |
Definition at line 79 of file remoteinputudphandler.h.
Referenced by connectTimer(), disconnectTimer(), and ~RemoteInputUDPHandler().
|
private |
Definition at line 75 of file remoteinputudphandler.h.
Referenced by getTVmSec(), processData(), and tick().
|
private |
Definition at line 70 of file remoteinputudphandler.h.
Referenced by dataReadyRead(), processData(), RemoteInputUDPHandler(), and ~RemoteInputUDPHandler().
|
private |
Definition at line 71 of file remoteinputudphandler.h.
Referenced by dataReadyRead().