summaryrefslogtreecommitdiffstats
path: root/xml/model.xsd
diff options
context:
space:
mode:
authornicolas.zilio@hotmail.fr <>2015-09-14 15:49:46 +0200
committernicolas.zilio@hotmail.fr <>2015-09-14 15:49:46 +0200
commita1bf5e300e2345b642d0a13e7e26d22c56156e47 (patch)
tree35f55b62ab50bfbbb47bd8911aa3ca24c405e0a1 /xml/model.xsd
parent2dfb23016c39a331bf5ed4111b630dffa330edbb (diff)
downloadpcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.tar.gz
pcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.tar.bz2
pcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.tar.xz
pcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.zip
views with units functionnal (beware, as formulas are completely crap now, we could get segfault, for example if we want to write a negative value in register)
Diffstat (limited to 'xml/model.xsd')
-rw-r--r--xml/model.xsd24
1 files changed, 23 insertions, 1 deletions
diff --git a/xml/model.xsd b/xml/model.xsd
index 5febd1a..cd0b4b0 100644
--- a/xml/model.xsd
+++ b/xml/model.xsd
@@ -4,8 +4,9 @@
<xsd:element name="model">
<xsd:complexType>
<xsd:sequence>
- <xsd:element name="banks" type="banks_type"/>
+ <xsd:element name="banks" type="banks_type" minOccurs="0" maxOccurs="1"/>
<xsd:element name="views" type="views_type" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="units" type="units_type" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:key name="Registerkey">
@@ -107,8 +108,29 @@
<xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="views" type="reg_to_views_type" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="units_type">
+ <xsd:sequence maxOccurs="unbounded">
+ <xsd:element name="unit" type="unit_type"/>
+ </xsd:sequence>
</xsd:complexType>
+
+
+ <xsd:complexType name="unit_type">
+ <xsd:sequence maxOccurs="unbounded">
+ <xsd:element name="convert_unit" type="convert_unit_type"/>
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string"/>
+ </xsd:complexType>
+
+ <xsd:complexType name="convert_unit_type">
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute name="value" type="xsd:string"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
<xsd:simpleType name="uint8_t">
<xsd:restriction base="xsd:integer">