Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / app / zap-templates / zcl / tv-channel-cluster.xml
1 <?xml version="1.0"?>
2 <!--
3 Copyright (c) 2021 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 <configurator>
18   <domain name="CHIP"/>
19   <cluster>
20     <domain>General</domain>
21     <name>TV Channel</name>
22     <code>0x0504</code>
23     <define>TV_CHANNEL_CLUSTER</define>
24     <client init="false" tick="false">true</client>
25     <server init="false" tick="false">true</server>
26     <description>This cluster provides an interface for controlling the current TV Channel on a device.</description>
27     <attribute side="server" code="0x0000" define="TV_CHANNEL_LIST" type="OCTET_STRING" length="32" writable="false" optional="false">tv channel list</attribute>
28     <attribute side="server" code="0x0001" define="TV_CHANNEL_LINEUP" type="OCTET_STRING" length="32" writable="false" optional="false">tv channel lineup</attribute>
29     <attribute side="server" code="0x0002" define="TV_CHANNEL_CURRENT_CHANNEL" type="OCTET_STRING" length="32" writable="false" optional="false">current tv channel</attribute>
30
31     <command source="client" code="0x00" name="ChangeChannel" optional="false">
32       <description>Change the channel on the TV to the channel case-insensitive exact matching the value passed as an argument. </description>
33       <arg name="match" type="CHAR_STRING"/>
34     </command>
35
36
37     <command source="client" code="0x01" name="ChangeChannelByNumber" optional="false">
38       <description>Change the channel on the TV to the channel with the given Number in the ChannelList attribute.</description>
39       <arg name="majorNumber" type="INT16U"/>
40       <arg name="minorNumber" type="INT16U"/>
41     </command>
42
43     <command source="client" code="0x02" name="SkipChannel" optional="false">
44       <description>This command provides channel up and channel down functionality, but allows channel index jumps of size Count. When the value of the increase or decrease is larger than the number of channels remaining in the given direction, then the behavior SHALL be to return to the beginning (or end) of the channel list and continue. For example, if the current channel is at index 0 and count value of -1 is given, then the current channel should change to the last channel.</description>
45       <arg name="Count" type="INT16U"/>
46     </command>
47
48     <command source="server" code="0x00" name="ChangeChannelResponse" optional="false">
49       <description>Upon receipt, this SHALL display the active status of the input list on screen.</description>
50       <arg name="ChannelMatch" type="TvChannelInfo" array="true"/>
51       <arg name="ErrorType" type="TvChannelErrorType"/>
52     </command>
53
54   </cluster>
55
56   <struct name="TvChannelInfo">
57     <item name="MajorNumber" type="INT16U"/>
58     <item name="MinorNumber" type="INT16U"/>
59     <item name="Name" type="CHAR_STRING"/>
60     <item name="CallSign" type="CHAR_STRING"/>
61     <item name="AffiliateCallSign" type="CHAR_STRING"/>
62   </struct>
63
64   <struct name="TvChannelLineupInfo">
65     <item name="OperatorName" type="CHAR_STRING"/>
66     <item name="LineupName" type="CHAR_STRING"/>
67     <item name="PostalCode" type="CHAR_STRING"/>
68     <item name="LineupInfoType" type="TvChannelLineupInfoType"/>
69   </struct>
70
71   <enum name="TvChannelLineupInfoType" type="ENUM8">
72     <item name="Mso" value="0x00"/>
73   </enum>
74
75   <enum name="TvChannelErrorType" type="ENUM8">
76     <item name="MultipleMatches" value="0x00"/>
77     <item name="NoMatches" value="0x01"/>
78   </enum>
79
80 </configurator>