-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.xml
45 lines (41 loc) · 1.56 KB
/
test.xml
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
<packet ePacketType = "PAKWC_TEST">
<element name = "a" type = "uint32_t" bits = "3" />
<element name = "b" type = "uint32_t" bits = "5" />
<element name = "c" type = "uint32_t" />
<element name = "d" type = "uint32_t" bits = "1" />
<element name = "e" type = "uint32_t" bits = "14" />
<element name = "f" type = "uint32_t" bits = "1" />
<element name = "g" type = "uint32_t" bits = "31" />
<element name = "h" type = "uint32_t" bits = "1" />
<element name = "pote" type = "Pote" />
<element name = "pote2" type = "Pote2" />
<element name = "x" type = "Aaa" />
<element name = "y" type = "Bbb" />
<complexType name = "Pote">
<choice>
<sequence inline="true">
<element name = "a" type = "uint8_t" bits = "1" />
<element name = "b" type = "uint8_t" bits = "7" />
</sequence>
<element name = "c" type = "uint8_t" />
</choice>
</complexType>
<complexType name = "Pote2">
<sequence>
<element name = "a" type = "uint8_t" bits = "1" />
<element name = "b" type = "uint8_t" bits = "7" />
</sequence>
</complexType>
<simpleType name = "Aaa">
<restriction base = "uint8_t">
<enumeration value = "ABC" />
<enumeration value = "DEF" />
<enumeration value = "GHI" />
</restriction>
</simpleType>
<simpleType name = "Bbb">
<restriction base = "std::string">
<length value = "3" />
</restriction>
</simpleType>
</packet>