1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

SoapySDR support: input: AGC GUI

This commit is contained in:
f4exb
2018-11-08 01:31:39 +01:00
parent 59c8ecd2d0
commit f97091e0f3
7 changed files with 58 additions and 10 deletions
@@ -40,6 +40,7 @@ void SoapySDRInputSettings::resetToDefaults()
m_antenna = "NONE";
m_bandwidth = 1000000;
m_globalGain = 0;
m_autoGain = false;
}
QByteArray SoapySDRInputSettings::serialize() const
@@ -59,6 +60,7 @@ QByteArray SoapySDRInputSettings::serialize() const
s.writeBlob(11, serializeNamedElementMap(m_tunableElements));
s.writeS32(12, m_globalGain);
s.writeBlob(13, serializeNamedElementMap(m_individualGains));
s.writeBool(14, m_autoGain);
return s.final();
}
@@ -94,6 +96,7 @@ bool SoapySDRInputSettings::deserialize(const QByteArray& data)
d.readS32(12, &m_globalGain, 0);
d.readBlob(13, &blob);
deserializeNamedElementMap(blob, m_individualGains);
d.readBool(14, &m_autoGain, false);
return true;
}