-
Notifications
You must be signed in to change notification settings - Fork 11
/
ptp_config.xsd
209 lines (197 loc) · 6.37 KB
/
ptp_config.xsd
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://flexibilis.com/schema/ptp/1.0/config"
targetNamespace="http://flexibilis.com/schema/ptp/1.0/config"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xml:lang="en">
<!--
import standard XML definitions
-->
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd">
<xs:annotation>
<xs:documentation>
This import accesses the xml: attribute groups for the
xml:lang.
</xs:documentation>
</xs:annotation>
</xs:import>
<!--
GeneralType
-->
<xs:complexType name="GeneralType">
<xs:all>
<xs:element name="debug" default="0">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
<!--
InterfaceType
-->
<xs:complexType name="InterfaceType">
<xs:all>
<xs:element name="delay_asymmetry" minOccurs="0" type="xs:integer"/>
<xs:element name="multicast" default="1">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="unicast" minOccurs="0" maxOccurs="unbounded">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{1,3}(\.[0-9]{1,3}){3}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
<!--
BasicType
-->
<xs:complexType name="BasicType">
<xs:all>
<xs:element name="one_step_clock" default="0">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
<!--
Clock type
-->
<xs:complexType name="ClockType">
<xs:all>
<xs:element name="clock_class" default="187">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="clock_accuracy" default="1us">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="25ns"/>
<xs:enumeration value="100ns"/>
<xs:enumeration value="250ns"/>
<xs:enumeration value="1us"/>
<xs:enumeration value="2,5us"/>
<xs:enumeration value="10us"/>
<xs:enumeration value="25us"/>
<xs:enumeration value="100us"/>
<xs:enumeration value="250us"/>
<xs:enumeration value="1ms"/>
<xs:enumeration value="2,5ms"/>
<xs:enumeration value="10ms"/>
<xs:enumeration value="25ms"/>
<xs:enumeration value="100ms"/>
<xs:enumeration value="250ms"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="clock_priority1" default="128">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="clock_priority2" default="128">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="domain" default="0">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="clock_source" default="internal oscillator">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="atomic clock"/>
<xs:enumeration value="gps"/>
<xs:enumeration value="terrestrial radio"/>
<xs:enumeration value="ptp"/>
<xs:enumeration value="ntp"/>
<xs:enumeration value="hand set"/>
<xs:enumeration value="other"/>
<xs:enumeration value="internal oscillator"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
<!--
IntervalsType
-->
<xs:complexType name="IntervalsType">
<xs:all>
<xs:element name="announce_interval" default="1">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="-8"/>
<xs:maxInclusive value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="sync_interval" default="0">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="-8"/>
<xs:maxInclusive value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="delay_req_interval" default="0">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="-8"/>
<xs:maxInclusive value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
<!--
PTPConfigType
-->
<xs:complexType name="PTPConfigType">
<xs:sequence>
<xs:element name="config_ver" type="xs:string"/>
<xs:element name="General" type="GeneralType"/>
<xs:element name="Interface" type="InterfaceType"
maxOccurs="unbounded"/>
<xs:element name="Basic" type="BasicType"/>
<xs:element name="Clock" type="ClockType"/>
<xs:element name="Intervals" type="IntervalsType"/>
</xs:sequence>
</xs:complexType>
<!--
PTP config
-->
<xs:element name="PTP_config" type="PTPConfigType"/>
</xs:schema>