Skip to content

Commit

Permalink
expanding VauxpVauxn into an array
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Aug 28, 2023
1 parent c9f42ce commit 8dc7775
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions python/surf/xilinx/_AxiSysMonUltraScale.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,17 @@ def addPair(name, offset, bitSize, units, bitOffset, description, function, poll
description = "Gain Offset",
)

addPair(
name = 'VauxpVauxn',
offset = 0x440,
bitSize = 12,
bitOffset = 4,
units = "V",
function = self.convAuxVoltage,
pollInterval = 5,
description = "VAUXP_VAUXN's ADC values",
)
for i in range(16):
addPair(
name = f'VauxpVauxn[{i}]',
offset = 0x440+(4*i),
bitSize = 12,
bitOffset = 4,
units = "V",
function = self.convAuxVoltage,
pollInterval = 5,
description = "VAUXP_VAUXN's ADC values",
)

addPair(
name = 'MaxTemperature',
Expand Down

0 comments on commit 8dc7775

Please sign in to comment.