From ca50c0f64f1b2fce46b4cb83ed111854bac13852 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Fri, 1 Nov 2024 08:38:25 +0000 Subject: rtlsdr library example compiles --- Radio/Utils/TestRtlSdr/main.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Radio/Utils/TestRtlSdr/main.swift (limited to 'Radio/Utils/TestRtlSdr/main.swift') 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() + -- cgit v1.2.3