airspy / airspyone_host

AirSpy's usemode driver and associated tools
http://airspy.com
247 stars 88 forks source link

Airspy list devices #49

Closed MartinHerren closed 6 years ago

MartinHerren commented 6 years ago

Add an airspy_list_devices() function copied and adapted from airspyhf+

It also contains the PR2 I submitted to airspyhf+ to be able to pass NULL as serials to airpyhf_list_devices() to only get the number of devices.

This PR would close #48 (including the proposed improvement)

As I don't have an AirSpy to test it, this PR should first be tested with real AirSpy devices. I only faked an usb device to test it.

bvernoux commented 6 years ago

Thanks for the PR I need to check all build fine (and work fine too maybe adding an option in airspy_info) so far the code seems OK