summaryrefslogtreecommitdiff
path: root/Radio/Utils/TestRtlSdr/main.swift
blob: 39e1c069beb4a46994fa69599a7ed4d4cf267694 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
//  main.swift
//  TestRtlSdr
//
//  Created by Jacky Jack on 01/11/2024.
//

import Foundation
import libr820


let count = getDeviceCount()
print("Found \(count) r820 devices")
//rtldev.open(index: 0)
//rtldev.close()
for dev_idx in 0..<count {
    let rtldev = R820Tuner()
    rtldev.open(index: dev_idx)
    rtldev.close()
}