forked from M-Labs/artiq
1
0
Fork 0

moninj: add fastino support

This commit is contained in:
Simon Renblad 2024-07-16 13:14:36 +08:00
parent f8d7f57b14
commit 9f019a3f28
1 changed files with 6 additions and 0 deletions

View File

@ -417,6 +417,12 @@ def setup_from_ddb(ddb):
widget = _WidgetDesc((k, channel), comment, _DACWidget, widget = _WidgetDesc((k, channel), comment, _DACWidget,
(spi_channel, channel, k, vref, offset_dacs)) (spi_channel, channel, k, vref, offset_dacs))
description.add(widget) description.add(widget)
elif (v["module"] == "artiq.coredevice.fastino" and v["class"] == "Fastino"):
bus_channel = v["arguments"]["channel"]
for channel in range(0, 32):
widget = _WidgetDesc((k, channel), comment, _DACWidget,
(bus_channel, channel, k, 5, 8192))
description.add(widget)
elif v["type"] == "controller" and k == "core_moninj": elif v["type"] == "controller" and k == "core_moninj":
mi_addr = v["host"] mi_addr = v["host"]
mi_port = v.get("port_proxy", 1383) mi_port = v.get("port_proxy", 1383)