Skip to content

Commit

Permalink
adding PowerOverride & PowerMode registers
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Oct 1, 2024
1 parent 3ea9a75 commit 56ad103
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions python/surf/devices/transceivers/_Qsfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,26 @@ def __init__(self,**kwargs):
base = pr.Bool,
))

self.add(pr.RemoteVariable(
name = 'PowerOverride',
description = '1: allows setting power mode with hardware, 0: allows setting power mode with software',
offset = (93 << 2),
bitSize = 1,
bitOffset = 0,
mode = 'RW',
base = pr.Bool,
))

self.add(pr.RemoteVariable(
name = 'PowerMode',
description = 'Power set to low power mode: 1 sets to LP mode if PowerOverride is 0',
offset = (93 << 2),
bitSize = 1,
bitOffset = 1,
mode = 'RW',
base = pr.Bool,
))

################
# Upper Page 00h
################
Expand Down

0 comments on commit 56ad103

Please sign in to comment.