Well the right way to do it is as follows:
Iterate through the list of gains listGains():
https://github.com/pothosware/SoapyRTLSDR/blob/master/Settings.cpp#L208
And call getGainRange for each element in listGains:
https://github.com/pothosware/SoapyRTLSDR/blob/master/Settings.cpp#L312
I dont know if the implementation is 100% correct for every rtl
variant.
Of course is something is missing, dont hesitate to open an issue
or PR :-)
-Josh
Giuseppe--
You received this message because you are subscribed to the Google Groups "Pothos Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pothos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pothos-users/db479f8a-259f-48e0-aa13-c6995574fae5n%40googlegroups.com.