Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / bridge-app / bridge-common / gen / af-gen-event.h
1 /**
2  *
3  *    Copyright (c) 2020 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 /**
19  *
20  *    Copyright (c) 2020 Silicon Labs
21  *
22  *    Licensed under the Apache License, Version 2.0 (the "License");
23  *    you may not use this file except in compliance with the License.
24  *    You may obtain a copy of the License at
25  *
26  *        http://www.apache.org/licenses/LICENSE-2.0
27  *
28  *    Unless required by applicable law or agreed to in writing, software
29  *    distributed under the License is distributed on an "AS IS" BASIS,
30  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31  *    See the License for the specific language governing permissions and
32  *    limitations under the License.
33  */
34 // This file is generated by Simplicity Studio.  Please do not edit manually.
35 //
36 //
37
38 // Enclosing macro to prevent multiple inclusion
39 #ifndef __AF_GEN_EVENT__
40 #define __AF_GEN_EVENT__
41
42 // Code used to configure the cluster event mechanism
43 #define EMBER_AF_GENERATED_EVENT_CODE                                                                                              \
44     EmberEventControl emberAfLevelControlClusterServerTickCallbackControl1;                                                        \
45     static void clusterTickWrapper(EmberEventControl * control, EmberAfTickFunction callback, uint8_t endpoint)                    \
46     {                                                                                                                              \
47         /* emberAfPushEndpointNetworkIndex(endpoint); */                                                                           \
48         emberEventControlSetInactive(control);                                                                                     \
49         (*callback)(endpoint);                                                                                                     \
50         /* emberAfPopNetworkIndex(); */                                                                                            \
51     }                                                                                                                              \
52                                                                                                                                    \
53     void emberAfLevelControlClusterServerTickCallbackWrapperFunction1(void)                                                        \
54     {                                                                                                                              \
55         clusterTickWrapper(&emberAfLevelControlClusterServerTickCallbackControl1, emberAfLevelControlClusterServerTickCallback,    \
56                            1);                                                                                                     \
57     }
58
59 // EmberEventData structs used to populate the EmberEventData table
60 #define EMBER_AF_GENERATED_EVENTS                                                                                                  \
61     { &emberAfLevelControlClusterServerTickCallbackControl1, emberAfLevelControlClusterServerTickCallbackWrapperFunction1 },
62
63 #define EMBER_AF_GENERATED_EVENT_STRINGS "Level Control Cluster Server EP 1",
64
65 // The length of the event context table used to track and retrieve cluster events
66 #define EMBER_AF_EVENT_CONTEXT_LENGTH 1
67
68 // EmberAfEventContext structs used to populate the EmberAfEventContext table
69 #define EMBER_AF_GENERATED_EVENT_CONTEXT                                                                                           \
70     { 0x1, 0x8, false, EMBER_AF_LONG_POLL, EMBER_AF_OK_TO_SLEEP, &emberAfLevelControlClusterServerTickCallbackControl1 },
71
72 #endif // __AF_GEN_EVENT__