/src/connectedhomeip/zzz_generated/app-common/clusters/ValveConfigurationAndControl/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/ValveConfigurationAndControl/ClusterId.h> |
35 | | #include <clusters/ValveConfigurationAndControl/Enums.h> |
36 | | #include <clusters/ValveConfigurationAndControl/EventIds.h> |
37 | | #include <clusters/ValveConfigurationAndControl/Structs.h> |
38 | | |
39 | | #include <cstdint> |
40 | | |
41 | | namespace chip { |
42 | | namespace app { |
43 | | namespace Clusters { |
44 | | namespace ValveConfigurationAndControl { |
45 | | namespace Events { |
46 | | namespace ValveStateChanged { |
47 | | static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; |
48 | | |
49 | | enum class Fields : uint8_t |
50 | | { |
51 | | kValveState = 0, |
52 | | kValveLevel = 1, |
53 | | }; |
54 | | |
55 | | struct Type |
56 | | { |
57 | | public: |
58 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
59 | 0 | static constexpr EventId GetEventId() { return Events::ValveStateChanged::Id; } |
60 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; } |
61 | | static constexpr bool kIsFabricScoped = false; |
62 | | |
63 | | ValveStateEnum valveState = static_cast<ValveStateEnum>(0); |
64 | | Optional<chip::Percent> valveLevel; |
65 | | |
66 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
67 | | }; |
68 | | |
69 | | struct DecodableType |
70 | | { |
71 | | public: |
72 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
73 | 0 | static constexpr EventId GetEventId() { return Events::ValveStateChanged::Id; } |
74 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; } |
75 | | |
76 | | ValveStateEnum valveState = static_cast<ValveStateEnum>(0); |
77 | | Optional<chip::Percent> valveLevel; |
78 | | |
79 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
80 | | }; |
81 | | } // namespace ValveStateChanged |
82 | | namespace ValveFault { |
83 | | static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; |
84 | | |
85 | | enum class Fields : uint8_t |
86 | | { |
87 | | kValveFault = 0, |
88 | | }; |
89 | | |
90 | | struct Type |
91 | | { |
92 | | public: |
93 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
94 | 0 | static constexpr EventId GetEventId() { return Events::ValveFault::Id; } |
95 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; } |
96 | | static constexpr bool kIsFabricScoped = false; |
97 | | |
98 | | chip::BitMask<ValveFaultBitmap> valveFault = static_cast<chip::BitMask<ValveFaultBitmap>>(0); |
99 | | |
100 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
101 | | }; |
102 | | |
103 | | struct DecodableType |
104 | | { |
105 | | public: |
106 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
107 | 0 | static constexpr EventId GetEventId() { return Events::ValveFault::Id; } |
108 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; } |
109 | | |
110 | | chip::BitMask<ValveFaultBitmap> valveFault = static_cast<chip::BitMask<ValveFaultBitmap>>(0); |
111 | | |
112 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
113 | | }; |
114 | | } // namespace ValveFault |
115 | | } // namespace Events |
116 | | } // namespace ValveConfigurationAndControl |
117 | | } // namespace Clusters |
118 | | } // namespace app |
119 | | } // namespace chip |