mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-05 23:45:00 -04:00
LimeSDR output: implemented antenna select
This commit is contained in:
@@ -35,6 +35,7 @@ void LimeSDROutputSettings::resetToDefaults()
|
||||
m_gain = 30;
|
||||
m_ncoEnable = false;
|
||||
m_ncoFrequency = 0;
|
||||
m_antennaPath = PATH_RFE_NONE;
|
||||
}
|
||||
|
||||
QByteArray LimeSDROutputSettings::serialize() const
|
||||
@@ -50,6 +51,7 @@ QByteArray LimeSDROutputSettings::serialize() const
|
||||
s.writeU32(10, m_gain);
|
||||
s.writeBool(11, m_ncoEnable);
|
||||
s.writeS32(12, m_ncoFrequency);
|
||||
s.writeS32(13, (int) m_antennaPath);
|
||||
|
||||
return s.final();
|
||||
}
|
||||
@@ -77,6 +79,8 @@ bool LimeSDROutputSettings::deserialize(const QByteArray& data)
|
||||
d.readU32(10, &m_gain, 0);
|
||||
d.readBool(11, &m_ncoEnable, false);
|
||||
d.readS32(12, &m_ncoFrequency, 0);
|
||||
d.readS32(13, &intval, 0);
|
||||
m_antennaPath = (PathRFE) intval;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user