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/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/19227 ) Change subject: trx_toolkit/clck_gen.py: support optional clock handler ...................................................................... trx_toolkit/clck_gen.py: support optional clock handler Change-Id: I85b2182d9835ed035cf370e45ea039ac6a7e8405 --- M src/target/trx_toolkit/clck_gen.py 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/27/19227/1 diff --git a/src/target/trx_toolkit/clck_gen.py b/src/target/trx_toolkit/clck_gen.py index 62b6b1d..f95180d 100755 --- a/src/target/trx_toolkit/clck_gen.py +++ b/src/target/trx_toolkit/clck_gen.py @@ -54,6 +54,9 @@ self.ctr_interval = self.GSM_FRAME_US - self.LO_DELAY_US self.ctr_interval /= self.SEC_DELAY_US + # (Optional) clock consumer + self.clck_handler = None + @property def running(self): if self._thread is None: @@ -107,6 +110,9 @@ # Debug print log.debug(payload.rstrip("\0")) + if self.clck_handler is not None: + self.clck_handler(self.clck_src) + # Increase frame count self.clck_src += 1 -- To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/19227 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmocom-bb Gerrit-Branch: master Gerrit-Change-Id: I85b2182d9835ed035cf370e45ea039ac6a7e8405 Gerrit-Change-Number: 19227 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200712/0c0a14ec/attachment.htm>