RemoteRF 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {remoterf-0.0.1/src/remoteRF.egg-info → remoterf-0.0.2}/PKG-INFO +1 -1
- {remoterf-0.0.1 → remoterf-0.0.2}/setup.py +1 -1
- remoterf-0.0.2/src/remoteRF/drivers/__init__.py +0 -0
- remoterf-0.0.2/src/remoteRF/drivers/adalm_pluto/__init__.py +1 -0
- remoterf-0.0.2/src/remoteRF/drivers/adalm_pluto/pluto_remote.py +142 -0
- {remoterf-0.0.1 → remoterf-0.0.2/src/remoteRF.egg-info}/PKG-INFO +1 -1
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF.egg-info/SOURCES.txt +4 -1
- {remoterf-0.0.1 → remoterf-0.0.2}/LICENSE +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/README.md +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/setup.cfg +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/__init__.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/__init__.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/grpc/__init__.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/grpc/grpc_pb2.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/grpc/grpc_pb2_grpc.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/utils/__init__.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/utils/ansi_codes.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/utils/api_token.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/utils/list_string.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/common/utils/process_arg.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/core/__init__.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/core/acc_login.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/core/app.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/core/grpc_acc.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF/core/grpc_client.py +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF.egg-info/dependency_links.txt +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF.egg-info/entry_points.txt +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF.egg-info/requires.txt +0 -0
- {remoterf-0.0.1 → remoterf-0.0.2}/src/remoteRF.egg-info/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import pluto_remote as adi
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
from ...core.grpc_client import rpc_client
|
|
2
|
+
from ...common.utils import *
|
|
3
|
+
from ...common.grpc import grpc_pb2
|
|
4
|
+
|
|
5
|
+
class rx_def:
|
|
6
|
+
pass
|
|
7
|
+
|
|
8
|
+
class tx_def:
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
class rx_tx_def(rx_def, tx_def):
|
|
12
|
+
pass
|
|
13
|
+
|
|
14
|
+
class ad9364(rx_tx_def):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
class Pluto: # client
|
|
18
|
+
|
|
19
|
+
def __init__(self, token=''):
|
|
20
|
+
self.token = token
|
|
21
|
+
# self.try_set(function_name="ip", value=grpc_pb2.Argument(string_value=ip))
|
|
22
|
+
|
|
23
|
+
def api_token(self, token:str) -> None:
|
|
24
|
+
self.token = token
|
|
25
|
+
|
|
26
|
+
def try_get(self, *, function_name):
|
|
27
|
+
try:
|
|
28
|
+
return rpc_client(function_name=f"Pluto:{function_name}:GET", args={'a':map_arg(self.token)}).results[function_name]
|
|
29
|
+
except Exception as e:
|
|
30
|
+
input(f"Error: {e}\nHit enter to continue...")
|
|
31
|
+
return None
|
|
32
|
+
|
|
33
|
+
def try_set(self, *, function_name, value):
|
|
34
|
+
try:
|
|
35
|
+
rpc_client(function_name=f"Pluto:{function_name}:SET", args={function_name: value, 'a':map_arg(self.token)})
|
|
36
|
+
except Exception as e:
|
|
37
|
+
input(f"Error: {e}\nHit enter to continue...")
|
|
38
|
+
|
|
39
|
+
#region ad9364
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def filter(self):
|
|
43
|
+
return self.try_get(function_name="filter")
|
|
44
|
+
|
|
45
|
+
@filter.setter
|
|
46
|
+
def filter(self, value):
|
|
47
|
+
self.try_set(function_name="filter", value=grpc_pb2.Argument(int64_value=value))
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def loopback(self):
|
|
51
|
+
return self.try_get(function_name="loopback")
|
|
52
|
+
|
|
53
|
+
@loopback.setter
|
|
54
|
+
def loopback(self, value):
|
|
55
|
+
self.try_set(function_name="loopback", value=grpc_pb2.Argument(int64_value=value))
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def gain_control_mode_chan0(self):
|
|
59
|
+
return self.try_get(function_name="gain_control_mode_chan0")
|
|
60
|
+
|
|
61
|
+
@gain_control_mode_chan0.setter
|
|
62
|
+
def gain_control_mode_chan0(self, value):
|
|
63
|
+
self.try_set(function_name="gain_control_mode_chan0", value=grpc_pb2.Argument(int64_value=value))
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def rx_hardwaregain_chan0(self):
|
|
67
|
+
return self.try_get(function_name="rx_hardwaregain_chan0")
|
|
68
|
+
|
|
69
|
+
@rx_hardwaregain_chan0.setter
|
|
70
|
+
def rx_hardwaregain_chan0(self, value):
|
|
71
|
+
self.try_set(function_name="rx_hardwaregain_chan0", value=grpc_pb2.Argument(int64_value=value))
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def tx_hardwaregain_chan0(self):
|
|
75
|
+
return self.try_get(function_name="tx_hardwaregain_chan0")
|
|
76
|
+
|
|
77
|
+
@tx_hardwaregain_chan0.setter
|
|
78
|
+
def tx_hardwaregain_chan0(self, value):
|
|
79
|
+
self.try_set(function_name="tx_hardwaregain_chan0", value=grpc_pb2.Argument(int64_value=value))
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def rx_rf_bandwidth(self):
|
|
83
|
+
return unmap_arg(self.try_get(function_name="rx_rf_bandwidth"))
|
|
84
|
+
|
|
85
|
+
@rx_rf_bandwidth.setter
|
|
86
|
+
def rx_rf_bandwidth(self, value):
|
|
87
|
+
print("Setting RX RF Bandwidth")
|
|
88
|
+
self.try_set(function_name="rx_rf_bandwidth", value=grpc_pb2.Argument(int64_value=value))
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def tx_rf_bandwidth(self):
|
|
92
|
+
return self.try_get(function_name="tx_rf_bandwidth")
|
|
93
|
+
|
|
94
|
+
@tx_rf_bandwidth.setter
|
|
95
|
+
def tx_rf_bandwidth(self, value):
|
|
96
|
+
self.try_set(function_name="tx_rf_bandwidth", value=grpc_pb2.Argument(int64_value=value))
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def sample_rate(self):
|
|
100
|
+
return self.try_get(function_name="sample_rate")
|
|
101
|
+
|
|
102
|
+
@sample_rate.setter
|
|
103
|
+
def sample_rate(self, value):
|
|
104
|
+
self.try_set(function_name="sample_rate", value=grpc_pb2.Argument(int64_value=value))
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def rx_lo(self):
|
|
108
|
+
return self.try_get(function_name="rx_lo").int64_value
|
|
109
|
+
|
|
110
|
+
@rx_lo.setter
|
|
111
|
+
def rx_lo(self, value):
|
|
112
|
+
self.try_set(function_name="rx_lo", value=grpc_pb2.Argument(int64_value=value))
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def tx_lo(self):
|
|
116
|
+
return self.try_get(function_name="tx_lo").int64_value
|
|
117
|
+
|
|
118
|
+
@tx_lo.setter
|
|
119
|
+
def tx_lo(self, value):
|
|
120
|
+
self.try_set(function_name="tx_lo", value=grpc_pb2.Argument(int64_value=value))
|
|
121
|
+
|
|
122
|
+
#endregion
|
|
123
|
+
|
|
124
|
+
#region rx_def
|
|
125
|
+
|
|
126
|
+
def rx(self):
|
|
127
|
+
return unmap_arg(self.try_get(function_name="rx"))
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def rx_buffer_size(self):
|
|
131
|
+
return self.try_get(function_name="rx_buffer_size").int64_value
|
|
132
|
+
|
|
133
|
+
@rx_buffer_size.setter
|
|
134
|
+
def rx_buffer_size(self, value):
|
|
135
|
+
self.try_set(function_name="rx_buffer_size", value=grpc_pb2.Argument(int64_value=value))
|
|
136
|
+
|
|
137
|
+
#endregion
|
|
138
|
+
|
|
139
|
+
#region tx_def
|
|
140
|
+
|
|
141
|
+
#endregion
|
|
142
|
+
|
|
@@ -21,4 +21,7 @@ src/remoteRF/core/__init__.py
|
|
|
21
21
|
src/remoteRF/core/acc_login.py
|
|
22
22
|
src/remoteRF/core/app.py
|
|
23
23
|
src/remoteRF/core/grpc_acc.py
|
|
24
|
-
src/remoteRF/core/grpc_client.py
|
|
24
|
+
src/remoteRF/core/grpc_client.py
|
|
25
|
+
src/remoteRF/drivers/__init__.py
|
|
26
|
+
src/remoteRF/drivers/adalm_pluto/__init__.py
|
|
27
|
+
src/remoteRF/drivers/adalm_pluto/pluto_remote.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|