diff options
author | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2024-11-28 11:37:28 +0000 |
---|---|---|
committer | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2024-11-28 11:37:28 +0000 |
commit | 77d1cfc27fb72e442b8d8e5cbe2be143723724e5 (patch) | |
tree | c42913e5fa3f2c0c23c9eeadd61c39f2a317a206 /Radio/Utils/TestRtlSdr | |
parent | cf4444e7390365df43ecbd3d130015c1e06ef88f (diff) | |
download | PrySDR-77d1cfc27fb72e442b8d8e5cbe2be143723724e5.tar.gz PrySDR-77d1cfc27fb72e442b8d8e5cbe2be143723724e5.zip |
RtlSdrIQ: read samples from device. Using command line arguments
Diffstat (limited to 'Radio/Utils/TestRtlSdr')
-rw-r--r-- | Radio/Utils/TestRtlSdr/main.swift | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Radio/Utils/TestRtlSdr/main.swift b/Radio/Utils/TestRtlSdr/main.swift index 7b10d05..39e1c06 100644 --- a/Radio/Utils/TestRtlSdr/main.swift +++ b/Radio/Utils/TestRtlSdr/main.swift @@ -8,8 +8,14 @@ import Foundation import libr820 -let rtldev = R820Tuner() -let count = rtldev.getDeviceCount() -rtldev.open(index: 0) -rtldev.close() + +let count = getDeviceCount() +print("Found \(count) r820 devices") +//rtldev.open(index: 0) +//rtldev.close() +for dev_idx in 0..<count { + let rtldev = R820Tuner() + rtldev.open(index: dev_idx) + rtldev.close() +} |