<xs:element name="TrbNetSetup">
<xs:complexType>
<xs:sequence>
- <!-- must contain either a uid map to setup the network
- initially, or a trb directive. otherwise it's useless :)
- -->
<xs:element ref="description" />
- <xs:choice>
- <xs:element ref="uidMap"/>
- <xs:element ref="trb"/>
- </xs:choice>
- <!-- may contain even more trb directives -->
- <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:choice maxOccurs="unbounded">
<xs:element ref="trb" />
</xs:choice>
</xs:sequence>
</xs:complexType>
- <xs:attribute name="endpoint">
- <xs:simpleType>
- <xs:restriction base="xs:integer">
- <xs:pattern value="[0-3]|5"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
-
- <xs:simpleType name="uidcontent">
- <xs:restriction base="xs:string">
- <xs:pattern value="[0-9a-fA-F]{16}"/>
- </xs:restriction>
- </xs:simpleType>
-
- <xs:complexType name="uidtype">
- <xs:simpleContent>
- <xs:extension base="uidcontent">
- <xs:attribute ref="address" />
- <xs:attribute ref="endpoint" />
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
-
- <xs:element name="uid" type="uidtype" />
-
- <xs:element name="uidMap">
- <xs:complexType>
- <xs:choice maxOccurs="unbounded">
- <xs:element ref="uid" />
- </xs:choice>
- </xs:complexType>
- </xs:element>
-
</xs:schema>
<description>A hypothetic TRB set-up that due to some strange coincidence exists in Mainz.</description>
- <!-- The order of the trb elements is respected and their content is
- evaluated after each one (if they specify a value). This is important if the resulting
- changes to the TrbNet must happen in a certain way. -->
-
<!-- also note the different uses of the address attribute:
sometimes it's a register address, sometimes a trbnet endpoint
address, or sometimes it specifies the chain number of the
external PaDiWa frontend -->
-
- <!-- this specifies the trbaddress from uid's, it can be omitted if
- the TrbNet is already set-up -->
- <uidMap>
- <uid address="0200" endpoint="0">5900000337e29728</uid>
- <uid address="0201" endpoint="1">cf00000337e29e28</uid>
- <uid address="0202" endpoint="2">ad00000338175028</uid>
- <uid address="0203" endpoint="3">0e00000338174b28</uid>
- <uid address="8000" endpoint="5">4400000338174628</uid>
- </uidMap>
-
<!-- we configure the trb endpoint with address 0x8000 -->
<trb address="8000">
<broadcast address="fffe" />
<trb address="0200">
<broadcast address="fe48" />
- <!-- Standard TrbNet enpoint with standard 65ch TDC... -->
- <entity ref="TrbNet" />
- <entity ref="TDC" />
<!-- ...but also some "external" PaDiWa frontends connected at
chain 0 and 2. The fronend has some more registers which can
be accessed via SPI. The idea is that there's also a