1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

RTL-SDR: implemented tuner bandwidth control

This commit is contained in:
f4exb
2018-01-16 01:01:24 +01:00
parent bb799a9785
commit 6800bc769e
8 changed files with 79 additions and 4 deletions
@@ -38,6 +38,7 @@ void RTLSDRSettings::resetToDefaults()
m_noModMode = false;
m_transverterMode = false;
m_transverterDeltaFrequency = 0;
m_rfBandwidth = 2500 * 1000; // Hz
}
QByteArray RTLSDRSettings::serialize() const
@@ -56,6 +57,7 @@ QByteArray RTLSDRSettings::serialize() const
s.writeBool(11, m_noModMode);
s.writeBool(12, m_transverterMode);
s.writeS64(13, m_transverterDeltaFrequency);
s.writeU32(14, m_rfBandwidth);
return s.final();
}
@@ -87,6 +89,7 @@ bool RTLSDRSettings::deserialize(const QByteArray& data)
d.readBool(11, &m_noModMode, false);
d.readBool(12, &m_transverterMode, false);
d.readS64(13, &m_transverterDeltaFrequency, 0);
d.readU32(4, &m_rfBandwidth, 2500 * 1000);
return true;
}