3 * Copyright (c) 2020 Project CHIP Authors
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 * Copyright (c) 2020 Silicon Labs
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
26 * http://www.apache.org/licenses/LICENSE-2.0
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.
34 // This file is generated by Simplicity Studio. Please do not edit manually.
38 // Enclosing macro to prevent multiple inclusion
39 #ifndef __AF_GEN_EVENT__
40 #define __AF_GEN_EVENT__
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) \
47 /* emberAfPushEndpointNetworkIndex(endpoint); */ \
48 emberEventControlSetInactive(control); \
49 (*callback)(endpoint); \
50 /* emberAfPopNetworkIndex(); */ \
53 void emberAfLevelControlClusterServerTickCallbackWrapperFunction1(void) \
55 clusterTickWrapper(&emberAfLevelControlClusterServerTickCallbackControl1, emberAfLevelControlClusterServerTickCallback, \
59 // EmberEventData structs used to populate the EmberEventData table
60 #define EMBER_AF_GENERATED_EVENTS \
61 { &emberAfLevelControlClusterServerTickCallbackControl1, emberAfLevelControlClusterServerTickCallbackWrapperFunction1 },
63 #define EMBER_AF_GENERATED_EVENT_STRINGS "Level Control Cluster Server EP 1",
65 // The length of the event context table used to track and retrieve cluster events
66 #define EMBER_AF_EVENT_CONTEXT_LENGTH 1
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 },
72 #endif // __AF_GEN_EVENT__