Skip to content

VTRX+ reg map fix

Roman Mueller requested to merge vtrx_reg_map-fix into main

Small Fix: SDACNT of the v1.3 reg map had the address 0x01 instead of 0x02. 0x01 is a reserved address.

Additional: added the reserved registers to the class Reg(IntEnum) on both v1.2 and v1.3. This makes it easier to iterate through them and doesn't have a drawback (afaik). One can also use the address to get the register name with:

opto.<device>.<device_type>_reg_map.Reg(<address>)

Example with VTRx+ QLD v1.3:

opto.vtrx_vtrx_reg_map.Reg(3)   # returns "Reg.CH1BIAS"
str(opto.vtrx_vtrx_reg_map.Reg(3))[4:] = "CH1BIAS"

Merge request reports

Loading