Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / app / zap-templates / zcl / data-model / silabs / sleeping-mesh.xml
1 <?xml version="1.0"?>
2 <!--
3 Copyright (c) 2008,2020 Silicon Labs.
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   <!-- See bug 13487 (BITMAP48 data types). -->
19   <enum name="SmStatus" type="ENUM8">
20     <item name="NotConfigured" value="0x00"/>
21     <item name="NormalOperation" value="0x01"/>
22     <item name="Installation" value="0x02"/>
23     <item name="Maintenance" value="0x03"/>
24   </enum>
25   <bitmap name="SmHour" type="BITMAP48">
26     <field name="Hour0" mask="0x000000000002"/>
27     <field name="Hour1" mask="0x00000000000C"/>
28     <field name="Hour2" mask="0x000000000020"/>
29     <field name="Hour3" mask="0x0000000000C0"/>
30     <field name="Hour4" mask="0x000000000200"/>
31     <field name="Hour5" mask="0x000000000C00"/>
32     <field name="Hour6" mask="0x000000002000"/>
33     <field name="Hour7" mask="0x00000000C000"/>
34     <field name="Hour8" mask="0x000000020000"/>
35     <field name="Hour9" mask="0x0000000C0000"/>
36     <field name="Hour10" mask="0x000000200000"/>
37     <field name="Hour11" mask="0x000000C00000"/>
38     <field name="Hour12" mask="0x000002000000"/>
39     <field name="Hour13" mask="0x00000C000000"/>
40     <field name="Hour14" mask="0x000020000000"/>
41     <field name="Hour15" mask="0x0000C0000000"/>
42     <field name="Hour16" mask="0x000200000000"/>
43     <field name="Hour17" mask="0x000C00000000"/>
44     <field name="Hour18" mask="0x002000000000"/>
45     <field name="Hour19" mask="0x00C000000000"/>
46     <field name="Hour20" mask="0x020000000000"/>
47     <field name="Hour21" mask="0x0C0000000000"/>
48     <field name="Hour22" mask="0x200000000000"/>
49     <field name="Hour23" mask="0xC00000000000"/>
50   </bitmap>
51   <enum name="SmSchedulingType" type="ENUM8">
52     <item name="UseOfWakeupPeriod" value="0x00"/>
53     <item name="UseOfWakeupHoursScheduling" value="0x01"/>
54   </enum>
55   <cluster>
56     <name>Sleeping Mesh Configuration</name>
57     <domain>SM</domain>
58     <description>This cluster provides an interface for configuring and managing a sleeping mesh.  The sleeping mesh is defined as a ZigBee Network where a number of devices supporting router features are able to sleep using an application layer mechanism to synchronize the wakeup and sleep.</description>
59     <code>0xXXXX</code>
60     <define>SM_SLEEPING_MESH_CONFIGURATION_CLUSTER</define>
61     <client init="false" tick="false">true</client>
62     <server init="false" tick="false">true</server>
63     <attribute side="server" code="0x0000" define="SM_STATUS" type="ENUM8" writable="false" default="0x00" optional="true">status</attribute>
64     <attribute side="server" code="0x0001" define="SM_AWAKE_DURATION" type="INT16U" min="0x0000" max="0xFFFE" writable="false" default="0x003C" optional="true">awake duration</attribute>
65     <attribute side="server" code="0x0002" define="SM_WAKE_UP_PERIOD" type="INT32U" min="0x00000000" max="0xFFFFFFFE" writable="false" default="" optional="true">wake up period</attribute>
66     <attribute side="server" code="0x0003" define="SM_NEXT_WAKE_UP_UTC_TIME" type="UTC_TIME" min="0x00000000" max="0xFFFFFFFE" writable="false" default="0xFFFFFFFF" optional="true">next wake up utc time</attribute>
67     <attribute side="server" code="0x0004" define="SM_TX_JITTER" type="INT16U" min="0x0000" max="0xFFFE" writable="false" default="0x00000000" optional="true">tx jitter</attribute>
68     <attribute side="server" code="0x0005" define="SM_WAKE_UP_HOUR_WORK_DAY" type="BITMAP48" min="0x000000000000" max="0xFFFFFFFFFFFE" writable="false" default="" optional="true">wake up hour work day</attribute>
69     <attribute side="server" code="0x0006" define="SM_WAKE_UP_HOUR_HOLY_DAY" type="BITMAP48" min="0x000000000000" max="0xFFFFFFFFFFFE" writable="false" default="" optional="true">wake up hour holy day</attribute>
70     <attribute side="server" code="0x0007" define="SM_SCHEDULING_TYPE" type="ENUM8" writable="false" default="" optional="true">scheduling type</attribute>
71     <attribute side="server" code="0x0008" define="SM_SLEEPING_CONFIGURATION_ID" type="INT16U" min="0x0000" max="0xFFFE" writable="false" default="0x00" optional="true">sleeping configuration id</attribute>
72     <command source="client" code="0x00" name="SmSleepingMeshConfiguration" optional="false">
73       <description>
74         The Sleeping Mesh Configuration command is used to configure the device to operate in a sleeping mesh.  The configuration parameters allow the devices in the network to understand how to share a wakeup window and to operate in that period of time like an always-on ZigBee network.
75       </description>
76       <arg name="sleepingConfigurationId" type="INT16U"/>
77       <arg name="schedulingType" type="SmSchedulingType"/>
78       <arg name="status" type="SmStatus"/>
79       <arg name="awakeDuration" type="INT16U"/>
80       <arg name="wakeUpPeriod" type="INT32U"/>
81       <arg name="nextWakeUpUtcTime" type="UTC_TIME"/>
82       <arg name="txJitter" type="INT16U"/>
83       <arg name="timestamp" type="UTC_TIME"/>
84       <arg name="wakeUpHourWorkDay" type="SmHour"/>
85       <arg name="wakeUpHourHolyDay" type="SmHour"/>
86     </command>
87     <command source="server" code="0x00" name="SmGetSleepingMeshConfiguration" optional="false">
88       <description>
89         This command initiates a Sleeping Mesh Configuration command for the current sleeping configuration available for this device.
90       </description>
91       <arg name="sleepingConfigurationId" type="INT16U"/>
92     </command>
93   </cluster>
94 </configurator>