Coverage Report

Created: 2026-04-09 06:56

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/ModeSelect/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/ModeSelect/AttributeIds.h>
36
#include <clusters/ModeSelect/ClusterId.h>
37
#include <clusters/ModeSelect/Enums.h>
38
#include <clusters/ModeSelect/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace ModeSelect {
44
namespace Attributes {
45
46
namespace Description {
47
struct TypeInfo
48
{
49
    using Type             = chip::CharSpan;
50
    using DecodableType    = chip::CharSpan;
51
    using DecodableArgType = chip::CharSpan;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Description::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
0
    static constexpr size_t MaxLength() { return 64; }
57
};
58
} // namespace Description
59
namespace StandardNamespace {
60
struct TypeInfo
61
{
62
    using Type             = chip::app::DataModel::Nullable<uint16_t>;
63
    using DecodableType    = chip::app::DataModel::Nullable<uint16_t>;
64
    using DecodableArgType = const chip::app::DataModel::Nullable<uint16_t> &;
65
66
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
67
0
    static constexpr AttributeId GetAttributeId() { return Attributes::StandardNamespace::Id; }
68
0
    static constexpr bool MustUseTimedWrite() { return false; }
69
};
70
} // namespace StandardNamespace
71
namespace SupportedModes {
72
struct TypeInfo
73
{
74
    using Type = chip::app::DataModel::List<const chip::app::Clusters::ModeSelect::Structs::ModeOptionStruct::Type>;
75
    using DecodableType =
76
        chip::app::DataModel::DecodableList<chip::app::Clusters::ModeSelect::Structs::ModeOptionStruct::DecodableType>;
77
    using DecodableArgType =
78
        const chip::app::DataModel::DecodableList<chip::app::Clusters::ModeSelect::Structs::ModeOptionStruct::DecodableType> &;
79
80
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
81
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SupportedModes::Id; }
82
0
    static constexpr bool MustUseTimedWrite() { return false; }
83
};
84
} // namespace SupportedModes
85
namespace CurrentMode {
86
struct TypeInfo
87
{
88
    using Type             = uint8_t;
89
    using DecodableType    = uint8_t;
90
    using DecodableArgType = uint8_t;
91
92
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
93
0
    static constexpr AttributeId GetAttributeId() { return Attributes::CurrentMode::Id; }
94
0
    static constexpr bool MustUseTimedWrite() { return false; }
95
};
96
} // namespace CurrentMode
97
namespace StartUpMode {
98
struct TypeInfo
99
{
100
    using Type             = chip::app::DataModel::Nullable<uint8_t>;
101
    using DecodableType    = chip::app::DataModel::Nullable<uint8_t>;
102
    using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
103
104
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
105
0
    static constexpr AttributeId GetAttributeId() { return Attributes::StartUpMode::Id; }
106
0
    static constexpr bool MustUseTimedWrite() { return false; }
107
};
108
} // namespace StartUpMode
109
namespace OnMode {
110
struct TypeInfo
111
{
112
    using Type             = chip::app::DataModel::Nullable<uint8_t>;
113
    using DecodableType    = chip::app::DataModel::Nullable<uint8_t>;
114
    using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
115
116
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
117
0
    static constexpr AttributeId GetAttributeId() { return Attributes::OnMode::Id; }
118
0
    static constexpr bool MustUseTimedWrite() { return false; }
119
};
120
} // namespace OnMode
121
namespace GeneratedCommandList {
122
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
123
{
124
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
125
};
126
} // namespace GeneratedCommandList
127
namespace AcceptedCommandList {
128
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
129
{
130
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
131
};
132
} // namespace AcceptedCommandList
133
namespace AttributeList {
134
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
135
{
136
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
137
};
138
} // namespace AttributeList
139
namespace FeatureMap {
140
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
141
{
142
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
143
};
144
} // namespace FeatureMap
145
namespace ClusterRevision {
146
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
147
{
148
0
    static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
149
};
150
} // namespace ClusterRevision
151
152
struct TypeInfo
153
{
154
    struct DecodableType
155
    {
156
0
        static constexpr ClusterId GetClusterId() { return Clusters::ModeSelect::Id; }
157
158
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
159
160
        Attributes::Description::TypeInfo::DecodableType description;
161
        Attributes::StandardNamespace::TypeInfo::DecodableType standardNamespace;
162
        Attributes::SupportedModes::TypeInfo::DecodableType supportedModes;
163
        Attributes::CurrentMode::TypeInfo::DecodableType currentMode = static_cast<uint8_t>(0);
164
        Attributes::StartUpMode::TypeInfo::DecodableType startUpMode;
165
        Attributes::OnMode::TypeInfo::DecodableType onMode;
166
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
167
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
168
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
169
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
170
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
171
    };
172
};
173
} // namespace Attributes
174
} // namespace ModeSelect
175
} // namespace Clusters
176
} // namespace app
177
} // namespace chip