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/AmbientContextSensing/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/AmbientContextSensing/AttributeIds.h>
36
#include <clusters/AmbientContextSensing/ClusterId.h>
37
#include <clusters/AmbientContextSensing/Enums.h>
38
#include <clusters/AmbientContextSensing/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace AmbientContextSensing {
44
namespace Attributes {
45
46
namespace HumanActivityDetected {
47
struct TypeInfo
48
{
49
    using Type             = bool;
50
    using DecodableType    = bool;
51
    using DecodableArgType = bool;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::HumanActivityDetected::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace HumanActivityDetected
58
namespace ObjectIdentified {
59
struct TypeInfo
60
{
61
    using Type             = bool;
62
    using DecodableType    = bool;
63
    using DecodableArgType = bool;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ObjectIdentified::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace ObjectIdentified
70
namespace AudioContextDetected {
71
struct TypeInfo
72
{
73
    using Type             = bool;
74
    using DecodableType    = bool;
75
    using DecodableArgType = bool;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AudioContextDetected::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace AudioContextDetected
82
namespace AmbientContextType {
83
struct TypeInfo
84
{
85
    using Type =
86
        chip::app::DataModel::List<const chip::app::Clusters::AmbientContextSensing::Structs::AmbientContextTypeStruct::Type>;
87
    using DecodableType = chip::app::DataModel::DecodableList<
88
        chip::app::Clusters::AmbientContextSensing::Structs::AmbientContextTypeStruct::DecodableType>;
89
    using DecodableArgType = const chip::app::DataModel::DecodableList<
90
        chip::app::Clusters::AmbientContextSensing::Structs::AmbientContextTypeStruct::DecodableType> &;
91
92
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
93
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AmbientContextType::Id; }
94
0
    static constexpr bool MustUseTimedWrite() { return false; }
95
};
96
} // namespace AmbientContextType
97
namespace AmbientContextTypeSupported {
98
struct TypeInfo
99
{
100
    using Type = chip::app::DataModel::List<const chip::app::Clusters::Globals::Structs::SemanticTagStruct::Type>;
101
    using DecodableType =
102
        chip::app::DataModel::DecodableList<chip::app::Clusters::Globals::Structs::SemanticTagStruct::DecodableType>;
103
    using DecodableArgType =
104
        const chip::app::DataModel::DecodableList<chip::app::Clusters::Globals::Structs::SemanticTagStruct::DecodableType> &;
105
106
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
107
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AmbientContextTypeSupported::Id; }
108
0
    static constexpr bool MustUseTimedWrite() { return false; }
109
};
110
} // namespace AmbientContextTypeSupported
111
namespace SimultaneousDetectionLimit {
112
struct TypeInfo
113
{
114
    using Type             = uint8_t;
115
    using DecodableType    = uint8_t;
116
    using DecodableArgType = uint8_t;
117
118
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
119
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SimultaneousDetectionLimit::Id; }
120
0
    static constexpr bool MustUseTimedWrite() { return false; }
121
};
122
} // namespace SimultaneousDetectionLimit
123
namespace ObjectCountReached {
124
struct TypeInfo
125
{
126
    using Type             = bool;
127
    using DecodableType    = bool;
128
    using DecodableArgType = bool;
129
130
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
131
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ObjectCountReached::Id; }
132
0
    static constexpr bool MustUseTimedWrite() { return false; }
133
};
134
} // namespace ObjectCountReached
135
namespace HoldTime {
136
struct TypeInfo
137
{
138
    using Type             = uint16_t;
139
    using DecodableType    = uint16_t;
140
    using DecodableArgType = uint16_t;
141
142
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
143
0
    static constexpr AttributeId GetAttributeId() { return Attributes::HoldTime::Id; }
144
0
    static constexpr bool MustUseTimedWrite() { return false; }
145
};
146
} // namespace HoldTime
147
namespace HoldTimeLimits {
148
struct TypeInfo
149
{
150
    using Type             = chip::app::Clusters::AmbientContextSensing::Structs::HoldTimeLimitsStruct::Type;
151
    using DecodableType    = chip::app::Clusters::AmbientContextSensing::Structs::HoldTimeLimitsStruct::DecodableType;
152
    using DecodableArgType = const chip::app::Clusters::AmbientContextSensing::Structs::HoldTimeLimitsStruct::DecodableType &;
153
154
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
155
0
    static constexpr AttributeId GetAttributeId() { return Attributes::HoldTimeLimits::Id; }
156
0
    static constexpr bool MustUseTimedWrite() { return false; }
157
};
158
} // namespace HoldTimeLimits
159
namespace PredictedActivity {
160
struct TypeInfo
161
{
162
    using Type =
163
        chip::app::DataModel::List<const chip::app::Clusters::AmbientContextSensing::Structs::PredictedActivityStruct::Type>;
164
    using DecodableType = chip::app::DataModel::DecodableList<
165
        chip::app::Clusters::AmbientContextSensing::Structs::PredictedActivityStruct::DecodableType>;
166
    using DecodableArgType = const chip::app::DataModel::DecodableList<
167
        chip::app::Clusters::AmbientContextSensing::Structs::PredictedActivityStruct::DecodableType> &;
168
169
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
170
0
    static constexpr AttributeId GetAttributeId() { return Attributes::PredictedActivity::Id; }
171
0
    static constexpr bool MustUseTimedWrite() { return false; }
172
};
173
} // namespace PredictedActivity
174
namespace GeneratedCommandList {
175
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
176
{
177
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
178
};
179
} // namespace GeneratedCommandList
180
namespace AcceptedCommandList {
181
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
182
{
183
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
184
};
185
} // namespace AcceptedCommandList
186
namespace AttributeList {
187
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
188
{
189
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
190
};
191
} // namespace AttributeList
192
namespace FeatureMap {
193
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
194
{
195
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
196
};
197
} // namespace FeatureMap
198
namespace ClusterRevision {
199
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
200
{
201
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
202
};
203
} // namespace ClusterRevision
204
205
struct TypeInfo
206
{
207
    struct DecodableType
208
    {
209
0
        static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; }
210
211
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
212
213
        Attributes::HumanActivityDetected::TypeInfo::DecodableType humanActivityDetected = static_cast<bool>(0);
214
        Attributes::ObjectIdentified::TypeInfo::DecodableType objectIdentified           = static_cast<bool>(0);
215
        Attributes::AudioContextDetected::TypeInfo::DecodableType audioContextDetected   = static_cast<bool>(0);
216
        Attributes::AmbientContextType::TypeInfo::DecodableType ambientContextType;
217
        Attributes::AmbientContextTypeSupported::TypeInfo::DecodableType ambientContextTypeSupported;
218
        Attributes::SimultaneousDetectionLimit::TypeInfo::DecodableType simultaneousDetectionLimit = static_cast<uint8_t>(0);
219
        Attributes::ObjectCountReached::TypeInfo::DecodableType objectCountReached                 = static_cast<bool>(0);
220
        Attributes::HoldTime::TypeInfo::DecodableType holdTime                                     = static_cast<uint16_t>(0);
221
        Attributes::HoldTimeLimits::TypeInfo::DecodableType holdTimeLimits;
222
        Attributes::PredictedActivity::TypeInfo::DecodableType predictedActivity;
223
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
224
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
225
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
226
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
227
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
228
    };
229
};
230
} // namespace Attributes
231
} // namespace AmbientContextSensing
232
} // namespace Clusters
233
} // namespace app
234
} // namespace chip