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