summaryrefslogtreecommitdiff
path: root/Radio/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'Radio/Utils')
-rw-r--r--Radio/Utils/TestAirSpy.swift7
-rw-r--r--Radio/Utils/TestAirSpy/main.swift13
-rw-r--r--Radio/Utils/TestAirSpyHF.swift7
-rw-r--r--Radio/Utils/TestAirSpyHF/main.swift15
-rw-r--r--Radio/Utils/TestBladeRF.swift7
-rw-r--r--Radio/Utils/TestBladeRF/main.swift17
-rw-r--r--Radio/Utils/TestRtlSdr/main.swift1
7 files changed, 45 insertions, 22 deletions
diff --git a/Radio/Utils/TestAirSpy.swift b/Radio/Utils/TestAirSpy.swift
deleted file mode 100644
index 2a60862..0000000
--- a/Radio/Utils/TestAirSpy.swift
+++ /dev/null
@@ -1,7 +0,0 @@
-//
-// TestAirSpy.swift
-// PrySDR
-//
-// Created by Jacky Jack on 25/10/2024.
-//
-
diff --git a/Radio/Utils/TestAirSpy/main.swift b/Radio/Utils/TestAirSpy/main.swift
new file mode 100644
index 0000000..8ec4ede
--- /dev/null
+++ b/Radio/Utils/TestAirSpy/main.swift
@@ -0,0 +1,13 @@
+//
+// main.swift
+// TestAirSpy
+//
+// Created by Jacky Jack on 01/11/2024.
+//
+
+import Foundation
+import libairspy
+
+
+print("Hello, World!")
+airspy_init()
diff --git a/Radio/Utils/TestAirSpyHF.swift b/Radio/Utils/TestAirSpyHF.swift
deleted file mode 100644
index 86d093c..0000000
--- a/Radio/Utils/TestAirSpyHF.swift
+++ /dev/null
@@ -1,7 +0,0 @@
-//
-// TestAirSpyHF.swift
-// PrySDR
-//
-// Created by Jacky Jack on 25/10/2024.
-//
-
diff --git a/Radio/Utils/TestAirSpyHF/main.swift b/Radio/Utils/TestAirSpyHF/main.swift
new file mode 100644
index 0000000..24a74f8
--- /dev/null
+++ b/Radio/Utils/TestAirSpyHF/main.swift
@@ -0,0 +1,15 @@
+//
+// main.swift
+// TestAirSpyHF
+//
+// Created by Jacky Jack on 01/11/2024.
+//
+
+import Foundation
+import libairspyhf
+
+print("Hello, World!")
+var libersion:airspyhf_lib_version_t = airspyhf_lib_version_t()
+
+airspyhf_lib_version(&libersion)
+print("\(libersion.major_version)")
diff --git a/Radio/Utils/TestBladeRF.swift b/Radio/Utils/TestBladeRF.swift
deleted file mode 100644
index b71b5b0..0000000
--- a/Radio/Utils/TestBladeRF.swift
+++ /dev/null
@@ -1,7 +0,0 @@
-//
-// TestBladeRF.swift
-// PrySDR
-//
-// Created by Jacky Jack on 25/10/2024.
-//
-
diff --git a/Radio/Utils/TestBladeRF/main.swift b/Radio/Utils/TestBladeRF/main.swift
new file mode 100644
index 0000000..f728832
--- /dev/null
+++ b/Radio/Utils/TestBladeRF/main.swift
@@ -0,0 +1,17 @@
+//
+// main.swift
+// TestBladeRF
+//
+// Created by Jacky Jack on 01/11/2024.
+//
+
+import Foundation
+import libbladerf
+
+print("Hello, World!")
+
+var version:bladerf_version = bladerf_version()
+bladerf_version(&version)
+print("BladeRF version: \(version.major) \(version.minor) \(version.patch) \(version.describe)")
+
+
diff --git a/Radio/Utils/TestRtlSdr/main.swift b/Radio/Utils/TestRtlSdr/main.swift
index 86a66ee..7b10d05 100644
--- a/Radio/Utils/TestRtlSdr/main.swift
+++ b/Radio/Utils/TestRtlSdr/main.swift
@@ -8,7 +8,6 @@
import Foundation
import libr820
-
let rtldev = R820Tuner()
let count = rtldev.getDeviceCount()
rtldev.open(index: 0)