summaryrefslogtreecommitdiff
path: root/Radio/Utils/TestRtlSdr/main.swift
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-01 08:38:25 +0000
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-01 08:38:25 +0000
commitca50c0f64f1b2fce46b4cb83ed111854bac13852 (patch)
tree92713a6fb08559f6f7ddd4e03781572eba0a7f02 /Radio/Utils/TestRtlSdr/main.swift
parente3a7f5bafec6715cd11555c39925665c78029dd9 (diff)
downloadPrySDR-ca50c0f64f1b2fce46b4cb83ed111854bac13852.tar.gz
PrySDR-ca50c0f64f1b2fce46b4cb83ed111854bac13852.zip
rtlsdr library example compiles
Diffstat (limited to 'Radio/Utils/TestRtlSdr/main.swift')
-rw-r--r--Radio/Utils/TestRtlSdr/main.swift16
1 files changed, 16 insertions, 0 deletions
diff --git a/Radio/Utils/TestRtlSdr/main.swift b/Radio/Utils/TestRtlSdr/main.swift
new file mode 100644
index 0000000..86a66ee
--- /dev/null
+++ b/Radio/Utils/TestRtlSdr/main.swift
@@ -0,0 +1,16 @@
+//
+// main.swift
+// TestRtlSdr
+//
+// Created by Jacky Jack on 01/11/2024.
+//
+
+import Foundation
+import libr820
+
+
+let rtldev = R820Tuner()
+let count = rtldev.getDeviceCount()
+rtldev.open(index: 0)
+rtldev.close()
+