]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
A defaultValue attribute in combination with <field>myValue</field> should make sense...
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Sun, 30 Jun 2013 15:36:53 +0000 (17:36 +0200)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sun, 30 Jun 2013 16:10:06 +0000 (18:10 +0200)
xml-db/database/TrbNetCommon.xsd
xml-db/database/TrbNetSetup.xsd

index 72bdc94e65ba40fbd3f5d92cfee0ee998d013540..823c56bfff14218328d3a57e931de6bdfd2d3ac7 100644 (file)
@@ -80,7 +80,7 @@
   <xs:attribute name="purpose"      type="purposetype" />
   <xs:attribute name="start"        type="bittype" />
   <xs:attribute name="size"         type="xs:positiveInteger" />
-  <xs:attribute name="defaultValue" type="valuetype" />
+  <xs:attribute name="defaultValue" type="xs:string" />
   <xs:attribute name="value"        type="valuetype" />
   <xs:attribute name="format"       type="formattype" />
   <xs:attribute name="continuous"   type="xs:boolean" />
     <xs:attribute ref="format" />
     <xs:attribute ref="repeat" />
   </xs:complexType>
-  
-  
+
+
   <xs:element name="enumItem">
     <xs:complexType>
       <xs:simpleContent>
   </xs:element>
 
   <xs:element name="field">
-    <xs:complexType>
+    <!-- we define this as mixed to provide values to be written (or
+         extracted from it). It will be converted to hex (or binary)
+         according to format attribute -->
+    <xs:complexType mixed="true">
       <xs:sequence>
         <!-- description can be omitted if a register or alike only contains
              one or several identical fields and the description of them can
         <xs:choice minOccurs="0">
           <xs:element   ref="description"/>
         </xs:choice>
+        <!-- enum items are only meaningful for format="enum" fields,
+             however we don't complain if there are some for other
+             formats... -->
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <!-- enum items are only meaningful for format="enum"
-               fields, however we don't complain if there are some for
-               other formats... -->
           <xs:element   ref="enumItem" />
         </xs:choice>
       </xs:sequence>
       <xs:attribute ref="size" />
       <xs:attribute ref="purpose" />
       <xs:attribute ref="mode" />
-      <xs:attribute ref="value" />
+      <!-- if the default value of that field is not 0x0 (in the
+           appropiate conversion according to format attribute), it
+           can be specified here -->
+      <xs:attribute ref="defaultValue" />
       <xs:attribute ref="format" />
       <xs:attribute ref="repeat" />
       <xs:attribute ref="unit" />
     </xs:complexType>
   </xs:element>
 
-</xs:schema>                   
+</xs:schema>
index 072fc71f709465ac02d69bb8ed897c0b984b296d..ffcac392ceca73746741dfd9d6327ffebe631be8 100644 (file)
@@ -1,8 +1,5 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:include schemaLocation="TrbNetCommon.xsd"/>
-
-
-  
   
 </xs:schema>