Coverage Report

Created: 2026-02-12 06:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/OperationalState/Commands.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-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/OperationalState/ClusterId.h>
37
#include <clusters/OperationalState/CommandIds.h>
38
#include <clusters/OperationalState/Enums.h>
39
#include <clusters/OperationalState/Structs.h>
40
41
#include <cstdint>
42
43
namespace chip {
44
namespace app {
45
namespace Clusters {
46
namespace OperationalState {
47
namespace Commands {
48
// Forward-declarations so we can reference these later.
49
50
namespace Pause {
51
struct Type;
52
struct DecodableType;
53
} // namespace Pause
54
55
namespace Stop {
56
struct Type;
57
struct DecodableType;
58
} // namespace Stop
59
60
namespace Start {
61
struct Type;
62
struct DecodableType;
63
} // namespace Start
64
65
namespace Resume {
66
struct Type;
67
struct DecodableType;
68
} // namespace Resume
69
70
namespace OperationalCommandResponse {
71
struct Type;
72
struct DecodableType;
73
} // namespace OperationalCommandResponse
74
75
} // namespace Commands
76
77
namespace Commands {
78
namespace Pause {
79
enum class Fields : uint8_t
80
{
81
};
82
83
struct Type
84
{
85
public:
86
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
87
0
    static constexpr CommandId GetCommandId() { return Commands::Pause::Id; }
88
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
89
90
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
91
92
    using ResponseType = Clusters::OperationalState::Commands::OperationalCommandResponse::DecodableType;
93
94
0
    static constexpr bool MustUseTimedInvoke() { return false; }
95
};
96
97
struct DecodableType
98
{
99
public:
100
0
    static constexpr CommandId GetCommandId() { return Commands::Pause::Id; }
101
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
102
    static constexpr bool kIsFabricScoped = false;
103
104
    CHIP_ERROR Decode(TLV::TLVReader & reader);
105
};
106
}; // namespace Pause
107
namespace Stop {
108
enum class Fields : uint8_t
109
{
110
};
111
112
struct Type
113
{
114
public:
115
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
116
0
    static constexpr CommandId GetCommandId() { return Commands::Stop::Id; }
117
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
118
119
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
120
121
    using ResponseType = Clusters::OperationalState::Commands::OperationalCommandResponse::DecodableType;
122
123
0
    static constexpr bool MustUseTimedInvoke() { return false; }
124
};
125
126
struct DecodableType
127
{
128
public:
129
0
    static constexpr CommandId GetCommandId() { return Commands::Stop::Id; }
130
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
131
    static constexpr bool kIsFabricScoped = false;
132
133
    CHIP_ERROR Decode(TLV::TLVReader & reader);
134
};
135
}; // namespace Stop
136
namespace Start {
137
enum class Fields : uint8_t
138
{
139
};
140
141
struct Type
142
{
143
public:
144
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
145
0
    static constexpr CommandId GetCommandId() { return Commands::Start::Id; }
146
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
147
148
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
149
150
    using ResponseType = Clusters::OperationalState::Commands::OperationalCommandResponse::DecodableType;
151
152
0
    static constexpr bool MustUseTimedInvoke() { return false; }
153
};
154
155
struct DecodableType
156
{
157
public:
158
0
    static constexpr CommandId GetCommandId() { return Commands::Start::Id; }
159
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
160
    static constexpr bool kIsFabricScoped = false;
161
162
    CHIP_ERROR Decode(TLV::TLVReader & reader);
163
};
164
}; // namespace Start
165
namespace Resume {
166
enum class Fields : uint8_t
167
{
168
};
169
170
struct Type
171
{
172
public:
173
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
174
0
    static constexpr CommandId GetCommandId() { return Commands::Resume::Id; }
175
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
176
177
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
178
179
    using ResponseType = Clusters::OperationalState::Commands::OperationalCommandResponse::DecodableType;
180
181
0
    static constexpr bool MustUseTimedInvoke() { return false; }
182
};
183
184
struct DecodableType
185
{
186
public:
187
0
    static constexpr CommandId GetCommandId() { return Commands::Resume::Id; }
188
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
189
    static constexpr bool kIsFabricScoped = false;
190
191
    CHIP_ERROR Decode(TLV::TLVReader & reader);
192
};
193
}; // namespace Resume
194
namespace OperationalCommandResponse {
195
enum class Fields : uint8_t
196
{
197
    kCommandResponseState = 0,
198
};
199
200
struct Type
201
{
202
public:
203
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
204
0
    static constexpr CommandId GetCommandId() { return Commands::OperationalCommandResponse::Id; }
205
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
206
207
    Structs::ErrorStateStruct::Type commandResponseState;
208
209
    CHIP_ERROR Encode(DataModel::FabricAwareTLVWriter & aWriter, TLV::Tag aTag) const;
210
211
    using ResponseType = DataModel::NullObjectType;
212
213
0
    static constexpr bool MustUseTimedInvoke() { return false; }
214
};
215
216
struct DecodableType
217
{
218
public:
219
0
    static constexpr CommandId GetCommandId() { return Commands::OperationalCommandResponse::Id; }
220
0
    static constexpr ClusterId GetClusterId() { return Clusters::OperationalState::Id; }
221
222
    Structs::ErrorStateStruct::DecodableType commandResponseState;
223
224
    CHIP_ERROR Decode(TLV::TLVReader & reader);
225
};
226
}; // namespace OperationalCommandResponse
227
} // namespace Commands
228
} // namespace OperationalState
229
} // namespace Clusters
230
} // namespace app
231
} // namespace chip