summaryrefslogtreecommitdiffstats
path: root/src/target/trx_toolkit/transceiver.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/trx_toolkit/transceiver.py')
-rw-r--r--src/target/trx_toolkit/transceiver.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/transceiver.py b/src/target/trx_toolkit/transceiver.py
index 6c72a26f..9c234fd4 100644
--- a/src/target/trx_toolkit/transceiver.py
+++ b/src/target/trx_toolkit/transceiver.py
@@ -90,7 +90,7 @@ class Transceiver:
"""
- def __init__(self, bind_addr, remote_addr, base_port,
+ def __init__(self, bind_addr, remote_addr, base_port, name = None,
child_idx = 0, clck_gen = None, pwr_meas = None):
# Connection info
self.remote_addr = remote_addr
@@ -98,6 +98,9 @@ class Transceiver:
self.base_port = base_port
self.child_idx = child_idx
+ # Meta info
+ self.name = name
+
log.info("Init transceiver '%s'" % self)
# Child transceiver cannot have its own clock
@@ -141,6 +144,8 @@ class Transceiver:
desc = "%s:%d" % (self.remote_addr, self.base_port)
if self.child_idx > 0:
desc += "/%d" % self.child_idx
+ if self.name is not None:
+ desc = "%s@%s" % (self.name, desc)
return desc