blob: 4725291ca51d8bab501a83b1d49ae64b9c38bb5c (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
//
// IQ.swift
// PrySDR
//
// Created by Jacky Jack on 22/10/2024.
//
/// Data type for raw binary digital data that comes from SDR devices.
/// In range of 8 to 16bit RTLSDR is the lowest you can get 16bit is what you can max you can get for reasonable money
struct IQ {
var size:UInt8
var bits:UInt8
var sign:Bool
var complex:Bool
init(size: UInt8, bits: UInt8, sign: Bool, complex: Bool) {
self.size = size
self.bits = bits
self.sign = sign
self.complex = complex
}
func conv(_ d: Double) -> UInt8 {
return 0
}
func conv(_ d: UInt8) -> Double {
return 0
}
func conv(_ d: Double) -> Int8 {
return 0
}
func conv(_ d: Int8) -> Double {
return 0
}
func conv(_ d: Double) -> UInt16 {
return 0
}
func conv(_ d: UInt16) -> Double {
return 0
}
func conv(_ d: Double) -> Int16 {
return 0
}
func conv(_ d: Int16) -> Double {
return 0
}
func conv(_ d: Float) -> UInt8 {
return 0
}
func conv(_ d: UInt8) -> Float {
return 0
}
func conv(_ d: Float) -> Int8 {
return 0
}
func conv(_ d: Int8) -> Float {
return 0
}
func conv(_ d: Float) -> UInt16 {
return 0
}
func conv(_ d: UInt16) -> Float {
return 0
}
func conv(_ d: Float) -> Int16 {
return 0
}
func conv(_ d: Int16) -> Float {
return 0
}
/*
func conv(_ d: UInt8) -> Int8 {
return 0
}
func conv(_ d: Int8) -> UInt8 {
}
func conv(_ d:)
*/
}
|