Skip to content

Commit

Permalink
Declare some global items for future testing (#34509)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Aug 21, 2024
1 parent 8e7819d commit 26955c4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/app/zap-templates/zcl/data-model/chip/global-structs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,25 @@ TODO: Make these structures global rather than defining them for each cluster.
<item fieldId="1" name="FloorNumber" type="int16s" isNullable="true" optional="false"/>
<item fieldId="2" name="AreaType" type="AreaTypeTag" isNullable="true" optional="false"/>
</struct>

<!--
These are test global items (no cluster attached) for testing only.
Their usage is defined for UnitTestCluster only.
-->
<bitmap name="TestGlobalBitmap" type="bitmap32">
<field mask="0x01" name="FirstBit" />
<field mask="0x02" name="SecondBit" />
</bitmap>

<enum name="TestGlobalEnum" type="enum8">
<item name="SomeValue" value="0x00"/>
<item name="SomeOtherValue" value="0x01"/>
<item name="FinalValue" value="0x02"/>
</enum>

<struct name="TestGlobalStruct">
<item fieldId="0" name="Name" type="char_string" length="128" isNullable="false" optional="false"/>
<item fieldId="1" name="MyBitmap" type="TestGlobalBitmap" isNullable="true" optional="false"/>
<item fieldId="2" name="MyEnum" type="TestGlobalEnum" isNullable="true" optional="true"/>
</struct>
</configurator>

0 comments on commit 26955c4

Please sign in to comment.