/src/connectedhomeip/zzz_generated/app-common/clusters/ProximityRanging/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/ProximityRanging/AttributeIds.h> |
36 | | #include <clusters/ProximityRanging/ClusterId.h> |
37 | | #include <clusters/ProximityRanging/Enums.h> |
38 | | #include <clusters/ProximityRanging/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace ProximityRanging { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace RangingCapabilities { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::ProximityRanging::Structs::RangingCapabilitiesStruct::Type>; |
50 | | using DecodableType = chip::app::DataModel::DecodableList< |
51 | | chip::app::Clusters::ProximityRanging::Structs::RangingCapabilitiesStruct::DecodableType>; |
52 | | using DecodableArgType = const chip::app::DataModel::DecodableList< |
53 | | chip::app::Clusters::ProximityRanging::Structs::RangingCapabilitiesStruct::DecodableType> &; |
54 | | |
55 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
56 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::RangingCapabilities::Id; } |
57 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
58 | | }; |
59 | | } // namespace RangingCapabilities |
60 | | namespace WiFiDevIK { |
61 | | struct TypeInfo |
62 | | { |
63 | | using Type = chip::ByteSpan; |
64 | | using DecodableType = chip::ByteSpan; |
65 | | using DecodableArgType = chip::ByteSpan; |
66 | | |
67 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
68 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::WiFiDevIK::Id; } |
69 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
70 | 0 | static constexpr size_t MaxLength() { return 16; } |
71 | | }; |
72 | | } // namespace WiFiDevIK |
73 | | namespace BLEDeviceID { |
74 | | struct TypeInfo |
75 | | { |
76 | | using Type = uint64_t; |
77 | | using DecodableType = uint64_t; |
78 | | using DecodableArgType = uint64_t; |
79 | | |
80 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
81 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BLEDeviceID::Id; } |
82 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
83 | | }; |
84 | | } // namespace BLEDeviceID |
85 | | namespace BLTDevIK { |
86 | | struct TypeInfo |
87 | | { |
88 | | using Type = chip::ByteSpan; |
89 | | using DecodableType = chip::ByteSpan; |
90 | | using DecodableArgType = chip::ByteSpan; |
91 | | |
92 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
93 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BLTDevIK::Id; } |
94 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
95 | 0 | static constexpr size_t MaxLength() { return 16; } |
96 | | }; |
97 | | } // namespace BLTDevIK |
98 | | namespace BLTCSSecurityLevel { |
99 | | struct TypeInfo |
100 | | { |
101 | | using Type = chip::app::Clusters::ProximityRanging::BLTCSSecurityLevelEnum; |
102 | | using DecodableType = chip::app::Clusters::ProximityRanging::BLTCSSecurityLevelEnum; |
103 | | using DecodableArgType = chip::app::Clusters::ProximityRanging::BLTCSSecurityLevelEnum; |
104 | | |
105 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
106 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BLTCSSecurityLevel::Id; } |
107 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
108 | | }; |
109 | | } // namespace BLTCSSecurityLevel |
110 | | namespace BLTCSModeCapability { |
111 | | struct TypeInfo |
112 | | { |
113 | | using Type = chip::app::Clusters::ProximityRanging::BLTCSModeEnum; |
114 | | using DecodableType = chip::app::Clusters::ProximityRanging::BLTCSModeEnum; |
115 | | using DecodableArgType = chip::app::Clusters::ProximityRanging::BLTCSModeEnum; |
116 | | |
117 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
118 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BLTCSModeCapability::Id; } |
119 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
120 | | }; |
121 | | } // namespace BLTCSModeCapability |
122 | | namespace SessionIDList { |
123 | | struct TypeInfo |
124 | | { |
125 | | using Type = chip::app::DataModel::List<const uint8_t>; |
126 | | using DecodableType = chip::app::DataModel::DecodableList<uint8_t>; |
127 | | using DecodableArgType = const chip::app::DataModel::DecodableList<uint8_t> &; |
128 | | |
129 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
130 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::SessionIDList::Id; } |
131 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
132 | | }; |
133 | | } // namespace SessionIDList |
134 | | namespace RangingConstraints { |
135 | | struct TypeInfo |
136 | | { |
137 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::ProximityRanging::Structs::RangingConstraintStruct::Type>; |
138 | | using DecodableType = |
139 | | chip::app::DataModel::DecodableList<chip::app::Clusters::ProximityRanging::Structs::RangingConstraintStruct::DecodableType>; |
140 | | using DecodableArgType = const chip::app::DataModel::DecodableList< |
141 | | chip::app::Clusters::ProximityRanging::Structs::RangingConstraintStruct::DecodableType> &; |
142 | | |
143 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
144 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::RangingConstraints::Id; } |
145 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
146 | | }; |
147 | | } // namespace RangingConstraints |
148 | | namespace GeneratedCommandList { |
149 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
150 | | { |
151 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
152 | | }; |
153 | | } // namespace GeneratedCommandList |
154 | | namespace AcceptedCommandList { |
155 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
156 | | { |
157 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
158 | | }; |
159 | | } // namespace AcceptedCommandList |
160 | | namespace AttributeList { |
161 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
162 | | { |
163 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
164 | | }; |
165 | | } // namespace AttributeList |
166 | | namespace FeatureMap { |
167 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
168 | | { |
169 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
170 | | }; |
171 | | } // namespace FeatureMap |
172 | | namespace ClusterRevision { |
173 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
174 | | { |
175 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
176 | | }; |
177 | | } // namespace ClusterRevision |
178 | | |
179 | | struct TypeInfo |
180 | | { |
181 | | struct DecodableType |
182 | | { |
183 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
184 | | |
185 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
186 | | |
187 | | Attributes::RangingCapabilities::TypeInfo::DecodableType rangingCapabilities; |
188 | | Attributes::WiFiDevIK::TypeInfo::DecodableType wiFiDevIK; |
189 | | Attributes::BLEDeviceID::TypeInfo::DecodableType BLEDeviceID = static_cast<uint64_t>(0); |
190 | | Attributes::BLTDevIK::TypeInfo::DecodableType BLTDevIK; |
191 | | Attributes::BLTCSSecurityLevel::TypeInfo::DecodableType BLTCSSecurityLevel = |
192 | | static_cast<chip::app::Clusters::ProximityRanging::BLTCSSecurityLevelEnum>(0); |
193 | | Attributes::BLTCSModeCapability::TypeInfo::DecodableType BLTCSModeCapability = |
194 | | static_cast<chip::app::Clusters::ProximityRanging::BLTCSModeEnum>(0); |
195 | | Attributes::SessionIDList::TypeInfo::DecodableType sessionIDList; |
196 | | Attributes::RangingConstraints::TypeInfo::DecodableType rangingConstraints; |
197 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
198 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
199 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
200 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
201 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
202 | | }; |
203 | | }; |
204 | | } // namespace Attributes |
205 | | } // namespace ProximityRanging |
206 | | } // namespace Clusters |
207 | | } // namespace app |
208 | | } // namespace chip |