Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / app / zap-templates / zcl / general-commissioning-cluster.xml
1 <?xml version="1.0"?>
2 <!--
3 Copyright (c) 2021 Project CHIP Authors
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17 <configurator>
18   <domain name="CHIP"/>
19   <enum name="GeneralCommissioningError" type="ENUM8">
20     <item name="Ok" value="0x0"/>
21     <item name="ValueOutsideRange" value="0x1"/>
22     <item name="CannotChangeFabric" value="0x2"/>
23     <item name="InvalidAuthentication" value="0x3"/>
24   </enum>
25   <enum name="RegulatoryLocationType" type="ENUM8">
26     <item name="Indoor" value="0x0"/>
27     <item name="Outdoor" value="0x1"/>
28     <item name="IndoorOutdoor" value="0x2"/>
29   </enum>
30   <struct name="BasicCommissioningInfo">
31     <item name="FailSafeExpiryLengthMs" type="INT32U"/>
32   </struct>  
33   <cluster>
34     <domain>General</domain>
35     <name>General Commissioning</name>
36     <code>0x0030</code>
37     <define>GENERAL_COMMISSIONING_CLUSTER</define>
38     <description>This cluster is used to set, remove and update fabric information on a commissionee.</description>
39     <attribute side="server" code="0x00" define="FABRIC_ID" type="OCTET_STRING" length="8" writable="false" default="o" optional="false">FabricId</attribute>
40     <attribute side="server" code="0x01" define="BREADCRUMB" type="INT64U" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="true" optional="false">Breadcrumb</attribute>
41     <command source="client" code="0x00" name="SetFabric" optional="false" cli="chip fabric_commissioning setfabric">
42       <description>Set the fabric ID as well as store the fabric secret</description>
43       <arg name="fabricId" type="OCTET_STRING"/>
44       <arg name="fabricSecret" type="OCTET_STRING"/>        
45       <arg name="breadcrumb" type="INT64U"/>
46       <arg name="timeoutMs" type="INT32U"/>
47     </command>
48     <command source="server" code="0x01" name="SetFabricResponse" optional="false" cli="chip fabric_commissioning setfabricresponse">
49       <description>Sender expects SetFabricResponse command within TimeoutMs milliseconds after sending SetFabric command</description>
50       <arg name="errorCode" type="INT8U"/>
51       <arg name="debugText" type="CHAR_STRING"/>
52     </command>
53     <command source="client" code="0x02" name="ArmFailSafe" optional="false" cli="chip fabric_commissioning armfailsafe">
54       <description>Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock</description>
55       <arg name="expiryLengthSeconds" type="INT16U"/>
56       <arg name="breadcrumb" type="INT64U"/>
57       <arg name="timeoutMs" type="INT32U"/>
58     </command>
59     <command source="server" code="0x03" name="ArmFailSafeResponse" optional="false" cli="chip fabric_commissioning armfailsaferesponse">
60       <description>Sender expects ArmFailSafeResponse command within TimeoutMs milliseconds after sending ArmFailSafe command</description>
61       <arg name="errorCode" type="INT8U"/>
62       <arg name="debugText" type="CHAR_STRING"/>
63     </command>
64     <command source="client" code="0x04" name="SetRegulatoryConfig" optional="true" cli="chip fabric_commissioning setregulatoryconfig">
65       <description>Add or update the regulatory configuration</description>
66       <arg name="location" type="RegulatoryLocationType"/>
67       <arg name="countryCode" type="CHAR_STRING"/>      
68       <arg name="breadcrumb" type="INT64U"/>
69       <arg name="timeoutMs" type="INT32U"/>
70     </command>
71     <command source="server" code="0x05" name="SetRegulatoryConfigResponse" optional="true" cli="chip fabric_commissioning setregulatoryconfigresponse">
72       <description>Sender expects SetRegulatoryConfigResponse command within TimeoutMs milliseconds after sending SetRegulatoryConfig command</description>
73       <arg name="errorCode" type="INT8U"/>
74       <arg name="debugText" type="CHAR_STRING"/>
75     </command>
76     <command source="client" code="0x06" name="CommissioningComplete" optional="false" cli="chip fabric_commissioning commissioningcomplete">
77       <description>Signals the Commissionee that the Commissioner has sucessfully completed all steps of commissioning</description>
78     </command>
79     <command source="server" code="0x07" name="CommissioningCompleteResponse" optional="false" cli="chip fabric_commissioning commissioningcompleteresponse">
80       <description>Sender expects CommissioningCompleteResponse command if the CommissioningComplete command was correctly received</description>
81       <arg name="errorCode" type="INT8U"/>
82       <arg name="debugText" type="CHAR_STRING"/>
83     </command>               
84   </cluster>
85 </configurator>