From 3ea9a7561f7aef4a2ca591056eb5268d55cf23a5 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Tue, 1 Oct 2024 08:17:31 -0700 Subject: [PATCH] adding TxDisable to _Qsfp.py --- python/surf/devices/transceivers/_Qsfp.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python/surf/devices/transceivers/_Qsfp.py b/python/surf/devices/transceivers/_Qsfp.py index 6ac1caf298..7b07959b99 100644 --- a/python/surf/devices/transceivers/_Qsfp.py +++ b/python/surf/devices/transceivers/_Qsfp.py @@ -124,6 +124,17 @@ def __init__(self,**kwargs): dependencies = [self.TxPwrRaw[2*i+0],self.TxPwrRaw[2*i+1]], )) + for i in range(4): + self.add(pr.RemoteVariable( + name = f'TxDisable[{i}]', + description = 'Tx_Disable bit that allows software disable of transmitters, Writing 1 disables the laser of the channel', + offset = (86 << 2), + bitSize = 1, + bitOffset = i, + mode = 'RW', + base = pr.Bool, + )) + ################ # Upper Page 00h ################