pothosware / SoapyRemote

Use any Soapy SDR remotely
https://github.com/pothosware/SoapyRemote/wiki
Boost Software License 1.0
120 stars 22 forks source link

Fix the scale in CS12 - CF32 conversion #65

Closed zuckschwerdt closed 5 years ago

zuckschwerdt commented 5 years ago

CS12 will have a full scale of 2048 or less. The intermediate step to CS16 raises the scale by 16 to e.g. 32768. The float scaling is corrected for this.

We keep the MSB alignment from CS12 to CS16 otherwise a sign-extend would be needed. Hence we can't keep the existing CS12 scale for CS16, and need the float scale correction by 16.0 (4 bits)

S.a. https://github.com/pothosware/SoapyPlutoSDR/pull/19