/src/connectedhomeip/zzz_generated/app-common/clusters/SampleMei/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/SampleMei/ClusterId.h> |
37 | | #include <clusters/SampleMei/CommandIds.h> |
38 | | #include <clusters/SampleMei/Enums.h> |
39 | | #include <clusters/SampleMei/Structs.h> |
40 | | |
41 | | #include <cstdint> |
42 | | |
43 | | namespace chip { |
44 | | namespace app { |
45 | | namespace Clusters { |
46 | | namespace SampleMei { |
47 | | namespace Commands { |
48 | | // Forward-declarations so we can reference these later. |
49 | | |
50 | | namespace Ping { |
51 | | struct Type; |
52 | | struct DecodableType; |
53 | | } // namespace Ping |
54 | | |
55 | | namespace AddArgumentsResponse { |
56 | | struct Type; |
57 | | struct DecodableType; |
58 | | } // namespace AddArgumentsResponse |
59 | | |
60 | | namespace AddArguments { |
61 | | struct Type; |
62 | | struct DecodableType; |
63 | | } // namespace AddArguments |
64 | | |
65 | | } // namespace Commands |
66 | | |
67 | | namespace Commands { |
68 | | namespace Ping { |
69 | | enum class Fields : uint8_t |
70 | | { |
71 | | }; |
72 | | |
73 | | struct Type |
74 | | { |
75 | | public: |
76 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
77 | 0 | static constexpr CommandId GetCommandId() { return Commands::Ping::Id; } |
78 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::SampleMei::Id; } |
79 | | |
80 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
81 | | |
82 | | using ResponseType = DataModel::NullObjectType; |
83 | | |
84 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
85 | | }; |
86 | | |
87 | | struct DecodableType |
88 | | { |
89 | | public: |
90 | 0 | static constexpr CommandId GetCommandId() { return Commands::Ping::Id; } |
91 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::SampleMei::Id; } |
92 | | static constexpr bool kIsFabricScoped = false; |
93 | | |
94 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
95 | | }; |
96 | | }; // namespace Ping |
97 | | namespace AddArgumentsResponse { |
98 | | enum class Fields : uint8_t |
99 | | { |
100 | | kReturnValue = 0, |
101 | | }; |
102 | | |
103 | | struct Type |
104 | | { |
105 | | public: |
106 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
107 | 0 | static constexpr CommandId GetCommandId() { return Commands::AddArgumentsResponse::Id; } |
108 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::SampleMei::Id; } |
109 | | |
110 | | uint8_t returnValue = static_cast<uint8_t>(0); |
111 | | |
112 | | CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const; |
113 | | |
114 | | using ResponseType = DataModel::NullObjectType; |
115 | | |
116 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
117 | | }; |
118 | | |
119 | | struct DecodableType |
120 | | { |
121 | | public: |
122 | 0 | static constexpr CommandId GetCommandId() { return Commands::AddArgumentsResponse::Id; } |
123 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::SampleMei::Id; } |
124 | | |
125 | | uint8_t returnValue = static_cast<uint8_t>(0); |
126 | | |
127 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
128 | | }; |
129 | | }; // namespace AddArgumentsResponse |
130 | | namespace AddArguments { |
131 | | enum class Fields : uint8_t |
132 | | { |
133 | | kArg1 = 0, |
134 | | kArg2 = 1, |
135 | | }; |
136 | | |
137 | | struct Type |
138 | | { |
139 | | public: |
140 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
141 | 0 | static constexpr CommandId GetCommandId() { return Commands::AddArguments::Id; } |
142 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::SampleMei::Id; } |
143 | | |
144 | | uint8_t arg1 = static_cast<uint8_t>(0); |
145 | | uint8_t arg2 = static_cast<uint8_t>(0); |
146 | | |
147 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
148 | | |
149 | | using ResponseType = Clusters::SampleMei::Commands::AddArgumentsResponse::DecodableType; |
150 | | |
151 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
152 | | }; |
153 | | |
154 | | struct DecodableType |
155 | | { |
156 | | public: |
157 | 0 | static constexpr CommandId GetCommandId() { return Commands::AddArguments::Id; } |
158 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::SampleMei::Id; } |
159 | | static constexpr bool kIsFabricScoped = false; |
160 | | |
161 | | uint8_t arg1 = static_cast<uint8_t>(0); |
162 | | uint8_t arg2 = static_cast<uint8_t>(0); |
163 | | |
164 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
165 | | }; |
166 | | }; // namespace AddArguments |
167 | | } // namespace Commands |
168 | | } // namespace SampleMei |
169 | | } // namespace Clusters |
170 | | } // namespace app |
171 | | } // namespace chip |