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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user