Change in gr-gsm[master]: trx/radio_if.py: introduce a new @property 'ready'

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sat Jan 19 04:37:14 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/12633


Change subject: trx/radio_if.py: introduce a new @property 'ready'
......................................................................

trx/radio_if.py: introduce a new @property 'ready'

Change-Id: I513da0f45c6a608d15fbd0e8eafe14d6af8833d7
---
M python/trx/radio_if.py
1 file changed, 10 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/33/12633/1

diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index 93080c4..e15add2 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -259,6 +259,16 @@
 		self.stop()
 		self.wait()
 
+	@property
+	def ready(self):
+		# RX / TX frequencies shall be set
+		if self.rx_freq is None:
+			return False
+		if self.tx_freq is None:
+			return False
+
+		return True
+
 	def calc_phase_inc(self, fc):
 		return self.ppm / 1.0e6 * 2 * pi * fc / self.sample_rate
 

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

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I513da0f45c6a608d15fbd0e8eafe14d6af8833d7
Gerrit-Change-Number: 12633
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190119/fc721469/attachment.htm>


More information about the gerrit-log mailing list