/src/connectedhomeip/zzz_generated/app-common/clusters/Groupcast/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/Groupcast/AttributeIds.h> |
36 | | #include <clusters/Groupcast/ClusterId.h> |
37 | | #include <clusters/Groupcast/Enums.h> |
38 | | #include <clusters/Groupcast/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace Groupcast { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace Membership { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::Groupcast::Structs::MembershipStruct::Type>; |
50 | | using DecodableType = |
51 | | chip::app::DataModel::DecodableList<chip::app::Clusters::Groupcast::Structs::MembershipStruct::DecodableType>; |
52 | | using DecodableArgType = |
53 | | const chip::app::DataModel::DecodableList<chip::app::Clusters::Groupcast::Structs::MembershipStruct::DecodableType> &; |
54 | | |
55 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
56 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::Membership::Id; } |
57 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
58 | | }; |
59 | | } // namespace Membership |
60 | | namespace MaxMembershipCount { |
61 | | struct TypeInfo |
62 | | { |
63 | | using Type = uint16_t; |
64 | | using DecodableType = uint16_t; |
65 | | using DecodableArgType = uint16_t; |
66 | | |
67 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
68 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MaxMembershipCount::Id; } |
69 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
70 | | }; |
71 | | } // namespace MaxMembershipCount |
72 | | namespace MaxMcastAddrCount { |
73 | | struct TypeInfo |
74 | | { |
75 | | using Type = uint16_t; |
76 | | using DecodableType = uint16_t; |
77 | | using DecodableArgType = uint16_t; |
78 | | |
79 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
80 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MaxMcastAddrCount::Id; } |
81 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
82 | | }; |
83 | | } // namespace MaxMcastAddrCount |
84 | | namespace UsedMcastAddrCount { |
85 | | struct TypeInfo |
86 | | { |
87 | | using Type = uint16_t; |
88 | | using DecodableType = uint16_t; |
89 | | using DecodableArgType = uint16_t; |
90 | | |
91 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
92 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::UsedMcastAddrCount::Id; } |
93 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
94 | | }; |
95 | | } // namespace UsedMcastAddrCount |
96 | | namespace FabricUnderTest { |
97 | | struct TypeInfo |
98 | | { |
99 | | using Type = chip::FabricIndex; |
100 | | using DecodableType = chip::FabricIndex; |
101 | | using DecodableArgType = chip::FabricIndex; |
102 | | |
103 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
104 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::FabricUnderTest::Id; } |
105 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
106 | | }; |
107 | | } // namespace FabricUnderTest |
108 | | namespace GeneratedCommandList { |
109 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
110 | | { |
111 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
112 | | }; |
113 | | } // namespace GeneratedCommandList |
114 | | namespace AcceptedCommandList { |
115 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
116 | | { |
117 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
118 | | }; |
119 | | } // namespace AcceptedCommandList |
120 | | namespace AttributeList { |
121 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
122 | | { |
123 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
124 | | }; |
125 | | } // namespace AttributeList |
126 | | namespace FeatureMap { |
127 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
128 | | { |
129 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
130 | | }; |
131 | | } // namespace FeatureMap |
132 | | namespace ClusterRevision { |
133 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
134 | | { |
135 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
136 | | }; |
137 | | } // namespace ClusterRevision |
138 | | |
139 | | struct TypeInfo |
140 | | { |
141 | | struct DecodableType |
142 | | { |
143 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
144 | | |
145 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
146 | | |
147 | | Attributes::Membership::TypeInfo::DecodableType membership; |
148 | | Attributes::MaxMembershipCount::TypeInfo::DecodableType maxMembershipCount = static_cast<uint16_t>(0); |
149 | | Attributes::MaxMcastAddrCount::TypeInfo::DecodableType maxMcastAddrCount = static_cast<uint16_t>(0); |
150 | | Attributes::UsedMcastAddrCount::TypeInfo::DecodableType usedMcastAddrCount = static_cast<uint16_t>(0); |
151 | | Attributes::FabricUnderTest::TypeInfo::DecodableType fabricUnderTest = static_cast<chip::FabricIndex>(0); |
152 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
153 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
154 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
155 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
156 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
157 | | }; |
158 | | }; |
159 | | } // namespace Attributes |
160 | | } // namespace Groupcast |
161 | | } // namespace Clusters |
162 | | } // namespace app |
163 | | } // namespace chip |