-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathcamera-av-settings-user-level-management-cluster.xml
203 lines (191 loc) · 8.81 KB
/
camera-av-settings-user-level-management-cluster.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<?xml version="1.0"?>
<!--
Copyright (c) 2024 Project CHIP Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
XML generated by Alchemy; DO NOT EDIT.
Source: src\app_clusters\CameraAVSettingsUserLevelManagement.adoc
Parameters:
Git: 1.4-444-g6d595e737
-->
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="Cameras"/>
<struct name="MPTZPresetStruct" apiMaturity="provisional">
<cluster code="0x0552"/>
<item fieldId="0" name="PresetID" type="int8u"/>
<item fieldId="1" name="Name" type="char_string" length="32"/>
<item fieldId="2" name="Settings" type="MPTZStruct"/>
</struct>
<struct name="MPTZStruct" apiMaturity="provisional">
<cluster code="0x0552"/>
<item fieldId="0" name="Pan" type="int16s" optional="true" default="0" min="-180" max="180"/>
<item fieldId="1" name="Tilt" type="int16s" optional="true" default="0" min="-180" max="180"/>
<item fieldId="2" name="Zoom" type="int8u" optional="true" default="1" min="1"/>
</struct>
<cluster apiMaturity="provisional">
<domain>Cameras</domain>
<name>Camera AV Settings User Level Management</name>
<code>0x0552</code>
<define>CAMERA_AV_SETTINGS_USER_LEVEL_MANAGEMENT_CLUSTER</define>
<description>This cluster provides an interface into controls associated with the operation of a device that provides pan, tilt, and zoom functions, either mechanically, or against a digital image.</description>
<client init="false" tick="false">true</client>
<features>
<feature bit="0" code="DPTZ" name="DigitalPTZ" summary="Digital PTZ support">
<optionalConform/>
</feature>
<feature bit="1" code="MPAN" name="MechanicalPan" summary="Mechanical Pan support">
<optionalConform choice="a" more="true" min="1"/>
</feature>
<feature bit="2" code="MTILT" name="MechanicalTilt" summary="Mechanical Tilt support">
<optionalConform choice="a" more="true" min="1"/>
</feature>
<feature bit="3" code="MZOOM" name="MechanicalZoom" summary="Mechanical Zoom support">
<optionalConform choice="a" more="true" min="1"/>
</feature>
<feature bit="4" code="MPRESETS" name="MechanicalPresets" summary="Mechanical saved presets support">
<optionalConform>
<orTerm>
<feature name="MPAN"/>
<feature name="MTILT"/>
<feature name="MZOOM"/>
</orTerm>
</optionalConform>
</feature>
</features>
<server init="false" tick="false">true</server>
<globalAttribute code="0xFFFD" side="either" value="1"/>
<attribute code="0x0000" side="server" define="MPTZ" type="MPTZStruct" optional="true">
<description>MPTZPosition</description>
<mandatoryConform>
<orTerm>
<feature name="MPAN"/>
<feature name="MTILT"/>
<feature name="MZOOM"/>
</orTerm>
</mandatoryConform>
</attribute>
<attribute code="0x0001" side="server" define="MAX_PRESETS" type="int8u" optional="true" default="5">
<description>MaxPresets</description>
<mandatoryConform>
<feature name="MPRESETS"/>
</mandatoryConform>
</attribute>
<attribute code="0x0002" side="server" define="PRESET_MPTZ_TABLE" type="array" entryType="MPTZPresetStruct" optional="true">
<description>MPTZPresets</description>
<mandatoryConform>
<feature name="MPRESETS"/>
</mandatoryConform>
</attribute>
<attribute code="0x0003" side="server" define="MPTZ_RELATIVE_MOVE" type="array" optional="true" entryType="int16u">
<description>DPTZRelativeMove</description>
<mandatoryConform>
<feature name="DPTZ"/>
</mandatoryConform>
</attribute>
<attribute code="0x0004" side="server" define="DPTZ_RELATIVE_MOVE" type="int8u" optional="true" min="2" max="100" default="100">
<description>ZoomMax</description>
<mandatoryConform>
<feature name="MZOOM"/>
</mandatoryConform>
</attribute>
<attribute code="0x0005" side="server" define="TILT_MIN" type="int16s" min="-180" max="179" default="-90" optional="true">
<description>TiltMin</description>
<mandatoryConform>
<feature name="MTILT"/>
</mandatoryConform>
</attribute>
<attribute code="0x0006" side="server" define="TILT_MAX" type="int16s" min="-179" max="180" default="90" optional="true">
<description>TiltMax</description>
<mandatoryConform>
<feature name="MTILT"/>
</mandatoryConform>
</attribute>
<attribute code="0x0007" side="server" define="PAN_MIN" type="int16s" min="-180" max="179" default="-180" optional="true">
<description>PanMin</description>
<mandatoryConform>
<feature name="MPAN"/>
</mandatoryConform>
</attribute>
<attribute code="0x0008" side="server" define="PAN_MAX" type="int16s" min="-179" max="180" default="180" optional="true">
<description>PanMax</description>
<mandatoryConform>
<feature name="MPAN"/>
</mandatoryConform>
</attribute>
<command code="0x00" source="client" name="MPTZSetPosition" optional="true">
<description>This command SHALL set the values for the pan, tilt, and zoom in the mechanical PTZ.</description>
<arg id="0" name="Pan" type="int16s" optional="true"/>
<arg id="1" name="Tilt" type="int16s" optional="true"/>
<arg id="2" name="Zoom" type="int8u" optional="true" min="1" max="1"/>
<mandatoryConform>
<orTerm>
<feature name="MPAN"/>
<feature name="MTILT"/>
<feature name="MZOOM"/>
</orTerm>
</mandatoryConform>
</command>
<command code="0x01" source="client" name="MPTZRelativeMove" optional="true">
<description>This command SHALL move the device by the delta values relative to the currently defined position.</description>
<arg id="0" name="PanDelta" type="int16s" default="0" optional="true"/>
<arg id="1" name="TiltDelta" type="int16s" default="0" optional="true"/>
<arg id="2" name="ZoomDelta" type="int8s" default="0" optional="true"/>
<optionalConform>
<orTerm>
<feature name="MPAN"/>
<feature name="MTILT"/>
<feature name="MZOOM"/>
</orTerm>
</optionalConform>
</command>
<command code="0x02" source="client" name="MPTZMoveToPreset" optional="true">
<description>This command SHALL move the camera to the positions specified by the Preset passed.</description>
<arg id="0" name="PresetID" type="int8u"/>
<mandatoryConform>
<feature name="MPRESETS"/>
</mandatoryConform>
</command>
<command code="0x03" source="client" name="MPTZSavePreset" optional="true">
<description>This command allows creating a new preset or updating the values of an existing one.</description>
<arg id="0" name="PresetID" type="int8u" optional="true"/>
<arg id="1" name="Name" type="char_string" length="32"/>
<mandatoryConform>
<feature name="MPRESETS"/>
</mandatoryConform>
</command>
<command code="0x04" source="client" name="MPTZRemovePreset" optional="true">
<description>This command SHALL remove a preset entry from the PresetMptzTable.</description>
<arg id="0" name="PresetID" type="int8u"/>
<mandatoryConform>
<feature name="MPRESETS"/>
</mandatoryConform>
</command>
<command code="0x05" source="client" name="DPTZSetViewport" optional="true">
<description>This command allows for setting the digital viewport for a specific Video Stream.</description>
<arg id="0" name="VideoStreamID" type="int16u"/>
<arg id="1" name="Viewport" type="ViewportStruct"/>
<mandatoryConform>
<feature name="DPTZ"/>
</mandatoryConform>
</command>
<command code="0x06" source="client" name="DPTZRelativeMove" optional="true">
<description>This command SHALL change the viewports location by the amount specified in a relative fashion.</description>
<arg id="0" name="VideoStreamID" type="int16u"/>
<arg id="1" name="DeltaX" type="int16s" optional="true" default="0"/>
<arg id="2" name="DeltaY" type="int16s" optional="true" default="0"/>
<arg id="3" name="ZoomDelta" type="int8s" optional="true" default="0" min="-100" max="100"/>
<optionalConform>
<feature name="DPTZ"/>
</optionalConform>
</command>
</cluster>
</configurator>