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 <lorademodsettings.h>
Public Member Functions | |
LoRaDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
int | m_centerFrequency |
int | m_bandwidthIndex |
int | m_spread |
uint32_t | m_rgbColor |
QString | m_title |
Serializable * | m_channelMarker |
Serializable * | m_spectrumGUI |
Static Public Attributes | |
static const int | bandwidths [] = {7813,15625,20833,31250,62500} |
static const int | nb_bandwidths = 5 |
Definition at line 12 of file lorademodsettings.h.
LoRaDemodSettings::LoRaDemodSettings | ( | ) |
Definition at line 13 of file lorademodsettings.cpp.
References resetToDefaults().
bool LoRaDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 49 of file lorademodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_bandwidthIndex, m_centerFrequency, m_channelMarker, m_spectrumGUI, m_spread, m_title, SimpleDeserializer::readBlob(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), and resetToDefaults().
Referenced by LoRaDemodGUI::deserialize(), LoRaDemod::deserialize(), and setSpectrumGUI().
void LoRaDemodSettings::resetToDefaults | ( | ) |
Definition at line 21 of file lorademodsettings.cpp.
References m_bandwidthIndex, m_rgbColor, m_spread, and m_title.
Referenced by deserialize(), LoRaDemod::deserialize(), LoRaDemodSettings(), and LoRaDemodGUI::resetToDefaults().
QByteArray LoRaDemodSettings::serialize | ( | ) | const |
Definition at line 29 of file lorademodsettings.cpp.
References SimpleSerializer::final(), m_bandwidthIndex, m_centerFrequency, m_channelMarker, m_spectrumGUI, m_spread, m_title, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeS32(), and SimpleSerializer::writeString().
Referenced by LoRaDemodGUI::serialize(), LoRaDemod::serialize(), and setSpectrumGUI().
|
inline |
Definition at line 28 of file lorademodsettings.h.
Referenced by LoRaDemodGUI::LoRaDemodGUI().
|
inline |
Definition at line 29 of file lorademodsettings.h.
References deserialize(), and serialize().
Referenced by LoRaDemodGUI::LoRaDemodGUI().
|
static |
Definition at line 23 of file lorademodsettings.h.
Referenced by LoRaDemodGUI::applySettings(), LoRaDemodGUI::displaySettings(), LoRaDemod::handleMessage(), LoRaDemod::LoRaDemod(), and LoRaDemodGUI::on_BW_valueChanged().
int LoRaDemodSettings::m_bandwidthIndex |
Definition at line 15 of file lorademodsettings.h.
Referenced by LoRaDemodGUI::applySettings(), deserialize(), LoRaDemodGUI::displaySettings(), LoRaDemod::handleMessage(), LoRaDemodGUI::on_BW_valueChanged(), resetToDefaults(), and serialize().
int LoRaDemodSettings::m_centerFrequency |
Definition at line 14 of file lorademodsettings.h.
Referenced by deserialize(), and serialize().
Serializable* LoRaDemodSettings::m_channelMarker |
Definition at line 20 of file lorademodsettings.h.
Referenced by deserialize(), and serialize().
uint32_t LoRaDemodSettings::m_rgbColor |
Definition at line 17 of file lorademodsettings.h.
Referenced by LoRaDemodGUI::displaySettings(), and resetToDefaults().
Serializable* LoRaDemodSettings::m_spectrumGUI |
Definition at line 21 of file lorademodsettings.h.
Referenced by deserialize(), and serialize().
int LoRaDemodSettings::m_spread |
Definition at line 16 of file lorademodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
QString LoRaDemodSettings::m_title |
Definition at line 18 of file lorademodsettings.h.
Referenced by deserialize(), LoRaDemod::getTitle(), resetToDefaults(), and serialize().
|
static |
Definition at line 24 of file lorademodsettings.h.
Referenced by LoRaDemodGUI::on_BW_valueChanged().