Coverage Report

Created: 2025-08-28 06:31

/src/connectedhomeip/zzz_generated/app-common/clusters/ClosureControl/Events.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-Events.h.zapt
20
21
#pragma once
22
23
#include <app/EventLoggingTypes.h>
24
#include <app/data-model/DecodableList.h>
25
#include <app/data-model/List.h>
26
#include <app/data-model/Nullable.h>
27
#include <lib/core/DataModelTypes.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Enums.h>
32
#include <clusters/shared/Structs.h>
33
34
#include <clusters/ClosureControl/ClusterId.h>
35
#include <clusters/ClosureControl/Enums.h>
36
#include <clusters/ClosureControl/EventIds.h>
37
#include <clusters/ClosureControl/Structs.h>
38
39
#include <cstdint>
40
41
namespace chip {
42
namespace app {
43
namespace Clusters {
44
namespace ClosureControl {
45
namespace Events {
46
namespace OperationalError {
47
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;
48
49
enum class Fields : uint8_t
50
{
51
    kErrorState = 0,
52
};
53
54
struct Type
55
{
56
public:
57
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
58
0
    static constexpr EventId GetEventId() { return Events::OperationalError::Id; }
59
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
60
    static constexpr bool kIsFabricScoped = false;
61
62
    DataModel::List<const ClosureErrorEnum> errorState;
63
64
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
65
};
66
67
struct DecodableType
68
{
69
public:
70
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
71
0
    static constexpr EventId GetEventId() { return Events::OperationalError::Id; }
72
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
73
74
    DataModel::DecodableList<ClosureErrorEnum> errorState;
75
76
    CHIP_ERROR Decode(TLV::TLVReader & reader);
77
};
78
} // namespace OperationalError
79
namespace MovementCompleted {
80
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
81
82
enum class Fields : uint8_t
83
{
84
};
85
86
struct Type
87
{
88
public:
89
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
90
0
    static constexpr EventId GetEventId() { return Events::MovementCompleted::Id; }
91
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
92
    static constexpr bool kIsFabricScoped = false;
93
94
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
95
};
96
97
struct DecodableType
98
{
99
public:
100
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
101
0
    static constexpr EventId GetEventId() { return Events::MovementCompleted::Id; }
102
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
103
104
    CHIP_ERROR Decode(TLV::TLVReader & reader);
105
};
106
} // namespace MovementCompleted
107
namespace EngageStateChanged {
108
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
109
110
enum class Fields : uint8_t
111
{
112
    kEngageValue = 0,
113
};
114
115
struct Type
116
{
117
public:
118
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
119
0
    static constexpr EventId GetEventId() { return Events::EngageStateChanged::Id; }
120
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
121
    static constexpr bool kIsFabricScoped = false;
122
123
    bool engageValue = static_cast<bool>(0);
124
125
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
126
};
127
128
struct DecodableType
129
{
130
public:
131
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
132
0
    static constexpr EventId GetEventId() { return Events::EngageStateChanged::Id; }
133
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
134
135
    bool engageValue = static_cast<bool>(0);
136
137
    CHIP_ERROR Decode(TLV::TLVReader & reader);
138
};
139
} // namespace EngageStateChanged
140
namespace SecureStateChanged {
141
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
142
143
enum class Fields : uint8_t
144
{
145
    kSecureValue = 0,
146
};
147
148
struct Type
149
{
150
public:
151
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
152
0
    static constexpr EventId GetEventId() { return Events::SecureStateChanged::Id; }
153
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
154
    static constexpr bool kIsFabricScoped = false;
155
156
    bool secureValue = static_cast<bool>(0);
157
158
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
159
};
160
161
struct DecodableType
162
{
163
public:
164
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
165
0
    static constexpr EventId GetEventId() { return Events::SecureStateChanged::Id; }
166
0
    static constexpr ClusterId GetClusterId() { return Clusters::ClosureControl::Id; }
167
168
    bool secureValue = static_cast<bool>(0);
169
170
    CHIP_ERROR Decode(TLV::TLVReader & reader);
171
};
172
} // namespace SecureStateChanged
173
} // namespace Events
174
} // namespace ClosureControl
175
} // namespace Clusters
176
} // namespace app
177
} // namespace chip