/src/connectedhomeip/zzz_generated/app-common/clusters/CommissionerControl/Commands.h
Line | Count | Source (jump to first uncovered line) |
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-Commands.h.zapt |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <app/data-model/DecodableList.h> |
24 | | #include <app/data-model/Encode.h> |
25 | | #include <app/data-model/List.h> |
26 | | #include <app/data-model/NullObject.h> |
27 | | #include <app/data-model/Nullable.h> |
28 | | #include <lib/core/DataModelTypes.h> |
29 | | #include <lib/core/Optional.h> |
30 | | #include <lib/core/TLV.h> |
31 | | #include <lib/support/BitMask.h> |
32 | | |
33 | | #include <clusters/shared/Enums.h> |
34 | | #include <clusters/shared/Structs.h> |
35 | | |
36 | | #include <clusters/CommissionerControl/ClusterId.h> |
37 | | #include <clusters/CommissionerControl/CommandIds.h> |
38 | | #include <clusters/CommissionerControl/Enums.h> |
39 | | #include <clusters/CommissionerControl/Structs.h> |
40 | | |
41 | | #include <cstdint> |
42 | | |
43 | | namespace chip { |
44 | | namespace app { |
45 | | namespace Clusters { |
46 | | namespace CommissionerControl { |
47 | | namespace Commands { |
48 | | // Forward-declarations so we can reference these later. |
49 | | |
50 | | namespace RequestCommissioningApproval { |
51 | | struct Type; |
52 | | struct DecodableType; |
53 | | } // namespace RequestCommissioningApproval |
54 | | |
55 | | namespace CommissionNode { |
56 | | struct Type; |
57 | | struct DecodableType; |
58 | | } // namespace CommissionNode |
59 | | |
60 | | namespace ReverseOpenCommissioningWindow { |
61 | | struct Type; |
62 | | struct DecodableType; |
63 | | } // namespace ReverseOpenCommissioningWindow |
64 | | |
65 | | } // namespace Commands |
66 | | |
67 | | namespace Commands { |
68 | | namespace RequestCommissioningApproval { |
69 | | enum class Fields : uint8_t |
70 | | { |
71 | | kRequestID = 0, |
72 | | kVendorID = 1, |
73 | | kProductID = 2, |
74 | | kLabel = 3, |
75 | | }; |
76 | | |
77 | | struct Type |
78 | | { |
79 | | public: |
80 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
81 | 0 | static constexpr CommandId GetCommandId() { return Commands::RequestCommissioningApproval::Id; } |
82 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CommissionerControl::Id; } |
83 | | |
84 | | uint64_t requestID = static_cast<uint64_t>(0); |
85 | | chip::VendorId vendorID = static_cast<chip::VendorId>(0); |
86 | | uint16_t productID = static_cast<uint16_t>(0); |
87 | | Optional<chip::CharSpan> label; |
88 | | |
89 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
90 | | |
91 | | using ResponseType = DataModel::NullObjectType; |
92 | | |
93 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
94 | | }; |
95 | | |
96 | | struct DecodableType |
97 | | { |
98 | | public: |
99 | 0 | static constexpr CommandId GetCommandId() { return Commands::RequestCommissioningApproval::Id; } |
100 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CommissionerControl::Id; } |
101 | | static constexpr bool kIsFabricScoped = false; |
102 | | |
103 | | uint64_t requestID = static_cast<uint64_t>(0); |
104 | | chip::VendorId vendorID = static_cast<chip::VendorId>(0); |
105 | | uint16_t productID = static_cast<uint16_t>(0); |
106 | | Optional<chip::CharSpan> label; |
107 | | |
108 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
109 | | }; |
110 | | }; // namespace RequestCommissioningApproval |
111 | | namespace CommissionNode { |
112 | | enum class Fields : uint8_t |
113 | | { |
114 | | kRequestID = 0, |
115 | | kResponseTimeoutSeconds = 1, |
116 | | }; |
117 | | |
118 | | struct Type |
119 | | { |
120 | | public: |
121 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
122 | 0 | static constexpr CommandId GetCommandId() { return Commands::CommissionNode::Id; } |
123 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CommissionerControl::Id; } |
124 | | |
125 | | uint64_t requestID = static_cast<uint64_t>(0); |
126 | | uint16_t responseTimeoutSeconds = static_cast<uint16_t>(0); |
127 | | |
128 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
129 | | |
130 | | using ResponseType = Clusters::CommissionerControl::Commands::ReverseOpenCommissioningWindow::DecodableType; |
131 | | |
132 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
133 | | }; |
134 | | |
135 | | struct DecodableType |
136 | | { |
137 | | public: |
138 | 0 | static constexpr CommandId GetCommandId() { return Commands::CommissionNode::Id; } |
139 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CommissionerControl::Id; } |
140 | | static constexpr bool kIsFabricScoped = false; |
141 | | |
142 | | uint64_t requestID = static_cast<uint64_t>(0); |
143 | | uint16_t responseTimeoutSeconds = static_cast<uint16_t>(0); |
144 | | |
145 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
146 | | }; |
147 | | }; // namespace CommissionNode |
148 | | namespace ReverseOpenCommissioningWindow { |
149 | | enum class Fields : uint8_t |
150 | | { |
151 | | kCommissioningTimeout = 0, |
152 | | kPAKEPasscodeVerifier = 1, |
153 | | kDiscriminator = 2, |
154 | | kIterations = 3, |
155 | | kSalt = 4, |
156 | | }; |
157 | | |
158 | | struct Type |
159 | | { |
160 | | public: |
161 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
162 | 0 | static constexpr CommandId GetCommandId() { return Commands::ReverseOpenCommissioningWindow::Id; } |
163 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CommissionerControl::Id; } |
164 | | |
165 | | uint16_t commissioningTimeout = static_cast<uint16_t>(0); |
166 | | chip::ByteSpan PAKEPasscodeVerifier; |
167 | | uint16_t discriminator = static_cast<uint16_t>(0); |
168 | | uint32_t iterations = static_cast<uint32_t>(0); |
169 | | chip::ByteSpan salt; |
170 | | |
171 | | CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const; |
172 | | |
173 | | using ResponseType = DataModel::NullObjectType; |
174 | | |
175 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
176 | | }; |
177 | | |
178 | | struct DecodableType |
179 | | { |
180 | | public: |
181 | 0 | static constexpr CommandId GetCommandId() { return Commands::ReverseOpenCommissioningWindow::Id; } |
182 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CommissionerControl::Id; } |
183 | | |
184 | | uint16_t commissioningTimeout = static_cast<uint16_t>(0); |
185 | | chip::ByteSpan PAKEPasscodeVerifier; |
186 | | uint16_t discriminator = static_cast<uint16_t>(0); |
187 | | uint32_t iterations = static_cast<uint32_t>(0); |
188 | | chip::ByteSpan salt; |
189 | | |
190 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
191 | | }; |
192 | | }; // namespace ReverseOpenCommissioningWindow |
193 | | } // namespace Commands |
194 | | } // namespace CommissionerControl |
195 | | } // namespace Clusters |
196 | | } // namespace app |
197 | | } // namespace chip |