| <?xml version="1.0"?> |
| <!-- |
| Copyright (c) 2023 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. |
| --> |
| <configurator> |
| <domain name="CHIP"/> |
| <cluster> |
| <domain>General</domain> |
| <name>Sample Custom Cluster</name> |
| <code>0xFFF1FC20</code> |
| <define>SAMPLE_MEI_CLUSTER</define> |
| <description>The Sample MEI cluster showcases cluster manufacturer extensions</description> |
| <!-- Attributes --> |
| <!-- A simple boolean attribute that flips or flops --> |
| <attribute side="server" code="0x0000" define="FLIP_FLOP" type="BOOLEAN" writable="true" default="false">FlipFlop</attribute> |
| <!-- Command Responses --> |
| <command source="server" code="0x01" name="AddArgumentsResponse" disableDefaultResponse="true"> |
| <description> |
| Response for AddArguments that returns the sum. |
| </description> |
| <arg name="returnValue" type="INT8U"/> |
| </command> |
| |
| <!-- Commands --> |
| <command source="client" code="0x02" name="AddArguments" response="AddArgumentsResponse"> |
| <description> |
| Command that takes two uint8 arguments and returns their sum. |
| </description> |
| <arg name="arg1" type="INT8U"/> |
| <arg name="arg2" type="INT8U"/> |
| </command> |
| |
| <command source="client" code="0x00" name="Ping"> |
| <description> |
| Simple command without any parameters and without a response. |
| </description> |
| </command> |
| <!-- Events --> |
| </cluster> |
| |
| <!-- Use the cluster extension Extend the on/off cluster --> |
| <clusterExtension code="0x0006"> |
| <attribute side="server" code="0xFFF10000" define="SAMPLE_MFG_SPECIFIC_TRANSITION_TIME_2" type="INT8U" min="0x0000" max="0xFFFF" writable="true" default="0x0000" optional="true">Sample Mfg Specific Attribute 2</attribute> |
| <attribute side="server" code="0xFFF10001" define="SAMPLE_MFG_SPECIFIC_TRANSITION_TIME_4" type="INT16U" min="0x0000" max="0xFFFF" writable="true" default="0x0000" optional="true">Sample Mfg Specific Attribute 4</attribute> |
| <command source="client" code="0xFFF100" name="SampleMfgSpecificOnWithTransition2"> |
| <description>Client command that turns the device on with a transition given |
| by the transition time in the Ember Sample transition time attribute.</description> |
| <arg name="transitionMode" type="INT8U"/> |
| <arg name="transitionTime" type="INT16U" default="0x0003"/> |
| </command> |
| <command source="client" code="0xFFF101" name="SampleMfgSpecificToggleWithTransition2" optional="true"> |
| <description>Client command that toggles the device with a transition given |
| by the transition time in the Ember Sample transition time attribute.</description> |
| </command> |
| </clusterExtension> |
| </configurator> |