blob: c3b70d6b5600607c27bd5029e55703672ae20873 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
// main.swift
// PrySDR
//
// Created by Jacky Jack on 20/10/2024.
//
import Foundation
import ArgumentParser
import libr820
import libairspy
import libairspyhf
import libbladerf
print("PrySDR")
print("We will start soon on exploring things \(software_version)")
print("Detect RtlSdr")
let countRtlSdr = getDeviceCount()
print("Found \(countRtlSdr) r820 devices")
print("Detect AirSpy")
print("Detect AirSpyHF")
let countAirSpyHF = airspyhf_list_devices(nil, 0)
print("Found \(countAirSpyHF) AirSpyHF devices")
if countAirSpyHF < 0 {
exit(0)
}
print("Detect BladeRF")
|