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 <filerecord.h>
Classes | |
struct | Header |
Public Member Functions | |
FileRecord () | |
FileRecord (const QString &filename) | |
virtual | ~FileRecord () |
quint64 | getByteCount () const |
void | setFileName (const QString &filename) |
void | genUniqueFileName (uint deviceUID, int istream=-1) |
virtual void | feed (const SampleVector::const_iterator &begin, const SampleVector::const_iterator &end, bool positiveOnly) |
virtual void | start () |
virtual void | stop () |
virtual bool | handleMessage (const Message &message) |
Processing of a message. Returns true if message has actually been processed. More... | |
void | startRecording () |
void | stopRecording () |
bool | isRecording () const |
Public Member Functions inherited from BasebandSampleSink | |
BasebandSampleSink () | |
virtual | ~BasebandSampleSink () |
MessageQueue * | getInputMessageQueue () |
Get the queue for asynchronous inbound communication. More... | |
virtual void | setMessageQueueToGUI (MessageQueue *queue) |
MessageQueue * | getMessageQueueToGUI () |
Static Public Member Functions | |
static bool | readHeader (std::ifstream &samplefile, Header &header) |
returns true if CRC checksum is correct else false More... | |
static void | writeHeader (std::ofstream &samplefile, Header &header) |
Private Member Functions | |
void | handleConfigure (const QString &fileName) |
void | writeHeader () |
Private Attributes | |
QString | m_fileName |
quint32 | m_sampleRate |
quint64 | m_centerFrequency |
bool | m_recordOn |
bool | m_recordStart |
std::ofstream | m_sampleFile |
quint64 | m_byteCount |
Additional Inherited Members | |
Protected Slots inherited from BasebandSampleSink | |
void | handleInputMessages () |
Protected Attributes inherited from BasebandSampleSink | |
MessageQueue | m_inputMessageQueue |
Queue for asynchronous inbound communication. More... | |
MessageQueue * | m_guiMessageQueue |
Input message queue to the GUI. More... | |
Definition at line 31 of file filerecord.h.
FileRecord::FileRecord | ( | ) |
Definition at line 30 of file filerecord.cpp.
FileRecord::FileRecord | ( | const QString & | filename | ) |
Definition at line 42 of file filerecord.cpp.
|
virtual |
Definition at line 54 of file filerecord.cpp.
References stopRecording().
|
virtual |
Implements BasebandSampleSink.
Definition at line 76 of file filerecord.cpp.
References m_byteCount, m_recordOn, m_recordStart, m_sampleFile, and writeHeader().
void FileRecord::genUniqueFileName | ( | uint | deviceUID, |
int | istream = -1 |
||
) |
Definition at line 67 of file filerecord.cpp.
References arg(), and setFileName().
Referenced by TestSourceInput::handleMessage(), AirspyInput::handleMessage(), PerseusInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyHFInput::handleMessage(), PlutoSDRInput::handleMessage(), Bladerf1Input::handleMessage(), FCDProInput::handleMessage(), FCDProPlusInput::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), LocalInput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), LimeSDRInput::handleMessage(), and RemoteInput::handleMessage().
|
inline |
Definition at line 50 of file filerecord.h.
|
private |
Definition at line 145 of file filerecord.cpp.
References m_fileName, and stopRecording().
|
virtual |
Processing of a message. Returns true if message has actually been processed.
Implements BasebandSampleSink.
Definition at line 128 of file filerecord.cpp.
References DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), m_centerFrequency, m_sampleRate, and Message::match().
Referenced by TestSourceInput::applySettings(), Bladerf1Input::applySettings(), PerseusInput::applySettings(), AirspyInput::applySettings(), AirspyHFInput::applySettings(), RTLSDRInput::applySettings(), PlutoSDRInput::applySettings(), HackRFInput::applySettings(), FCDProPlusInput::applySettings(), KiwiSDRInput::applySettings(), FCDProInput::applySettings(), SDRPlayInput::applySettings(), BladeRF2Input::applySettings(), SoapySDRInput::applySettings(), LimeSDRInput::applySettings(), HackRFInput::handleMessage(), LocalInput::handleMessage(), BladeRF2Input::handleMessage(), and RemoteInput::handleMessage().
|
inline |
Definition at line 61 of file filerecord.h.
|
static |
returns true if CRC checksum is correct else false
Definition at line 168 of file filerecord.cpp.
References leansdr::crc32().
Referenced by FileInput::openFileStream(), and FileSource::openFileStream().
void FileRecord::setFileName | ( | const QString & | filename | ) |
Definition at line 59 of file filerecord.cpp.
References m_fileName, and m_recordOn.
Referenced by genUniqueFileName(), TestSourceInput::handleMessage(), AirspyInput::handleMessage(), PerseusInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyHFInput::handleMessage(), PlutoSDRInput::handleMessage(), Bladerf1Input::handleMessage(), FCDProInput::handleMessage(), FCDProPlusInput::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), LocalInput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), LimeSDRInput::handleMessage(), and RemoteInput::handleMessage().
|
virtual |
void FileRecord::startRecording | ( | ) |
Definition at line 105 of file filerecord.cpp.
References m_byteCount, m_fileName, m_recordOn, m_recordStart, and m_sampleFile.
Referenced by TestSourceInput::handleMessage(), AirspyInput::handleMessage(), PerseusInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyHFInput::handleMessage(), PlutoSDRInput::handleMessage(), Bladerf1Input::handleMessage(), FCDProInput::handleMessage(), FCDProPlusInput::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), LocalInput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), and RemoteInput::handleMessage().
|
virtual |
Implements BasebandSampleSink.
Definition at line 100 of file filerecord.cpp.
References stopRecording().
void FileRecord::stopRecording | ( | ) |
Definition at line 117 of file filerecord.cpp.
References m_recordOn, m_recordStart, and m_sampleFile.
Referenced by handleConfigure(), TestSourceInput::handleMessage(), PerseusInput::handleMessage(), AirspyInput::handleMessage(), RTLSDRInput::handleMessage(), AirspyHFInput::handleMessage(), PlutoSDRInput::handleMessage(), Bladerf1Input::handleMessage(), FCDProInput::handleMessage(), FCDProPlusInput::handleMessage(), HackRFInput::handleMessage(), KiwiSDRInput::handleMessage(), LocalInput::handleMessage(), SDRPlayInput::handleMessage(), BladeRF2Input::handleMessage(), SoapySDRInput::handleMessage(), XTRXInput::handleMessage(), LimeSDRInput::handleMessage(), RemoteInput::handleMessage(), stop(), and ~FileRecord().
|
static |
Definition at line 176 of file filerecord.cpp.
References FileRecord::Header::crc32, and leansdr::crc32().
|
private |
Definition at line 155 of file filerecord.cpp.
References FileRecord::Header::centerFrequency, FileRecord::Header::filler, m_centerFrequency, m_sampleFile, m_sampleRate, FileRecord::Header::sampleRate, FileRecord::Header::sampleSize, SDR_RX_SAMP_SZ, and FileRecord::Header::startTimeStamp.
Referenced by feed(), and FileSinkOutput::openFileStream().
|
private |
Definition at line 72 of file filerecord.h.
Referenced by feed(), and startRecording().
|
private |
Definition at line 68 of file filerecord.h.
Referenced by handleMessage(), and writeHeader().
|
private |
Definition at line 66 of file filerecord.h.
Referenced by handleConfigure(), setFileName(), and startRecording().
|
private |
Definition at line 69 of file filerecord.h.
Referenced by feed(), setFileName(), startRecording(), and stopRecording().
|
private |
Definition at line 70 of file filerecord.h.
Referenced by feed(), startRecording(), and stopRecording().
|
private |
Definition at line 71 of file filerecord.h.
Referenced by feed(), startRecording(), stopRecording(), and writeHeader().
|
private |
Definition at line 67 of file filerecord.h.
Referenced by handleMessage(), and writeHeader().