From 124d31475914c17f0e63556df274e587eac4a20d Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 4 Jul 2022 10:22:16 +0200 Subject: [PATCH] Add new registers to xml-db: additional reg, reboot on reset --- web/htdocs/network/trbnet.pl | 15 ++++++------ xml-db/database/TrbNet.xml | 45 ++++++++++++++++++++++++------------ 2 files changed, 38 insertions(+), 22 deletions(-) diff --git a/web/htdocs/network/trbnet.pl b/web/htdocs/network/trbnet.pl index 50c6938..86afc05 100755 --- a/web/htdocs/network/trbnet.pl +++ b/web/htdocs/network/trbnet.pl @@ -27,21 +27,22 @@ $setup[0]->{name} = "StatusRegisters"; $setup[0]->{cmd} = "TrbNet-0xffff-StatusRegisters"; $setup[0]->{period} = 2000; -$setup[1]->{name} = "BoardInfo"; -$setup[1]->{cmd} = "TrbNet-0xffff-BoardInformation"; +$setup[1]->{name} = "CommonRegs"; +$setup[1]->{cmd} = "TrbNet-0xffff-CommonRegs"; $setup[1]->{period} = -1; -$setup[2]->{name} = "Readout"; -$setup[2]->{cmd} = "Readout-0xffff-Status"; +$setup[2]->{name} = "BoardInfo"; +$setup[2]->{cmd} = "TrbNet-0xffff-BoardInformation"; $setup[2]->{period} = -1; +$setup[3]->{name} = "Readout"; +$setup[3]->{cmd} = "Readout-0xffff-Status"; +$setup[3]->{period} = -1; -xmlpage::initPage(\@setup,$page); - +xmlpage::initPage(\@setup,$page); - 1; diff --git a/xml-db/database/TrbNet.xml b/xml-db/database/TrbNet.xml index 0238386..ac4fcc6 100644 --- a/xml-db/database/TrbNet.xml +++ b/xml-db/database/TrbNet.xml @@ -135,7 +135,34 @@ - + + + Design dependend function, e.g. LED off + + + + New common function register + + Full control reg + + + Board makes a full reload with next reset + + + + + Address setting registers + + Set main board address. Bit 31 must be assigned to update the board address with this value + + + Configurable broadcast using 0xFD__ + + + Update Address enable bit. + + + @@ -163,20 +190,8 @@ Default address after reload - - - Address setting registers - - Set main board address. Bit 31 must be assigned to update the board address with this value - - - Configurable broadcast using 0xFD__ - - - Update Address enable bit. - - + - + -- 2.43.0