/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::Nullable<chip::app::DataModel::List<const uint8_t>>; |
126 | | using DecodableType = chip::app::DataModel::Nullable<chip::app::DataModel::DecodableList<uint8_t>>; |
127 | | using DecodableArgType = const chip::app::DataModel::Nullable<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 GeneratedCommandList { |
135 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
136 | | { |
137 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
138 | | }; |
139 | | } // namespace GeneratedCommandList |
140 | | namespace AcceptedCommandList { |
141 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
142 | | { |
143 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
144 | | }; |
145 | | } // namespace AcceptedCommandList |
146 | | namespace AttributeList { |
147 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
148 | | { |
149 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
150 | | }; |
151 | | } // namespace AttributeList |
152 | | namespace FeatureMap { |
153 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
154 | | { |
155 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
156 | | }; |
157 | | } // namespace FeatureMap |
158 | | namespace ClusterRevision { |
159 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
160 | | { |
161 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
162 | | }; |
163 | | } // namespace ClusterRevision |
164 | | |
165 | | struct TypeInfo |
166 | | { |
167 | | struct DecodableType |
168 | | { |
169 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ProximityRanging::Id; } |
170 | | |
171 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
172 | | |
173 | | Attributes::RangingCapabilities::TypeInfo::DecodableType rangingCapabilities; |
174 | | Attributes::WiFiDevIK::TypeInfo::DecodableType wiFiDevIK; |
175 | | Attributes::BLEDeviceID::TypeInfo::DecodableType BLEDeviceID = static_cast<uint64_t>(0); |
176 | | Attributes::BLTDevIK::TypeInfo::DecodableType BLTDevIK; |
177 | | Attributes::BLTCSSecurityLevel::TypeInfo::DecodableType BLTCSSecurityLevel = |
178 | | static_cast<chip::app::Clusters::ProximityRanging::BLTCSSecurityLevelEnum>(0); |
179 | | Attributes::BLTCSModeCapability::TypeInfo::DecodableType BLTCSModeCapability = |
180 | | static_cast<chip::app::Clusters::ProximityRanging::BLTCSModeEnum>(0); |
181 | | Attributes::SessionIDList::TypeInfo::DecodableType sessionIDList; |
182 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
183 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
184 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
185 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
186 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
187 | | }; |
188 | | }; |
189 | | } // namespace Attributes |
190 | | } // namespace ProximityRanging |
191 | | } // namespace Clusters |
192 | | } // namespace app |
193 | | } // namespace chip |