summaryrefslogtreecommitdiff
path: root/Radio/Utils
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-03 15:56:55 +0000
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-03 15:56:55 +0000
commitcf4444e7390365df43ecbd3d130015c1e06ef88f (patch)
tree8a6eb114135a04d5efd5af213577b4fac47532ae /Radio/Utils
parentca50c0f64f1b2fce46b4cb83ed111854bac13852 (diff)
downloadPrySDR-cf4444e7390365df43ecbd3d130015c1e06ef88f.tar.gz
PrySDR-cf4444e7390365df43ecbd3d130015c1e06ef88f.zip
BladeRF library compiles
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)