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

PlutoSDR input: implement control of hardware DC and IQ corrections

This commit is contained in:
f4exb
2019-07-25 13:57:24 +02:00
parent a40bc0affe
commit 1255784b7f
301 changed files with 494 additions and 311 deletions
@@ -35,6 +35,9 @@ void PlutoSDRInputSettings::resetToDefaults()
m_devSampleRate = 2500 * 1000;
m_dcBlock = false;
m_iqCorrection = false;
m_hwBBDCBlock = true;
m_hwRFDCBlock = true;
m_hwIQCorrection = true;
m_lpfBW = 1500000;
m_lpfFIREnable = false;
m_lpfFIRBW = 500000U;
@@ -76,6 +79,9 @@ QByteArray PlutoSDRInputSettings::serialize() const
s.writeString(19, m_reverseAPIAddress);
s.writeU32(20, m_reverseAPIPort);
s.writeU32(21, m_reverseAPIDeviceIndex);
s.writeBool(22, m_hwBBDCBlock);
s.writeBool(23, m_hwRFDCBlock);
s.writeBool(24, m_hwIQCorrection);
return s.final();
}
@@ -144,6 +150,10 @@ bool PlutoSDRInputSettings::deserialize(const QByteArray& data)
d.readU32(21, &uintval, 0);
m_reverseAPIDeviceIndex = uintval > 99 ? 99 : uintval;
d.readBool(22, &m_hwBBDCBlock, true);
d.readBool(23, &m_hwRFDCBlock, true);
d.readBool(24, &m_hwIQCorrection, true);
return true;
}
else