1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

Airspy: implemented LNA and Mixer AGC controls

This commit is contained in:
f4exb
2015-12-09 01:49:46 +01:00
parent fa2d9aecf5
commit 2a194ca44e
6 changed files with 93 additions and 7 deletions
@@ -31,6 +31,8 @@ void AirspySettings::resetToDefaults()
m_lnaGain = 14;
m_mixerGain = 15;
m_vgaGain = 4;
m_lnaAGC = false;
m_mixerAGC = false;
m_log2Decim = 0;
m_fcPos = FC_POS_CENTER;
m_biasT = false;
@@ -52,6 +54,8 @@ QByteArray AirspySettings::serialize() const
s.writeBool(8, m_biasT);
s.writeBool(9, m_dcBlock);
s.writeBool(10, m_iqCorrection);
s.writeBool(11, m_lnaAGC);
s.writeBool(12, m_mixerAGC);
return s.final();
}
@@ -81,6 +85,8 @@ bool AirspySettings::deserialize(const QByteArray& data)
d.readBool(8, &m_biasT, false);
d.readBool(9, &m_dcBlock, false);
d.readBool(10, &m_iqCorrection, false);
d.readBool(11, &m_lnaAGC, false);
d.readBool(12, &m_mixerAGC, false);
return true;
}