|
| 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: in-progress |
| 21 | +Git: 0.7-fall2024-ncr-1155-g78ec59e8a-dirty |
| 22 | +--> |
| 23 | +<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | + xsi:noNamespaceSchemaLocation="../../zcl.xsd"> |
| 25 | + <domain name="General"/> |
| 26 | + <struct name="MPTZStruct" apiMaturity="provisional"> |
| 27 | + <cluster code="0x0552"/> |
| 28 | + <item fieldId="0" name="MPan" type="int16s" isNullable="true" optional="true" default="0" min="-180" max="179"/> |
| 29 | + <item fieldId="1" name="MTilt" type="int8s" isNullable="true" optional="true" default="0" min="-90" max="90"/> |
| 30 | + <item fieldId="2" name="MZoom" type="int16u" isNullable="true" optional="true" default="1"/> |
| 31 | + </struct> |
| 32 | + |
| 33 | + <cluster apiMaturity="provisional"> |
| 34 | + <domain name="General" /> |
| 35 | + <name>Camera AV Settings User Level Management</name> |
| 36 | + <code>0x0552</code> |
| 37 | + <define>CAMERA_AV_SETTINGS_USER_LEVEL_MANAGEMENT_CLUSTER</define> |
| 38 | + <description/> |
| 39 | + <client init="false" tick="false">true</client> |
| 40 | + <features> |
| 41 | + <feature bit="0" code="MPTZ" name="MechanicalPTZ" summary="Mechanical PTZ supported"> |
| 42 | + <optionalConform choice="a" more="true" min="1"/> |
| 43 | + </feature> |
| 44 | + <feature bit="1" code="DPTZ" name="DigitalPTZ" summary="Digital PTZ supported"> |
| 45 | + <optionalConform choice="a" more="true" min="1"/> |
| 46 | + </feature> |
| 47 | + </features> |
| 48 | + <server init="false" tick="false">true</server> |
| 49 | + <globalAttribute code="0xFFFD" side="either" value="1"/> |
| 50 | + <attribute code="0x0000" side="server" define="MPTZ" type="MPTZStruct" optional="true">Mptz</attribute> |
| 51 | + <attribute code="0x0001" side="server" define="MAX_PRESETS" type="int8u" optional="true">MaxPresets</attribute> |
| 52 | + <attribute code="0x0002" side="server" define="PRESET_MPTZ_TABLE" type="array" entryType="MPTZStruct" optional="true">PresetMptzTable</attribute> |
| 53 | + <attribute code="0x0003" side="server" define="MPTZ_RELATIVE_MOVE" type="boolean" optional="true">MptzRelativeMove</attribute> |
| 54 | + <attribute code="0x0004" side="server" define="DPTZ_RELATIVE_MOVE" type="array" entryType="PerStreamStruct" optional="true">DptzRelativeMove</attribute> |
| 55 | + <command code="0x00" source="client" name="MptzSet" optional="true"> |
| 56 | + <description>This command SHALL set the values for the pan, tilt, and zoom in the mechanical PTZ.</description> |
| 57 | + <arg id="0" name="NewPTZ" type="MPTZStruct" optional="true"/> |
| 58 | + <arg id="1" name="PresetID" type="int8u" optional="true"/> |
| 59 | + </command> |
| 60 | + |
| 61 | + <command code="0x01" source="client" name="MptzRelativeMove" optional="true"> |
| 62 | + <description>This command SHALL move the device by the values for pan, tilt, and zoom relative to the currently defined position.</description> |
| 63 | + <arg id="0" name="Pan" type="int16s" default="0" min="-359" max="359"/> |
| 64 | + <arg id="1" name="Tilt" type="int16s" default="0" min="-180" max="180"/> |
| 65 | + <arg id="2" name="Zoom" type="int16s" default="0" min="-100" max="100"/> |
| 66 | + </command> |
| 67 | + |
| 68 | + <command code="0x02" source="client" name="SetAsPreset" optional="true"> |
| 69 | + <description>This command SHALL set the next available index in the PresetMptzTable to the current, known, values of pan, tilt, and zoom on the camera.</description> |
| 70 | + </command> |
| 71 | + |
| 72 | + <command code="0x03" source="client" name="DptzSetViewport" optional="true"> |
| 73 | + <description>This command SHALL set the viewport in the digital PTZ for a specific Video Stream.</description> |
| 74 | + <arg id="0" name="VideoStreamID" type="VideoStreamID"/> |
| 75 | + <arg id="1" name="Viewport" type="ViewportStruct"/> |
| 76 | + </command> |
| 77 | + |
| 78 | + <command code="0x04" source="client" name="DptzRelativeMove" optional="true"> |
| 79 | + <description>This command SHALL change the viewports location by the amount specified in a relative fashion.</description> |
| 80 | + <arg id="0" name="VideoStreamID" type="VideoStreamID"/> |
| 81 | + <arg id="1" name="Pan" type="int16s" default="0"/> |
| 82 | + <arg id="2" name="Tilt" type="int16s" default="0"/> |
| 83 | + <arg id="3" name="Zoom" type="int8s" default="0" min="-100" max="100"/> |
| 84 | + </command> |
| 85 | + |
| 86 | + </cluster> |
| 87 | +</configurator> |
0 commit comments