File tree 1 file changed +21
-0
lines changed
src/app/zap-templates/zcl/data-model/chip
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,25 @@ TODO: Make these structures global rather than defining them for each cluster.
31
31
<item fieldId =" 1" name =" FloorNumber" type =" int16s" isNullable =" true" optional =" false" />
32
32
<item fieldId =" 2" name =" AreaType" type =" AreaTypeTag" isNullable =" true" optional =" false" />
33
33
</struct >
34
+
35
+ <!--
36
+ These are test global items (no cluster attached) for testing only.
37
+ Their usage is defined for UnitTestCluster only.
38
+ -->
39
+ <bitmap name =" TestGlobalBitmap" type =" bitmap32" >
40
+ <field mask =" 0x01" name =" FirstBit" />
41
+ <field mask =" 0x02" name =" SecondBit" />
42
+ </bitmap >
43
+
44
+ <enum name =" TestGlobalEnum" type =" enum8" >
45
+ <item name =" SomeValue" value =" 0x00" />
46
+ <item name =" SomeOtherValue" value =" 0x01" />
47
+ <item name =" FinalValue" value =" 0x02" />
48
+ </enum >
49
+
50
+ <struct name =" TestGlobalStruct" >
51
+ <item fieldId =" 0" name =" Name" type =" char_string" length =" 128" isNullable =" false" optional =" false" />
52
+ <item fieldId =" 1" name =" MyBitmap" type =" TestGlobalBitmap" isNullable =" true" optional =" false" />
53
+ <item fieldId =" 2" name =" MyEnum" type =" TestGlobalEnum" isNullable =" true" optional =" true" />
54
+ </struct >
34
55
</configurator >
You can’t perform that action at this time.
0 commit comments