mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Import USRP support.
Add LO offset support. Only set tx/rx_bandwidth after getting tx stream, to reduce TX LO leakage for <10MHz bandwidths. Check for reference and LO lock before getting streams.
This commit is contained in:
@@ -29,8 +29,9 @@ void USRPOutputSettings::resetToDefaults()
|
||||
{
|
||||
m_centerFrequency = 435000*1000;
|
||||
m_devSampleRate = 3000000;
|
||||
m_loOffset = 0;
|
||||
m_log2SoftInterp = 0;
|
||||
m_lpfBW = 5.5e6f;
|
||||
m_lpfBW = 10e6f;
|
||||
m_gain = 50;
|
||||
m_antennaPath = "TX/RX";
|
||||
m_clockSource = "internal";
|
||||
@@ -58,6 +59,7 @@ QByteArray USRPOutputSettings::serialize() const
|
||||
s.writeString(10, m_reverseAPIAddress);
|
||||
s.writeU32(11, m_reverseAPIPort);
|
||||
s.writeU32(12, m_reverseAPIDeviceIndex);
|
||||
s.writeS32(13, m_loOffset);
|
||||
|
||||
return s.final();
|
||||
}
|
||||
@@ -97,6 +99,7 @@ bool USRPOutputSettings::deserialize(const QByteArray& data)
|
||||
|
||||
d.readU32(12, &uintval, 0);
|
||||
m_reverseAPIDeviceIndex = uintval > 99 ? 99 : uintval;
|
||||
d.readS32(13, &m_loOffset, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user