summaryrefslogtreecommitdiff
path: root/ebus-xml/ebus-0.1.xsd
blob: 19895a864a52183ef6d3ac644b7d936c54f9c645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xapek.org/ebus/0.1"
  xmlns:tns="http://xapek.org/ebus/0.1" elementFormDefault="qualified">
  <element name="ebus">
    <complexType>
      <sequence>
        <element name="devices">
          <complexType>
            <sequence minOccurs="0">
              <element name="device" type="tns:DEVICE"
                maxOccurs="unbounded" />
            </sequence>
          </complexType>
        </element>
        <element name="packets">
          <complexType>
            <sequence minOccurs="0">
              <element name="packet" type="tns:PACKET"
                maxOccurs="unbounded" />
            </sequence>
          </complexType>
        </element>
      </sequence>
    </complexType>
  </element>

  <complexType name="DEVICE">
    <annotation>
      <documentation xml:lang="en">
        Example: &gt;device
        address="#x10" type="master"
        name="heizkreisregler1"&lt;Heizkreisregler 2&gt;/device&lt;
      </documentation>
    </annotation>
    <sequence>
      <element name="description" type="tns:DESCRIPTION"
        minOccurs="0" maxOccurs="unbounded" />
    </sequence>
    <attribute name="address" type="hexBinary" use="required" />
    <attribute name="type" type="string" use="required" />
    <attribute name="name" type="string" use="required" />
  </complexType>

  <complexType name="PACKET">
    <annotation>
      <documentation xml:lang="en">TODO</documentation>
    </annotation>
    <sequence>
      <element name="description" type="tns:DESCRIPTION"
        minOccurs="0" maxOccurs="unbounded" />
      <element name="fields" type="tns:FIELDS" minOccurs="1"
        maxOccurs="1" />
    </sequence>
    <attribute name="primary" type="hexBinary" use="required" />
    <attribute name="secondary" type="hexBinary" use="required" />
    <attribute name="name" type="string" use="required" />
  </complexType>

  <complexType name="DESCRIPTION">
    <simpleContent>
      <extension base="string">
        <attribute name="lang" type="string" use="required" />
      </extension>
    </simpleContent>
  </complexType>

  <complexType name="FIELDS">
    <choice minOccurs="0" maxOccurs="unbounded">
      <element name="byte" type="tns:FIELD_BYTE" />
      <element name="data1b" type="tns:FIELD_DATA1B"></element>
      <element name="data1c" type="tns:FIELD_DATA1C"></element>
      <element name="bcd" type="tns:FIELD_BCD"></element>
      <element name="data2b" type="tns:FIELD_DATA2B"></element>
      <element name="data2c" type="tns:FIELD_DATA2C"></element>
      <element name="word" type="tns:FIELD_WORD"></element>
      <element name="bit" type="tns:FIELD_BIT"></element>
      <element name="byteEnum" type="tns:FIELD_BYTE_ENUM" />
    </choice>
  </complexType>

  <complexType name="FIELD_BASE_TYPE">
    <sequence>
      <element name="description" type="tns:DESCRIPTION"
        minOccurs="0" maxOccurs="unbounded" />
    </sequence>
    <attribute name="offset" type="int" use="required" />
    <attribute name="name" type="string" use="required" />
  </complexType>



  <complexType name="FIELD_BYTE" final="#all">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_DATA1B">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_DATA1C">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_BCD">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_DATA2B">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_DATA2C">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_WORD">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_BIT">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE"></extension>
    </complexContent>
  </complexType>

  <complexType name="FIELD_BYTE_ENUM" final="#all">
    <complexContent>
      <extension base="tns:FIELD_BASE_TYPE">
        <sequence>
          <element name="option" minOccurs="1" maxOccurs="unbounded">
            <complexType>
              <sequence>
                <element name="description" type="tns:DESCRIPTION"
                  minOccurs="0" maxOccurs="unbounded" />
              </sequence>
              <attribute name="value" type="hexBinary" use="required"></attribute>
              <attribute name="name" type="string" use="required"></attribute>
            </complexType>
          </element>
        </sequence>
      </extension>
    </complexContent>
  </complexType>
</schema>