summaryrefslogtreecommitdiff
path: root/Radio/HW/AirSpy
diff options
context:
space:
mode:
Diffstat (limited to 'Radio/HW/AirSpy')
-rw-r--r--Radio/HW/AirSpy/AirSpy.swift5
-rw-r--r--Radio/HW/AirSpy/src/libairspy-Bridging-Header.h5
-rw-r--r--Radio/HW/AirSpy/src/test.swift9
3 files changed, 18 insertions, 1 deletions
diff --git a/Radio/HW/AirSpy/AirSpy.swift b/Radio/HW/AirSpy/AirSpy.swift
index 1db0cd6..5b1b109 100644
--- a/Radio/HW/AirSpy/AirSpy.swift
+++ b/Radio/HW/AirSpy/AirSpy.swift
@@ -4,8 +4,11 @@
//
// Created by Jacky Jack on 25/10/2024.
//
+import libairspy
/// Wrapper for libairspy library
class AirSpy {
-
+ init() {
+ airspy_init()
+ }
}
diff --git a/Radio/HW/AirSpy/src/libairspy-Bridging-Header.h b/Radio/HW/AirSpy/src/libairspy-Bridging-Header.h
new file mode 100644
index 0000000..7c8b17a
--- /dev/null
+++ b/Radio/HW/AirSpy/src/libairspy-Bridging-Header.h
@@ -0,0 +1,5 @@
+//
+// Use this file to import your target's public headers that you would like to expose to Swift.
+//
+
+#include "./airspy.h"
diff --git a/Radio/HW/AirSpy/src/test.swift b/Radio/HW/AirSpy/src/test.swift
new file mode 100644
index 0000000..b839902
--- /dev/null
+++ b/Radio/HW/AirSpy/src/test.swift
@@ -0,0 +1,9 @@
+//
+// test.swift
+// PrySDR
+//
+// Created by Jacky Jack on 01/11/2024.
+//
+
+import Foundation
+