aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2018-09-13 14:41:06 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2018-09-13 15:35:44 +0200
commit11583adb9dc69cd9ad4bdfd8c651937e4cbea136 (patch)
tree3fe9ce50e90d6a5535e5e6ce0549f47b35f33048
parent492f48c7d33838a56acb558a816765fb541b04f4 (diff)
trx/radio_if: add freq_offset parameter to constructor
-rwxr-xr-xapps/grgsm_trx4
-rw-r--r--python/trx/radio_if.py5
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/grgsm_trx b/apps/grgsm_trx
index d57c979..5c3dace 100755
--- a/apps/grgsm_trx
+++ b/apps/grgsm_trx
@@ -63,8 +63,8 @@ class Application:
self.radio = radio_if(self.phy_args, self.phy_sample_rate,
self.phy_rx_gain, self.phy_tx_gain, self.phy_ppm,
self.phy_rx_antenna, self.phy_tx_antenna,
- self.bind_addr, self.remote_addr,
- self.base_port)
+ self.phy_freq_offset_hz, self.bind_addr,
+ self.remote_addr, self.base_port)
# Optional frequency offset
if self.phy_freq_offset_hz is not None:
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index f7f124f..11f1d40 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -86,8 +86,8 @@ class radio_if(gr.top_block):
def __init__(self, phy_args, phy_sample_rate,
phy_rx_gain, phy_tx_gain, phy_ppm,
phy_rx_antenna, phy_tx_antenna,
- trx_bind_addr, trx_remote_addr,
- trx_base_port):
+ phy_freq_offset_hz, 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,
@@ -98,6 +98,7 @@ class radio_if(gr.top_block):
self.rx_gain = phy_rx_gain
self.tx_gain = phy_tx_gain
self.ppm = phy_ppm
+ self.freq_offset_hz = phy_freq_offset_hz
gr.top_block.__init__(self, "GR-GSM TRX")