From cf4444e7390365df43ecbd3d130015c1e06ef88f Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Sun, 3 Nov 2024 15:56:55 +0000 Subject: BladeRF library compiles --- Radio/Utils/TestAirSpy.swift | 7 ------- Radio/Utils/TestAirSpy/main.swift | 13 +++++++++++++ Radio/Utils/TestAirSpyHF.swift | 7 ------- Radio/Utils/TestAirSpyHF/main.swift | 15 +++++++++++++++ Radio/Utils/TestBladeRF.swift | 7 ------- Radio/Utils/TestBladeRF/main.swift | 17 +++++++++++++++++ Radio/Utils/TestRtlSdr/main.swift | 1 - 7 files changed, 45 insertions(+), 22 deletions(-) delete mode 100644 Radio/Utils/TestAirSpy.swift create mode 100644 Radio/Utils/TestAirSpy/main.swift delete mode 100644 Radio/Utils/TestAirSpyHF.swift create mode 100644 Radio/Utils/TestAirSpyHF/main.swift delete mode 100644 Radio/Utils/TestBladeRF.swift create mode 100644 Radio/Utils/TestBladeRF/main.swift (limited to 'Radio/Utils') 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) -- cgit v1.2.3