Coverage Report

Created: 2026-05-16 06:48

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/TemperatureControl/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/TemperatureControl/ClusterId.h>
37
#include <clusters/TemperatureControl/CommandIds.h>
38
#include <clusters/TemperatureControl/Enums.h>
39
#include <clusters/TemperatureControl/Structs.h>
40
41
#include <cstdint>
42
43
namespace chip {
44
namespace app {
45
namespace Clusters {
46
namespace TemperatureControl {
47
namespace Commands {
48
// Forward-declarations so we can reference these later.
49
50
namespace SetTemperature {
51
struct Type;
52
struct DecodableType;
53
} // namespace SetTemperature
54
55
} // namespace Commands
56
57
namespace Commands {
58
namespace SetTemperature {
59
enum class Fields : uint8_t
60
{
61
    kTargetTemperature      = 0,
62
    kTargetTemperatureLevel = 1,
63
};
64
65
struct Type
66
{
67
public:
68
    // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
69
0
    static constexpr CommandId GetCommandId() { return Commands::SetTemperature::Id; }
70
0
    static constexpr ClusterId GetClusterId() { return Clusters::TemperatureControl::Id; }
71
72
    Optional<int16_t> targetTemperature;
73
    Optional<uint8_t> targetTemperatureLevel;
74
75
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
76
77
    using ResponseType = DataModel::NullObjectType;
78
79
0
    static constexpr bool MustUseTimedInvoke() { return false; }
80
};
81
82
struct DecodableType
83
{
84
public:
85
0
    static constexpr CommandId GetCommandId() { return Commands::SetTemperature::Id; }
86
0
    static constexpr ClusterId GetClusterId() { return Clusters::TemperatureControl::Id; }
87
    static constexpr bool kIsFabricScoped = false;
88
89
    Optional<int16_t> targetTemperature;
90
    Optional<uint8_t> targetTemperatureLevel;
91
92
    CHIP_ERROR Decode(TLV::TLVReader & reader);
93
};
94
}; // namespace SetTemperature
95
} // namespace Commands
96
} // namespace TemperatureControl
97
} // namespace Clusters
98
} // namespace app
99
} // namespace chip