aboutsummaryrefslogtreecommitdiffstats
path: root/python/trx/radio_if.py
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-01-19 12:14:28 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-01-22 14:41:30 +0700
commitdbb3daae1a7b74235db6d6c1127fcef8c1f0e637 (patch)
tree40aff437d4c59d3f942e5ddbb5e0af3b2a647294 /python/trx/radio_if.py
parent89e1ad11380f2c20e8da76e861d28a6b886eb977 (diff)
trx/radio_if.py: print type of RadioInterface
Diffstat (limited to 'python/trx/radio_if.py')
-rw-r--r--python/trx/radio_if.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index 41d20fd..235c0a1 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -65,14 +65,18 @@ class RadioInterface(gr.top_block):
# basically, the DL freq. of ARFCN 0
DUMMY_FREQ = 935e6
+ # Human-readable description
+ def __str__(self):
+ return "(generic)"
+
def __init__(self, phy_args, phy_sample_rate,
phy_rx_gain, phy_tx_gain, phy_ppm,
phy_rx_antenna, phy_tx_antenna,
phy_freq_offset, trx_bind_addr,
trx_remote_addr, trx_base_port):
- print("[i] Init Radio interface (L:%s:%u <-> R:%s:%u)"
- % (trx_bind_addr, trx_base_port + 2,
+ print("[i] Init %s Radio interface (L:%s:%u <-> R:%s:%u)"
+ % (self, trx_bind_addr, trx_base_port + 2,
trx_remote_addr, trx_base_port + 102))
# PHY specific variables