/src/connectedhomeip/zzz_generated/app-common/clusters/Groupcast/Events.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-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/Groupcast/ClusterId.h> |
35 | | #include <clusters/Groupcast/Enums.h> |
36 | | #include <clusters/Groupcast/EventIds.h> |
37 | | #include <clusters/Groupcast/Structs.h> |
38 | | |
39 | | #include <cstdint> |
40 | | |
41 | | namespace chip { |
42 | | namespace app { |
43 | | namespace Clusters { |
44 | | namespace Groupcast { |
45 | | namespace Events { |
46 | | namespace GroupcastTesting { |
47 | | static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; |
48 | | |
49 | | enum class Fields : uint8_t |
50 | | { |
51 | | kSourceIpAddress = 0, |
52 | | kDestinationIpAddress = 1, |
53 | | kGroupID = 2, |
54 | | kEndpointID = 3, |
55 | | kClusterID = 4, |
56 | | kElementID = 5, |
57 | | kAccessAllowed = 6, |
58 | | kGroupcastTestResult = 7, |
59 | | kFabricIndex = 254, |
60 | | }; |
61 | | |
62 | | struct Type |
63 | | { |
64 | | public: |
65 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
66 | 0 | static constexpr EventId GetEventId() { return Events::GroupcastTesting::Id; } |
67 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
68 | | static constexpr bool kIsFabricScoped = true; |
69 | | |
70 | | Optional<chip::ByteSpan> sourceIpAddress; |
71 | | Optional<chip::ByteSpan> destinationIpAddress; |
72 | | Optional<chip::GroupId> groupID; |
73 | | Optional<chip::EndpointId> endpointID; |
74 | | Optional<chip::ClusterId> clusterID; |
75 | | Optional<uint32_t> elementID; |
76 | | Optional<bool> accessAllowed; |
77 | | GroupcastTestResultEnum groupcastTestResult = static_cast<GroupcastTestResultEnum>(0); |
78 | | chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0); |
79 | | |
80 | 0 | auto GetFabricIndex() const { return fabricIndex; } |
81 | | |
82 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
83 | | }; |
84 | | |
85 | | struct DecodableType |
86 | | { |
87 | | public: |
88 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
89 | 0 | static constexpr EventId GetEventId() { return Events::GroupcastTesting::Id; } |
90 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::Groupcast::Id; } |
91 | | |
92 | | Optional<chip::ByteSpan> sourceIpAddress; |
93 | | Optional<chip::ByteSpan> destinationIpAddress; |
94 | | Optional<chip::GroupId> groupID; |
95 | | Optional<chip::EndpointId> endpointID; |
96 | | Optional<chip::ClusterId> clusterID; |
97 | | Optional<uint32_t> elementID; |
98 | | Optional<bool> accessAllowed; |
99 | | GroupcastTestResultEnum groupcastTestResult = static_cast<GroupcastTestResultEnum>(0); |
100 | | chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0); |
101 | | |
102 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
103 | | }; |
104 | | } // namespace GroupcastTesting |
105 | | } // namespace Events |
106 | | } // namespace Groupcast |
107 | | } // namespace Clusters |
108 | | } // namespace app |
109 | | } // namespace chip |