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