aboutsummaryrefslogtreecommitdiffstats
path: root/apps/grgsm_trx
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-10-17 07:21:59 +0700
committerPiotr Krysik <ptrkrysik@users.noreply.github.com>2017-11-05 17:33:26 +0100
commitba7ad29638ecb08af8c7a38dc98c8da715a5fcde (patch)
tree51a4609a16d8faebebd3f7b510d2126ab59ce835 /apps/grgsm_trx
parenteecab7eaf4516da814c50b269a727c070f0a636e (diff)
apps/grgsm_trx: import helper classes from grgsm.trx
Diffstat (limited to 'apps/grgsm_trx')
-rwxr-xr-xapps/grgsm_trx12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/grgsm_trx b/apps/grgsm_trx
index fbc9350..a5cb1ee 100755
--- a/apps/grgsm_trx
+++ b/apps/grgsm_trx
@@ -25,9 +25,9 @@ import signal
import getopt
import sys
-from ctrl_if_bb import CTRLInterfaceBB
-from radio_if import RadioInterface
-from fake_pm import FakePM
+from grgsm.trx import ctrl_if_bb
+from grgsm.trx import radio_if
+from grgsm.trx import fake_pm
COPYRIGHT = \
"Copyright (C) 2016-2017 by Vadim Yanitskiy <axilirator@gmail.com>\n" \
@@ -57,17 +57,17 @@ class Application:
def run(self):
# Init Radio interface
- self.radio = RadioInterface(self.phy_args, self.phy_subdev_spec,
+ self.radio = radio_if(self.phy_args, self.phy_subdev_spec,
self.phy_sample_rate, self.phy_gain, self.phy_ppm,
self.remote_addr, self.base_port)
# Power measurement emulation
# Noise: -120 .. -105
# BTS: -75 .. -50
- self.pm = FakePM(-120, -105, -75, -50)
+ self.pm = fake_pm(-120, -105, -75, -50)
# Init TRX CTRL interface
- self.server = CTRLInterfaceBB(self.remote_addr,
+ self.server = ctrl_if_bb(self.remote_addr,
self.base_port + 101, self.base_port + 1,
self.radio, self.pm)