Change in gr-gsm[master]: trx/radio_if: add freq_offset parameter to constructor

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Piotr Krysik gerrit-no-reply at lists.osmocom.org
Thu Sep 13 12:57:28 UTC 2018


Piotr Krysik has submitted this change and it was merged. ( https://gerrit.osmocom.org/10929 )

Change subject: trx/radio_if: add freq_offset parameter to constructor
......................................................................

trx/radio_if: add freq_offset parameter to constructor

Change-Id: Ie1db02b719a0fec478b8a8b8a95643fb10fdfce5
---
M apps/grgsm_trx
M python/trx/radio_if.py
2 files changed, 5 insertions(+), 4 deletions(-)

Approvals:
  Piotr Krysik: Looks good to me, approved; Verified



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 @@
 		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 @@
 	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 @@
 		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")
 

-- 
To view, visit https://gerrit.osmocom.org/10929
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie1db02b719a0fec478b8a8b8a95643fb10fdfce5
Gerrit-Change-Number: 10929
Gerrit-PatchSet: 1
Gerrit-Owner: Piotr Krysik <ptrkrysik at gmail.com>
Gerrit-Reviewer: Piotr Krysik <ptrkrysik at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180913/40d7c2fa/attachment.htm>


More information about the gerrit-log mailing list