add airspy support (untested for now)

This commit is contained in:
Jakob Ketterl
2019-06-07 15:44:11 +02:00
parent a85a6c694c
commit e422ca4d9b
3 changed files with 13 additions and 2 deletions

View File

@ -12,7 +12,8 @@ class FeatureDetector(object):
"core": [ "csdr", "nmux" ],
"rtl_sdr": [ "rtl_sdr" ],
"sdrplay": [ "rx_tools" ],
"hackrf": [ "hackrf_transfer" ]
"hackrf": [ "hackrf_transfer" ],
"airspy": [ "airspy_rx" ]
}
def is_available(self, feature):
@ -63,3 +64,6 @@ class FeatureDetector(object):
# TODO i don't have a hackrf, so somebody doublecheck this.
# TODO also check if it has the stdout feature
return os.system("hackrf_transfer --help 2> /dev/null") != 32512
def has_airspy_rx(self):
return os.system("airspy_rx --help 2> /dev/null") != 32512