Skip to content

Commit 2f17ccc

Browse files
committed
Reordered data-type definitions to match the order in the spec.
1 parent fea95d4 commit 2f17ccc

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

src/app/zap-templates/zcl/data-model/chip/service-area-cluster.xml

+13-16
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@ limitations under the License.
1717
<configurator>
1818
<domain name="CHIP"/>
1919

20-
<!-- Enum definitions for structures-->
21-
<enum name="OperationalStatusEnum" type="enum8">
22-
<cluster code="0x0150"/>
23-
<item value="0x00" name="Pending"/>
24-
<item value="0x01" name="Operating"/>
25-
<item value="0x02" name="Skipped"/>
26-
<item value="0x03" name="Completed"/>
27-
</enum>
28-
29-
<!-- Data types -->
20+
Data types
3021
<struct name="LocationInfoStruct">
3122
<cluster code="0x0150"/>
3223
<item name="LocationInfo" type="HomeLocationStruct" optional="false" isNullable="true"/>
@@ -48,6 +39,14 @@ limitations under the License.
4839
<item name="LocationInfo" type="LocationInfoStruct" optional="false" isNullable="false"/>
4940
</struct>
5041

42+
<enum name="OperationalStatusEnum" type="enum8">
43+
<cluster code="0x0150"/>
44+
<item value="0x00" name="Pending"/>
45+
<item value="0x01" name="Operating"/>
46+
<item value="0x02" name="Skipped"/>
47+
<item value="0x03" name="Completed"/>
48+
</enum>
49+
5150
<struct name="ProgressStruct">
5251
<cluster code="0x0150"/>
5352
<item name="LocationID" type="int32u" optional="false"/>
@@ -56,7 +55,6 @@ limitations under the License.
5655
<item name="EstimatedTime" type="elapsed_s" optional="true" isNullable="true"/>
5756
</struct>
5857

59-
<!-- Enum definitions for select locations command response-->
6058
<enum name="SelectLocationsStatus" type="enum8">
6159
<cluster code="0x0150"/>
6260
<item value="0x00" name="Success"/>
@@ -66,15 +64,13 @@ limitations under the License.
6664
<item value="0x04" name="InvalidSet"/>
6765
</enum>
6866

69-
<!-- Enum definitions for skip location command response-->
7067
<enum name="SkipCurrentLocationStatus" type="enum8">
7168
<cluster code="0x0150"/>
7269
<item value="0x00" name="Success"/>
7370
<item value="0x01" name="InvalidLocationList"/>
7471
<item value="0x02" name="InvalidInMode"/>
7572
</enum>
7673

77-
7874
<cluster>
7975
<domain>General</domain>
8076
<name>Service Area</name>
@@ -88,7 +84,8 @@ limitations under the License.
8884
</feature>
8985
<feature bit="1" code="SELRUN" name="SelectWhileRunning" summary="The device allows changing the selected locations while running">
9086
<optionalConform/>
91-
</feature>
87+
</feature>
88+
</features>
9289

9390
<!-- Attributes -->
9491
<attribute side="server" code="0x0000" define="SupportedLocations" type="array" entryType="LocationStruct" writable="false" isNullable="false" optional="false">SupportedLocations</attribute>
@@ -124,8 +121,8 @@ limitations under the License.
124121
<description>
125122
This command is sent by the device on receipt of the SelectLocations command.
126123
</description>
127-
<arg name="Status" type="SkipCurrentStatus" optional="false"/>
128-
<arg name="StatusText" type="char_string" length="256" optional="true"/>
124+
<arg name="Status" type="SkipCurrentLocationStatus" optional="false"/>
125+
<arg name="StatusText" type="char_string" length="256" optional="true"/>
129126
</command>
130127

131128
</cluster>

0 commit comments

Comments
 (0)