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

HackRF input: link Tx frequency button and setting

This commit is contained in:
f4exb
2017-07-20 23:34:12 +02:00
parent 258515b5de
commit 5dac0b6712
8 changed files with 30 additions and 2 deletions
@@ -39,6 +39,7 @@ void HackRFInputSettings::resetToDefaults()
m_dcBlock = false;
m_iqCorrection = false;
m_devSampleRate = 2400000;
m_linkTxFrequency = false;
}
QByteArray HackRFInputSettings::serialize() const
@@ -56,6 +57,7 @@ QByteArray HackRFInputSettings::serialize() const
s.writeBool(10, m_dcBlock);
s.writeBool(11, m_iqCorrection);
s.writeU64(12, m_devSampleRate);
s.writeBool(13, m_linkTxFrequency);
return s.final();
}
@@ -86,6 +88,7 @@ bool HackRFInputSettings::deserialize(const QByteArray& data)
d.readBool(10, &m_dcBlock, false);
d.readBool(11, &m_iqCorrection, false);
d.readU64(12, &m_devSampleRate, 2400000U);
d.readBool(11, &m_linkTxFrequency, false);
return true;
}