/src/connectedhomeip/zzz_generated/app-common/clusters/Channel/Attributes.h
Line | Count | Source |
1 | | /* |
2 | | * |
3 | | * Copyright (c) 2022 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 | | // THIS FILE IS GENERATED BY ZAP |
19 | | // This file is generated from clusters-Attributes.h.zapt |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <app/ConcreteAttributePath.h> |
24 | | #include <app/data-model/DecodableList.h> |
25 | | #include <app/data-model/List.h> |
26 | | #include <app/data-model/Nullable.h> |
27 | | #include <app/util/basic-types.h> |
28 | | #include <lib/core/TLV.h> |
29 | | #include <lib/support/BitMask.h> |
30 | | |
31 | | #include <clusters/shared/Attributes.h> |
32 | | #include <clusters/shared/Enums.h> |
33 | | #include <clusters/shared/Structs.h> |
34 | | |
35 | | #include <clusters/Channel/AttributeIds.h> |
36 | | #include <clusters/Channel/ClusterId.h> |
37 | | #include <clusters/Channel/Enums.h> |
38 | | #include <clusters/Channel/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace Channel { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace ChannelList { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::Channel::Structs::ChannelInfoStruct::Type>; |
50 | | using DecodableType = |
51 | | chip::app::DataModel::DecodableList<chip::app::Clusters::Channel::Structs::ChannelInfoStruct::DecodableType>; |
52 | | using DecodableArgType = |
53 | | const chip::app::DataModel::DecodableList<chip::app::Clusters::Channel::Structs::ChannelInfoStruct::DecodableType> &; |
54 | | |
55 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
56 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ChannelList::Id; } |
57 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
58 | | }; |
59 | | } // namespace ChannelList |
60 | | namespace Lineup { |
61 | | struct TypeInfo |
62 | | { |
63 | | using Type = chip::app::DataModel::Nullable<chip::app::Clusters::Channel::Structs::LineupInfoStruct::Type>; |
64 | | using DecodableType = chip::app::DataModel::Nullable<chip::app::Clusters::Channel::Structs::LineupInfoStruct::DecodableType>; |
65 | | using DecodableArgType = |
66 | | const chip::app::DataModel::Nullable<chip::app::Clusters::Channel::Structs::LineupInfoStruct::DecodableType> &; |
67 | | |
68 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
69 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::Lineup::Id; } |
70 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
71 | | }; |
72 | | } // namespace Lineup |
73 | | namespace CurrentChannel { |
74 | | struct TypeInfo |
75 | | { |
76 | | using Type = chip::app::DataModel::Nullable<chip::app::Clusters::Channel::Structs::ChannelInfoStruct::Type>; |
77 | | using DecodableType = chip::app::DataModel::Nullable<chip::app::Clusters::Channel::Structs::ChannelInfoStruct::DecodableType>; |
78 | | using DecodableArgType = |
79 | | const chip::app::DataModel::Nullable<chip::app::Clusters::Channel::Structs::ChannelInfoStruct::DecodableType> &; |
80 | | |
81 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
82 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::CurrentChannel::Id; } |
83 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
84 | | }; |
85 | | } // namespace CurrentChannel |
86 | | namespace GeneratedCommandList { |
87 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
88 | | { |
89 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
90 | | }; |
91 | | } // namespace GeneratedCommandList |
92 | | namespace AcceptedCommandList { |
93 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
94 | | { |
95 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
96 | | }; |
97 | | } // namespace AcceptedCommandList |
98 | | namespace AttributeList { |
99 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
100 | | { |
101 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
102 | | }; |
103 | | } // namespace AttributeList |
104 | | namespace FeatureMap { |
105 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
106 | | { |
107 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
108 | | }; |
109 | | } // namespace FeatureMap |
110 | | namespace ClusterRevision { |
111 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
112 | | { |
113 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
114 | | }; |
115 | | } // namespace ClusterRevision |
116 | | |
117 | | struct TypeInfo |
118 | | { |
119 | | struct DecodableType |
120 | | { |
121 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } |
122 | | |
123 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
124 | | |
125 | | Attributes::ChannelList::TypeInfo::DecodableType channelList; |
126 | | Attributes::Lineup::TypeInfo::DecodableType lineup; |
127 | | Attributes::CurrentChannel::TypeInfo::DecodableType currentChannel; |
128 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
129 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
130 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
131 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
132 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
133 | | }; |
134 | | }; |
135 | | } // namespace Attributes |
136 | | } // namespace Channel |
137 | | } // namespace Clusters |
138 | | } // namespace app |
139 | | } // namespace chip |