| /* |
| * |
| * Copyright (c) 2022 Project CHIP Authors |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| // THIS FILE IS GENERATED BY ZAP |
| |
| // Prevent multiple inclusion |
| #pragma once |
| |
| #include <lib/core/CHIPConfig.h> |
| |
| // Default values for the attributes longer than a pointer, |
| // in a form of a binary blob |
| // Separate block is generated for big-endian and little-endian cases. |
| #if BIGENDIAN_CPU |
| #define GENERATED_DEFAULTS \ |
| { \ |
| \ |
| /* Endpoint: 0, Cluster: Localization Configuration (server), big-endian */ \ |
| \ |
| /* 0 - ActiveLocale, */ \ |
| 5, 'e', 'n', '-', 'U', 'S', \ |
| \ |
| /* Endpoint: 0, Cluster: Unit Localization (server), big-endian */ \ |
| \ |
| /* 6 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x01, \ |
| \ |
| /* Endpoint: 0, Cluster: General Commissioning (server), big-endian */ \ |
| \ |
| /* 10 - Breadcrumb, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 18 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x06, \ |
| \ |
| /* Endpoint: 0, Cluster: Network Commissioning (server), big-endian */ \ |
| \ |
| /* 22 - LastConnectErrorValue, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 26 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x02, \ |
| \ |
| /* Endpoint: 0, Cluster: Software Diagnostics (server), big-endian */ \ |
| \ |
| /* 30 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x01, \ |
| \ |
| /* Endpoint: 0, Cluster: Thread Network Diagnostics (server), big-endian */ \ |
| \ |
| /* 34 - NetworkName, */ \ |
| 0x00, 0x00, \ |
| \ |
| /* 36 - ExtendedPanId, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 44 - OverrunCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 52 - PartitionId, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 56 - TxTotalCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 60 - TxUnicastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 64 - TxBroadcastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 68 - TxAckRequestedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 72 - TxAckedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 76 - TxNoAckRequestedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 80 - TxDataCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 84 - TxDataPollCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 88 - TxBeaconCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 92 - TxBeaconRequestCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 96 - TxOtherCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 100 - TxRetryCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 104 - TxDirectMaxRetryExpiryCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 108 - TxIndirectMaxRetryExpiryCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 112 - TxErrCcaCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 116 - TxErrAbortCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 120 - TxErrBusyChannelCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 124 - RxTotalCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 128 - RxUnicastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 132 - RxBroadcastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 136 - RxDataCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 140 - RxDataPollCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 144 - RxBeaconCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 148 - RxBeaconRequestCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 152 - RxOtherCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 156 - RxAddressFilteredCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 160 - RxDestAddrFilteredCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 164 - RxDuplicatedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 168 - RxErrNoFrameCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 172 - RxErrUnknownNeighborCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 176 - RxErrInvalidSrcAddrCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 180 - RxErrSecCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 184 - RxErrFcsCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 188 - RxErrOtherCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 192 - ActiveTimestamp, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 200 - PendingTimestamp, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 208 - delay, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 212 - ChannelMask, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 219 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x0F, \ |
| \ |
| /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server), big-endian */ \ |
| \ |
| /* 223 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x03, \ |
| \ |
| /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server), big-endian */ \ |
| \ |
| /* 227 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x03, \ |
| \ |
| /* Endpoint: 1, Cluster: Channel (server), big-endian */ \ |
| \ |
| /* 231 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x03, \ |
| \ |
| /* Endpoint: 1, Cluster: Target Navigator (server), big-endian */ \ |
| \ |
| /* 235 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x01, \ |
| \ |
| /* Endpoint: 1, Cluster: Media Input (server), big-endian */ \ |
| \ |
| /* 239 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x01, \ |
| \ |
| /* Endpoint: 1, Cluster: Keypad Input (server), big-endian */ \ |
| \ |
| /* 243 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x07, \ |
| \ |
| /* Endpoint: 1, Cluster: Content Launcher (server), big-endian */ \ |
| \ |
| /* 247 - SupportedStreamingProtocols, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 251 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x03, \ |
| \ |
| /* Endpoint: 1, Cluster: Application Launcher (server), big-endian */ \ |
| \ |
| /* 255 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x01, \ |
| \ |
| /* Endpoint: 2, Cluster: Level Control (server), big-endian */ \ |
| \ |
| /* 259 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x01, \ |
| \ |
| /* Endpoint: 2, Cluster: Audio Output (server), big-endian */ \ |
| \ |
| /* 263 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x01, \ |
| \ |
| /* Endpoint: 3, Cluster: Media Playback (server), big-endian */ \ |
| \ |
| /* 267 - StartTime, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, \ |
| \ |
| /* 275 - Duration, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 283 - PlaybackSpeed, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 287 - SeekRangeEnd, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 295 - SeekRangeStart, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 303 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x03, \ |
| \ |
| /* Endpoint: 3, Cluster: Content Launcher (server), big-endian */ \ |
| \ |
| /* 307 - SupportedStreamingProtocols, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 311 - FeatureMap, */ \ |
| 0x00, 0x00, 0x00, 0x03, \ |
| \ |
| /* Endpoint: 4, Cluster: Content Launcher (server), big-endian */ \ |
| \ |
| /* 315 - SupportedStreamingProtocols, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| } |
| |
| #else // !BIGENDIAN_CPU |
| #define GENERATED_DEFAULTS \ |
| { \ |
| \ |
| /* Endpoint: 0, Cluster: Localization Configuration (server), little-endian */ \ |
| \ |
| /* 0 - ActiveLocale, */ \ |
| 5, 'e', 'n', '-', 'U', 'S', \ |
| \ |
| /* Endpoint: 0, Cluster: Unit Localization (server), little-endian */ \ |
| \ |
| /* 6 - FeatureMap, */ \ |
| 0x01, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 0, Cluster: General Commissioning (server), little-endian */ \ |
| \ |
| /* 10 - Breadcrumb, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 18 - FeatureMap, */ \ |
| 0x06, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 0, Cluster: Network Commissioning (server), little-endian */ \ |
| \ |
| /* 22 - LastConnectErrorValue, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 26 - FeatureMap, */ \ |
| 0x02, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 0, Cluster: Software Diagnostics (server), little-endian */ \ |
| \ |
| /* 30 - FeatureMap, */ \ |
| 0x01, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 0, Cluster: Thread Network Diagnostics (server), little-endian */ \ |
| \ |
| /* 34 - NetworkName, */ \ |
| 0x00, 0x00, \ |
| \ |
| /* 36 - ExtendedPanId, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 44 - OverrunCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 52 - PartitionId, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 56 - TxTotalCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 60 - TxUnicastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 64 - TxBroadcastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 68 - TxAckRequestedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 72 - TxAckedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 76 - TxNoAckRequestedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 80 - TxDataCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 84 - TxDataPollCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 88 - TxBeaconCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 92 - TxBeaconRequestCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 96 - TxOtherCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 100 - TxRetryCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 104 - TxDirectMaxRetryExpiryCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 108 - TxIndirectMaxRetryExpiryCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 112 - TxErrCcaCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 116 - TxErrAbortCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 120 - TxErrBusyChannelCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 124 - RxTotalCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 128 - RxUnicastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 132 - RxBroadcastCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 136 - RxDataCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 140 - RxDataPollCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 144 - RxBeaconCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 148 - RxBeaconRequestCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 152 - RxOtherCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 156 - RxAddressFilteredCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 160 - RxDestAddrFilteredCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 164 - RxDuplicatedCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 168 - RxErrNoFrameCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 172 - RxErrUnknownNeighborCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 176 - RxErrInvalidSrcAddrCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 180 - RxErrSecCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 184 - RxErrFcsCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 188 - RxErrOtherCount, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 192 - ActiveTimestamp, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 200 - PendingTimestamp, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 208 - delay, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 212 - ChannelMask, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 219 - FeatureMap, */ \ |
| 0x0F, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server), little-endian */ \ |
| \ |
| /* 223 - FeatureMap, */ \ |
| 0x03, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server), little-endian */ \ |
| \ |
| /* 227 - FeatureMap, */ \ |
| 0x03, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 1, Cluster: Channel (server), little-endian */ \ |
| \ |
| /* 231 - FeatureMap, */ \ |
| 0x03, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 1, Cluster: Target Navigator (server), little-endian */ \ |
| \ |
| /* 235 - FeatureMap, */ \ |
| 0x01, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 1, Cluster: Media Input (server), little-endian */ \ |
| \ |
| /* 239 - FeatureMap, */ \ |
| 0x01, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 1, Cluster: Keypad Input (server), little-endian */ \ |
| \ |
| /* 243 - FeatureMap, */ \ |
| 0x07, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 1, Cluster: Content Launcher (server), little-endian */ \ |
| \ |
| /* 247 - SupportedStreamingProtocols, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 251 - FeatureMap, */ \ |
| 0x03, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 1, Cluster: Application Launcher (server), little-endian */ \ |
| \ |
| /* 255 - FeatureMap, */ \ |
| 0x01, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 2, Cluster: Level Control (server), little-endian */ \ |
| \ |
| /* 259 - FeatureMap, */ \ |
| 0x01, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 2, Cluster: Audio Output (server), little-endian */ \ |
| \ |
| /* 263 - FeatureMap, */ \ |
| 0x01, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 3, Cluster: Media Playback (server), little-endian */ \ |
| \ |
| /* 267 - StartTime, */ \ |
| 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 275 - Duration, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 283 - PlaybackSpeed, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 287 - SeekRangeEnd, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 295 - SeekRangeStart, */ \ |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 303 - FeatureMap, */ \ |
| 0x03, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 3, Cluster: Content Launcher (server), little-endian */ \ |
| \ |
| /* 307 - SupportedStreamingProtocols, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| \ |
| /* 311 - FeatureMap, */ \ |
| 0x03, 0x00, 0x00, 0x00, \ |
| \ |
| /* Endpoint: 4, Cluster: Content Launcher (server), little-endian */ \ |
| \ |
| /* 315 - SupportedStreamingProtocols, */ \ |
| 0x00, 0x00, 0x00, 0x00, \ |
| } |
| |
| #endif // BIGENDIAN_CPU |
| |
| #define GENERATED_DEFAULTS_COUNT (70) |
| |
| #define ZAP_TYPE(type) ZCL_##type##_ATTRIBUTE_TYPE |
| #define ZAP_LONG_DEFAULTS_INDEX(index) \ |
| { \ |
| &generatedDefaults[index] \ |
| } |
| #define ZAP_MIN_MAX_DEFAULTS_INDEX(index) \ |
| { \ |
| &minMaxDefaults[index] \ |
| } |
| #define ZAP_EMPTY_DEFAULT() \ |
| { \ |
| (uint16_t) 0 \ |
| } |
| #define ZAP_SIMPLE_DEFAULT(x) \ |
| { \ |
| (uint16_t) x \ |
| } |
| |
| // This is an array of EmberAfAttributeMinMaxValue structures. |
| #define GENERATED_MIN_MAX_DEFAULT_COUNT 2 |
| #define GENERATED_MIN_MAX_DEFAULTS \ |
| { \ |
| \ |
| /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ |
| { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ |
| \ |
| /* Endpoint: 2, Cluster: Level Control (server) */ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x3 } /* options */ \ |
| } |
| |
| #define ZAP_ATTRIBUTE_MASK(mask) ATTRIBUTE_MASK_##mask |
| // This is an array of EmberAfAttributeMetadata structures. |
| #define GENERATED_ATTRIBUTE_COUNT 308 |
| #define GENERATED_ATTRIBUTES \ |
| { \ |
| \ |
| /* Endpoint: 0, Cluster: Descriptor (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Binding (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* Binding */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Access Control (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* ACL */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* Extension */ \ |
| { 0x00000002, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* SubjectsPerAccessControlEntry */ \ |
| { 0x00000003, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* TargetsPerAccessControlEntry */ \ |
| { 0x00000004, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* AccessControlEntriesPerFabric */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Basic (server) */ \ |
| { 0x00000000, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* DataModelRevision */ \ |
| { 0x00000001, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* VendorName */ \ |
| { 0x00000002, ZAP_TYPE(VENDOR_ID), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* VendorID */ \ |
| { 0x00000003, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* ProductName */ \ |
| { 0x00000004, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* ProductID */ \ |
| { 0x00000005, ZAP_TYPE(CHAR_STRING), 33, \ |
| ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(SINGLETON) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* NodeLabel */ \ |
| { 0x00000006, ZAP_TYPE(CHAR_STRING), 0, \ |
| ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* Location */ \ |
| { 0x00000007, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* HardwareVersion */ \ |
| { 0x00000008, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* HardwareVersionString */ \ |
| { 0x00000009, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* SoftwareVersion */ \ |
| { 0x0000000A, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* SoftwareVersionString */ \ |
| { 0x0000000B, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* ManufacturingDate */ \ |
| { 0x0000000C, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* PartNumber */ \ |
| { 0x0000000D, ZAP_TYPE(LONG_CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* ProductURL */ \ |
| { 0x0000000E, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* ProductLabel */ \ |
| { 0x0000000F, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* SerialNumber */ \ |
| { 0x00000010, ZAP_TYPE(BOOLEAN), 1, \ |
| ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(SINGLETON) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_SIMPLE_DEFAULT(0) }, /* LocalConfigDisabled */ \ |
| { 0x00000011, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(1) }, /* Reachable */ \ |
| { 0x00000012, ZAP_TYPE(CHAR_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
| ZAP_EMPTY_DEFAULT() }, /* UniqueID */ \ |
| { 0x00000013, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CapabilityMinima */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Localization Configuration (server) */ \ |
| { 0x00000000, ZAP_TYPE(CHAR_STRING), 36, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_LONG_DEFAULTS_INDEX(0) }, /* ActiveLocale */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* SupportedLocales */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ |
| { 0x00000000, ZAP_TYPE(ENUM8), 1, \ |
| ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* HourFormat */ \ |
| { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_SIMPLE_DEFAULT(0) }, /* ActiveCalendarType */ \ |
| { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* SupportedCalendarTypes */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Unit Localization (server) */ \ |
| { 0x00000000, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_SIMPLE_DEFAULT(0) }, /* TemperatureUnit */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(6) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: General Commissioning (server) */ \ |
| { 0x00000000, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_LONG_DEFAULTS_INDEX(10) }, /* Breadcrumb */ \ |
| { 0x00000001, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* BasicCommissioningInfo */ \ |
| { 0x00000002, ZAP_TYPE(ENUM8), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RegulatoryConfig */ \ |
| { 0x00000003, ZAP_TYPE(ENUM8), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* LocationCapability */ \ |
| { 0x00000004, ZAP_TYPE(BOOLEAN), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* SupportsConcurrentConnection */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(18) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Network Commissioning (server) */ \ |
| { 0x00000000, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* MaxNetworks */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* Networks */ \ |
| { 0x00000002, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* ScanMaxTimeSeconds */ \ |
| { 0x00000003, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* ConnectMaxTimeSeconds */ \ |
| { 0x00000004, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* InterfaceEnabled */ \ |
| { 0x00000005, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* LastNetworkingStatus */ \ |
| { 0x00000006, ZAP_TYPE(OCTET_STRING), 33, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* LastNetworkID */ \ |
| { 0x00000007, ZAP_TYPE(INT32S), 4, ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_LONG_DEFAULTS_INDEX(22) }, /* LastConnectErrorValue */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(26) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: General Diagnostics (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* NetworkInterfaces */ \ |
| { 0x00000001, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RebootCount */ \ |
| { 0x00000002, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* UpTime */ \ |
| { 0x00000003, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* TotalOperationalHours */ \ |
| { 0x00000004, ZAP_TYPE(ENUM8), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* BootReasons */ \ |
| { 0x00000005, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* ActiveHardwareFaults */ \ |
| { 0x00000006, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ActiveRadioFaults */ \ |
| { 0x00000007, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* ActiveNetworkFaults */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Software Diagnostics (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ThreadMetrics */ \ |
| { 0x00000001, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CurrentHeapFree */ \ |
| { 0x00000002, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CurrentHeapUsed */ \ |
| { 0x00000003, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* CurrentHeapHighWatermark */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(30) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Thread Network Diagnostics (server) */ \ |
| { 0x00000000, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* channel */ \ |
| { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* RoutingRole */ \ |
| { 0x00000002, ZAP_TYPE(CHAR_STRING), 17, 0, ZAP_LONG_DEFAULTS_INDEX(34) }, /* NetworkName */ \ |
| { 0x00000003, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* PanId */ \ |
| { 0x00000004, ZAP_TYPE(INT64U), 8, 0, ZAP_LONG_DEFAULTS_INDEX(36) }, /* ExtendedPanId */ \ |
| { 0x00000005, ZAP_TYPE(OCTET_STRING), 18, 0, ZAP_EMPTY_DEFAULT() }, /* MeshLocalPrefix */ \ |
| { 0x00000006, ZAP_TYPE(INT64U), 8, 0, ZAP_LONG_DEFAULTS_INDEX(44) }, /* OverrunCount */ \ |
| { 0x00000007, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* NeighborTableList */ \ |
| { 0x00000008, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RouteTableList */ \ |
| { 0x00000009, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(52) }, /* PartitionId */ \ |
| { 0x0000000A, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* weighting */ \ |
| { 0x0000000B, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* DataVersion */ \ |
| { 0x0000000C, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* StableDataVersion */ \ |
| { 0x0000000D, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* LeaderRouterId */ \ |
| { 0x0000000E, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* DetachedRoleCount */ \ |
| { 0x0000000F, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* ChildRoleCount */ \ |
| { 0x00000010, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* RouterRoleCount */ \ |
| { 0x00000011, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* LeaderRoleCount */ \ |
| { 0x00000012, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* AttachAttemptCount */ \ |
| { 0x00000013, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* PartitionIdChangeCount */ \ |
| { 0x00000014, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* BetterPartitionAttachAttemptCount */ \ |
| { 0x00000015, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* ParentChangeCount */ \ |
| { 0x00000016, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(56) }, /* TxTotalCount */ \ |
| { 0x00000017, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(60) }, /* TxUnicastCount */ \ |
| { 0x00000018, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(64) }, /* TxBroadcastCount */ \ |
| { 0x00000019, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(68) }, /* TxAckRequestedCount */ \ |
| { 0x0000001A, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(72) }, /* TxAckedCount */ \ |
| { 0x0000001B, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(76) }, /* TxNoAckRequestedCount */ \ |
| { 0x0000001C, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(80) }, /* TxDataCount */ \ |
| { 0x0000001D, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(84) }, /* TxDataPollCount */ \ |
| { 0x0000001E, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(88) }, /* TxBeaconCount */ \ |
| { 0x0000001F, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(92) }, /* TxBeaconRequestCount */ \ |
| { 0x00000020, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(96) }, /* TxOtherCount */ \ |
| { 0x00000021, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(100) }, /* TxRetryCount */ \ |
| { 0x00000022, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(104) }, /* TxDirectMaxRetryExpiryCount */ \ |
| { 0x00000023, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(108) }, /* TxIndirectMaxRetryExpiryCount */ \ |
| { 0x00000024, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(112) }, /* TxErrCcaCount */ \ |
| { 0x00000025, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(116) }, /* TxErrAbortCount */ \ |
| { 0x00000026, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(120) }, /* TxErrBusyChannelCount */ \ |
| { 0x00000027, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(124) }, /* RxTotalCount */ \ |
| { 0x00000028, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(128) }, /* RxUnicastCount */ \ |
| { 0x00000029, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(132) }, /* RxBroadcastCount */ \ |
| { 0x0000002A, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(136) }, /* RxDataCount */ \ |
| { 0x0000002B, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(140) }, /* RxDataPollCount */ \ |
| { 0x0000002C, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(144) }, /* RxBeaconCount */ \ |
| { 0x0000002D, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(148) }, /* RxBeaconRequestCount */ \ |
| { 0x0000002E, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(152) }, /* RxOtherCount */ \ |
| { 0x0000002F, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(156) }, /* RxAddressFilteredCount */ \ |
| { 0x00000030, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(160) }, /* RxDestAddrFilteredCount */ \ |
| { 0x00000031, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(164) }, /* RxDuplicatedCount */ \ |
| { 0x00000032, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(168) }, /* RxErrNoFrameCount */ \ |
| { 0x00000033, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(172) }, /* RxErrUnknownNeighborCount */ \ |
| { 0x00000034, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(176) }, /* RxErrInvalidSrcAddrCount */ \ |
| { 0x00000035, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(180) }, /* RxErrSecCount */ \ |
| { 0x00000036, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(184) }, /* RxErrFcsCount */ \ |
| { 0x00000037, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(188) }, /* RxErrOtherCount */ \ |
| { 0x00000038, ZAP_TYPE(INT64U), 8, 0, ZAP_LONG_DEFAULTS_INDEX(192) }, /* ActiveTimestamp */ \ |
| { 0x00000039, ZAP_TYPE(INT64U), 8, 0, ZAP_LONG_DEFAULTS_INDEX(200) }, /* PendingTimestamp */ \ |
| { 0x0000003A, ZAP_TYPE(INT32U), 4, 0, ZAP_LONG_DEFAULTS_INDEX(208) }, /* delay */ \ |
| { 0x0000003B, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* SecurityPolicy */ \ |
| { 0x0000003C, ZAP_TYPE(OCTET_STRING), 5, 0, ZAP_LONG_DEFAULTS_INDEX(212) }, /* ChannelMask */ \ |
| { 0x0000003D, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* OperationalDatasetComponents */ \ |
| { 0x0000003E, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* ActiveNetworkFaultsList */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(219) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server) */ \ |
| { 0x00000000, ZAP_TYPE(OCTET_STRING), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* bssid */ \ |
| { 0x00000001, ZAP_TYPE(ENUM8), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* SecurityType */ \ |
| { 0x00000002, ZAP_TYPE(ENUM8), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* WiFiVersion */ \ |
| { 0x00000003, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* ChannelNumber */ \ |
| { 0x00000004, ZAP_TYPE(INT8S), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* Rssi */ \ |
| { 0x00000005, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* BeaconLostCount */ \ |
| { 0x00000006, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* BeaconRxCount */ \ |
| { 0x00000007, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* PacketMulticastRxCount */ \ |
| { 0x00000008, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* PacketMulticastTxCount */ \ |
| { 0x00000009, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* PacketUnicastRxCount */ \ |
| { 0x0000000A, ZAP_TYPE(INT32U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* PacketUnicastTxCount */ \ |
| { 0x0000000B, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CurrentMaxRate */ \ |
| { 0x0000000C, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* OverrunCount */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(223) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */ \ |
| { 0x00000000, ZAP_TYPE(ENUM8), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* PHYRate */ \ |
| { 0x00000001, ZAP_TYPE(BOOLEAN), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* FullDuplex */ \ |
| { 0x00000002, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PacketRxCount */ \ |
| { 0x00000003, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PacketTxCount */ \ |
| { 0x00000004, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxErrCount */ \ |
| { 0x00000005, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CollisionCount */ \ |
| { 0x00000006, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* OverrunCount */ \ |
| { 0x00000007, ZAP_TYPE(BOOLEAN), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* CarrierDetect */ \ |
| { 0x00000008, ZAP_TYPE(INT64U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TimeSinceReset */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(227) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */ \ |
| { 0x00000000, ZAP_TYPE(INT8U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* WindowStatus */ \ |
| { 0x00000001, ZAP_TYPE(FABRIC_IDX), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* AdminFabricIndex */ \ |
| { 0x00000002, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* AdminVendorId */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Operational Credentials (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* NOCs */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* Fabrics */ \ |
| { 0x00000002, ZAP_TYPE(INT8U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* SupportedFabrics */ \ |
| { 0x00000003, ZAP_TYPE(INT8U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* CommissionedFabrics */ \ |
| { 0x00000004, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* TrustedRootCertificates */ \ |
| { 0x00000005, ZAP_TYPE(FABRIC_IDX), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| ZAP_EMPTY_DEFAULT() }, /* CurrentFabricIndex */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Group Key Management (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* GroupKeyMap */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* GroupTable */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Fixed Label (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* label list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: User Label (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* label list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 0, Cluster: Relative Humidity Measurement (server) */ \ |
| { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* measured value */ \ |
| { 0x00000001, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* min measured value */ \ |
| { 0x00000002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* max measured value */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: On/Off (server) */ \ |
| { 0x00000000, ZAP_TYPE(BOOLEAN), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* OnOff */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Descriptor (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Wake on LAN (server) */ \ |
| { 0x00000000, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* MACAddress */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Channel (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ChannelList */ \ |
| { 0x00000001, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* Lineup */ \ |
| { 0x00000002, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* CurrentChannel */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(231) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Target Navigator (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TargetList */ \ |
| { 0x00000001, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0) }, /* CurrentTarget */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(235) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Media Input (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* InputList */ \ |
| { 0x00000001, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* CurrentInput */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(239) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Low Power (server) */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Keypad Input (server) */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(243) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Content Launcher (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* AcceptHeader */ \ |
| { 0x00000001, ZAP_TYPE(BITMAP32), 4, ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_LONG_DEFAULTS_INDEX(247) }, /* SupportedStreamingProtocols */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(251) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 1, Cluster: Application Launcher (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CatalogList */ \ |
| { 0x00000001, ZAP_TYPE(STRUCT), 0, \ |
| ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* CurrentApp */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(255) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 2, Cluster: On/Off (server) */ \ |
| { 0x00000000, ZAP_TYPE(BOOLEAN), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* OnOff */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 2, Cluster: Level Control (server) */ \ |
| { 0x00000000, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE), ZAP_SIMPLE_DEFAULT(0x00) }, /* current level */ \ |
| { 0x00000001, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* remaining time */ \ |
| { 0x00000002, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* min level */ \ |
| { 0x00000003, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0xFF) }, /* max level */ \ |
| { 0x00000004, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* current frequency */ \ |
| { 0x00000005, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* min frequency */ \ |
| { 0x00000006, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* max frequency */ \ |
| { 0x0000000F, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* options */ \ |
| { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_SIMPLE_DEFAULT(0x0000) }, /* on off transition time */ \ |
| { 0x00000011, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_SIMPLE_DEFAULT(0xFE) }, /* on level */ \ |
| { 0x00000012, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* on transition time */ \ |
| { 0x00000013, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* off transition time */ \ |
| { 0x00000014, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* default move rate */ \ |
| { 0x00004000, ZAP_TYPE(INT8U), 1, \ |
| ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_SIMPLE_DEFAULT(255) }, /* start up current level */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(259) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(5) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 2, Cluster: Descriptor (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 2, Cluster: Audio Output (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* OutputList */ \ |
| { 0x00000001, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* CurrentOutput */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(263) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 3, Cluster: Descriptor (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 3, Cluster: Media Playback (server) */ \ |
| { 0x00000000, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* CurrentState */ \ |
| { 0x00000001, ZAP_TYPE(EPOCH_US), 8, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_LONG_DEFAULTS_INDEX(267) }, /* StartTime */ \ |
| { 0x00000002, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_LONG_DEFAULTS_INDEX(275) }, /* Duration */ \ |
| { 0x00000003, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| ZAP_EMPTY_DEFAULT() }, /* SampledPosition */ \ |
| { 0x00000004, ZAP_TYPE(SINGLE), 4, 0, ZAP_LONG_DEFAULTS_INDEX(283) }, /* PlaybackSpeed */ \ |
| { 0x00000005, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_LONG_DEFAULTS_INDEX(287) }, /* SeekRangeEnd */ \ |
| { 0x00000006, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_LONG_DEFAULTS_INDEX(295) }, /* SeekRangeStart */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(303) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 3, Cluster: Content Launcher (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* AcceptHeader */ \ |
| { 0x00000001, ZAP_TYPE(BITMAP32), 4, ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_LONG_DEFAULTS_INDEX(307) }, /* SupportedStreamingProtocols */ \ |
| { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_LONG_DEFAULTS_INDEX(311) }, /* FeatureMap */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 3, Cluster: Application Basic (server) */ \ |
| { 0x00000000, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* VendorName */ \ |
| { 0x00000001, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* VendorID */ \ |
| { 0x00000002, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* ApplicationName */ \ |
| { 0x00000003, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* ProductID */ \ |
| { 0x00000004, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* Application */ \ |
| { 0x00000005, ZAP_TYPE(ENUM8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* Status */ \ |
| { 0x00000006, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* ApplicationVersion */ \ |
| { 0x00000007, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* AllowedVendorList */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 3, Cluster: Account Login (server) */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 4, Cluster: Descriptor (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 4, Cluster: Content Launcher (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* AcceptHeader */ \ |
| { 0x00000001, ZAP_TYPE(BITMAP32), 4, ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| ZAP_LONG_DEFAULTS_INDEX(315) }, /* SupportedStreamingProtocols */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 4, Cluster: Application Basic (server) */ \ |
| { 0x00000000, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* VendorName */ \ |
| { 0x00000001, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* VendorID */ \ |
| { 0x00000002, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* ApplicationName */ \ |
| { 0x00000003, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* ProductID */ \ |
| { 0x00000004, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* Application */ \ |
| { 0x00000005, ZAP_TYPE(ENUM8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* Status */ \ |
| { 0x00000006, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* ApplicationVersion */ \ |
| { 0x00000007, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* AllowedVendorList */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 5, Cluster: Descriptor (server) */ \ |
| { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
| \ |
| /* Endpoint: 5, Cluster: Application Basic (server) */ \ |
| { 0x00000000, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* VendorName */ \ |
| { 0x00000001, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* VendorID */ \ |
| { 0x00000002, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* ApplicationName */ \ |
| { 0x00000003, ZAP_TYPE(INT16U), 2, 0, ZAP_EMPTY_DEFAULT() }, /* ProductID */ \ |
| { 0x00000004, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* Application */ \ |
| { 0x00000005, ZAP_TYPE(ENUM8), 1, 0, ZAP_EMPTY_DEFAULT() }, /* Status */ \ |
| { 0x00000006, ZAP_TYPE(CHAR_STRING), 33, 0, ZAP_EMPTY_DEFAULT() }, /* ApplicationVersion */ \ |
| { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| } |
| |
| // This is an array of EmberAfCluster structures. |
| #define ZAP_ATTRIBUTE_INDEX(index) (&generatedAttributes[index]) |
| |
| #define ZAP_GENERATED_COMMANDS_INDEX(index) ((chip::CommandId *) (&generatedCommands[index])) |
| |
| // Cluster function static arrays |
| #define GENERATED_FUNCTION_ARRAYS \ |
| const EmberAfGenericClusterFunction chipFuncArrayBasicServer[] = { \ |
| (EmberAfGenericClusterFunction) emberAfBasicClusterServerInitCallback, \ |
| }; \ |
| const EmberAfGenericClusterFunction chipFuncArrayLocalizationConfigurationServer[] = { \ |
| (EmberAfGenericClusterFunction) emberAfLocalizationConfigurationClusterServerInitCallback, \ |
| (EmberAfGenericClusterFunction) MatterLocalizationConfigurationClusterServerPreAttributeChangedCallback, \ |
| }; \ |
| const EmberAfGenericClusterFunction chipFuncArrayTimeFormatLocalizationServer[] = { \ |
| (EmberAfGenericClusterFunction) emberAfTimeFormatLocalizationClusterServerInitCallback, \ |
| (EmberAfGenericClusterFunction) MatterTimeFormatLocalizationClusterServerPreAttributeChangedCallback, \ |
| }; \ |
| const EmberAfGenericClusterFunction chipFuncArrayOnOffServer[] = { \ |
| (EmberAfGenericClusterFunction) emberAfOnOffClusterServerInitCallback, \ |
| }; \ |
| const EmberAfGenericClusterFunction chipFuncArrayLevelControlServer[] = { \ |
| (EmberAfGenericClusterFunction) emberAfLevelControlClusterServerInitCallback, \ |
| }; |
| |
| // clang-format off |
| #define GENERATED_COMMANDS { \ |
| /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */\ |
| /* AcceptedCommandList (index=0) */ \ |
| 0x00000000 /* QueryImage */, \ |
| 0x00000002 /* ApplyUpdateRequest */, \ |
| 0x00000004 /* NotifyUpdateApplied */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=4)*/ \ |
| 0x00000001 /* QueryImageResponse */, \ |
| 0x00000003 /* ApplyUpdateResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 0, Cluster: General Commissioning (server) */\ |
| /* AcceptedCommandList (index=7) */ \ |
| 0x00000000 /* ArmFailSafe */, \ |
| 0x00000002 /* SetRegulatoryConfig */, \ |
| 0x00000003 /* SetRegulatoryConfigResponse */, \ |
| 0x00000004 /* CommissioningComplete */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=12)*/ \ |
| 0x00000001 /* ArmFailSafeResponse */, \ |
| 0x00000003 /* SetRegulatoryConfigResponse */, \ |
| 0x00000005 /* CommissioningCompleteResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 0, Cluster: Network Commissioning (server) */\ |
| /* AcceptedCommandList (index=16) */ \ |
| 0x00000000 /* ScanNetworks */, \ |
| 0x00000002 /* AddOrUpdateWiFiNetwork */, \ |
| 0x00000003 /* AddOrUpdateThreadNetwork */, \ |
| 0x00000004 /* RemoveNetwork */, \ |
| 0x00000005 /* NetworkConfigResponse */, \ |
| 0x00000006 /* ConnectNetwork */, \ |
| 0x00000008 /* ReorderNetwork */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=24)*/ \ |
| 0x00000001 /* ScanNetworksResponse */, \ |
| 0x00000005 /* NetworkConfigResponse */, \ |
| 0x00000007 /* ConnectNetworkResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 0, Cluster: Diagnostic Logs (server) */\ |
| /* AcceptedCommandList (index=28) */ \ |
| 0x00000000 /* RetrieveLogsRequest */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=30)*/ \ |
| 0x00000001 /* RetrieveLogsResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 0, Cluster: Software Diagnostics (server) */\ |
| /* AcceptedCommandList (index=32) */ \ |
| 0x00000000 /* ResetWatermarks */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */\ |
| /* AcceptedCommandList (index=34) */ \ |
| 0x00000000 /* ResetCounts */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */\ |
| /* AcceptedCommandList (index=36) */ \ |
| 0x00000000 /* OpenCommissioningWindow */, \ |
| 0x00000001 /* OpenBasicCommissioningWindow */, \ |
| 0x00000002 /* RevokeCommissioning */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 0, Cluster: Operational Credentials (server) */\ |
| /* AcceptedCommandList (index=40) */ \ |
| 0x00000000 /* AttestationRequest */, \ |
| 0x00000002 /* CertificateChainRequest */, \ |
| 0x00000004 /* CSRRequest */, \ |
| 0x00000006 /* AddNOC */, \ |
| 0x00000007 /* UpdateNOC */, \ |
| 0x00000009 /* UpdateFabricLabel */, \ |
| 0x0000000A /* RemoveFabric */, \ |
| 0x0000000B /* AddTrustedRootCertificate */, \ |
| 0x0000000C /* RemoveTrustedRootCertificate */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=50)*/ \ |
| 0x00000001 /* AttestationResponse */, \ |
| 0x00000003 /* CertificateChainResponse */, \ |
| 0x00000005 /* CSRResponse */, \ |
| 0x00000008 /* NOCResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: On/Off (server) */\ |
| /* AcceptedCommandList (index=55) */ \ |
| 0x00000000 /* Off */, \ |
| 0x00000001 /* On */, \ |
| 0x00000002 /* Toggle */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: Channel (server) */\ |
| /* AcceptedCommandList (index=59) */ \ |
| 0x00000000 /* ChangeChannel */, \ |
| 0x00000002 /* ChangeChannelByNumber */, \ |
| 0x00000003 /* SkipChannel */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=63)*/ \ |
| 0x00000001 /* ChangeChannelResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: Target Navigator (server) */\ |
| /* AcceptedCommandList (index=65) */ \ |
| 0x00000000 /* NavigateTarget */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=67)*/ \ |
| 0x00000001 /* NavigateTargetResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: Media Input (server) */\ |
| /* AcceptedCommandList (index=69) */ \ |
| 0x00000000 /* SelectInput */, \ |
| 0x00000001 /* ShowInputStatus */, \ |
| 0x00000002 /* HideInputStatus */, \ |
| 0x00000003 /* RenameInput */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: Low Power (server) */\ |
| /* AcceptedCommandList (index=74) */ \ |
| 0x00000000 /* Sleep */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: Keypad Input (server) */\ |
| /* AcceptedCommandList (index=76) */ \ |
| 0x00000000 /* SendKey */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=78)*/ \ |
| 0x00000001 /* SendKeyResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: Content Launcher (server) */\ |
| /* AcceptedCommandList (index=80) */ \ |
| 0x00000000 /* LaunchContent */, \ |
| 0x00000001 /* LaunchURL */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=83)*/ \ |
| 0x00000002 /* LaunchResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 1, Cluster: Application Launcher (server) */\ |
| /* AcceptedCommandList (index=85) */ \ |
| 0x00000000 /* LaunchApp */, \ |
| 0x00000001 /* StopApp */, \ |
| 0x00000002 /* HideApp */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=89)*/ \ |
| 0x00000003 /* LauncherResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 2, Cluster: On/Off (server) */\ |
| /* AcceptedCommandList (index=91) */ \ |
| 0x00000000 /* Off */, \ |
| 0x00000001 /* On */, \ |
| 0x00000002 /* Toggle */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 2, Cluster: Level Control (server) */\ |
| /* AcceptedCommandList (index=95) */ \ |
| 0x00000000 /* MoveToLevel */, \ |
| 0x00000001 /* Move */, \ |
| 0x00000002 /* Step */, \ |
| 0x00000003 /* Stop */, \ |
| 0x00000004 /* MoveToLevelWithOnOff */, \ |
| 0x00000005 /* MoveWithOnOff */, \ |
| 0x00000006 /* StepWithOnOff */, \ |
| 0x00000007 /* StopWithOnOff */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 2, Cluster: Audio Output (server) */\ |
| /* AcceptedCommandList (index=104) */ \ |
| 0x00000000 /* SelectOutput */, \ |
| 0x00000001 /* RenameOutput */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 3, Cluster: Media Playback (server) */\ |
| /* AcceptedCommandList (index=107) */ \ |
| 0x00000000 /* Play */, \ |
| 0x00000001 /* Pause */, \ |
| 0x00000002 /* StopPlayback */, \ |
| 0x00000003 /* StartOver */, \ |
| 0x00000004 /* Previous */, \ |
| 0x00000005 /* Next */, \ |
| 0x00000006 /* Rewind */, \ |
| 0x00000007 /* FastForward */, \ |
| 0x00000008 /* SkipForward */, \ |
| 0x00000009 /* SkipBackward */, \ |
| 0x0000000B /* Seek */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=119)*/ \ |
| 0x0000000A /* PlaybackResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 3, Cluster: Content Launcher (server) */\ |
| /* AcceptedCommandList (index=121) */ \ |
| 0x00000000 /* LaunchContent */, \ |
| 0x00000001 /* LaunchURL */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=124)*/ \ |
| 0x00000002 /* LaunchResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 3, Cluster: Account Login (server) */\ |
| /* AcceptedCommandList (index=126) */ \ |
| 0x00000000 /* GetSetupPIN */, \ |
| 0x00000002 /* Login */, \ |
| 0x00000003 /* Logout */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=130)*/ \ |
| 0x00000001 /* GetSetupPINResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* Endpoint: 4, Cluster: Content Launcher (server) */\ |
| /* AcceptedCommandList (index=132) */ \ |
| 0x00000000 /* LaunchContent */, \ |
| 0x00000001 /* LaunchURL */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| /* GeneratedCommandList (index=135)*/ \ |
| 0x00000002 /* LaunchResponse */, \ |
| chip::kInvalidCommandId /* end of list */, \ |
| } |
| |
| // clang-format on |
| |
| #define ZAP_CLUSTER_MASK(mask) CLUSTER_MASK_##mask |
| #define GENERATED_CLUSTER_COUNT 50 |
| |
| // clang-format off |
| #define GENERATED_CLUSTERS { \ |
| { \ |
| /* Endpoint: 0, Cluster: Descriptor (server) */ \ |
| .clusterId = 0x0000001D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(0), \ |
| .attributeCount = 5, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Binding (client) */ \ |
| .clusterId = 0x0000001E, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(5), \ |
| .attributeCount = 0, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Binding (server) */ \ |
| .clusterId = 0x0000001E, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(5), \ |
| .attributeCount = 2, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Access Control (server) */ \ |
| .clusterId = 0x0000001F, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(7), \ |
| .attributeCount = 6, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Basic (server) */ \ |
| .clusterId = 0x00000028, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(13), \ |
| .attributeCount = 21, \ |
| .clusterSize = 37, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| .functions = chipFuncArrayBasicServer, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ |
| .clusterId = 0x00000029, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(34), \ |
| .attributeCount = 1, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 0 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 4 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Localization Configuration (server) */ \ |
| .clusterId = 0x0000002B, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(35), \ |
| .attributeCount = 3, \ |
| .clusterSize = 38, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(PRE_ATTRIBUTE_CHANGED_FUNCTION), \ |
| .functions = chipFuncArrayLocalizationConfigurationServer, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ |
| .clusterId = 0x0000002C, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(38), \ |
| .attributeCount = 4, \ |
| .clusterSize = 4, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(PRE_ATTRIBUTE_CHANGED_FUNCTION), \ |
| .functions = chipFuncArrayTimeFormatLocalizationServer, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Unit Localization (server) */ \ |
| .clusterId = 0x0000002D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(42), \ |
| .attributeCount = 3, \ |
| .clusterSize = 7, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: General Commissioning (client) */ \ |
| .clusterId = 0x00000030, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(45), \ |
| .attributeCount = 0, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: General Commissioning (server) */ \ |
| .clusterId = 0x00000030, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(45), \ |
| .attributeCount = 7, \ |
| .clusterSize = 14, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 7 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 12 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Network Commissioning (client) */ \ |
| .clusterId = 0x00000031, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(52), \ |
| .attributeCount = 0, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Network Commissioning (server) */ \ |
| .clusterId = 0x00000031, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(52), \ |
| .attributeCount = 10, \ |
| .clusterSize = 48, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 16 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 24 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Diagnostic Logs (server) */ \ |
| .clusterId = 0x00000032, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(62), \ |
| .attributeCount = 0, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 28 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 30 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: General Diagnostics (server) */ \ |
| .clusterId = 0x00000033, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(62), \ |
| .attributeCount = 9, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Software Diagnostics (server) */ \ |
| .clusterId = 0x00000034, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(71), \ |
| .attributeCount = 6, \ |
| .clusterSize = 6, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 32 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Thread Network Diagnostics (server) */ \ |
| .clusterId = 0x00000035, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(77), \ |
| .attributeCount = 65, \ |
| .clusterSize = 247, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server) */ \ |
| .clusterId = 0x00000036, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(142), \ |
| .attributeCount = 15, \ |
| .clusterSize = 6, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */ \ |
| .clusterId = 0x00000037, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(157), \ |
| .attributeCount = 11, \ |
| .clusterSize = 6, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 34 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */ \ |
| .clusterId = 0x0000003C, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(168), \ |
| .attributeCount = 4, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 36 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Operational Credentials (client) */ \ |
| .clusterId = 0x0000003E, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(172), \ |
| .attributeCount = 0, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Operational Credentials (server) */ \ |
| .clusterId = 0x0000003E, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(172), \ |
| .attributeCount = 7, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 40 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 50 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Group Key Management (server) */ \ |
| .clusterId = 0x0000003F, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(179), \ |
| .attributeCount = 3, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Fixed Label (server) */ \ |
| .clusterId = 0x00000040, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(182), \ |
| .attributeCount = 2, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: User Label (server) */ \ |
| .clusterId = 0x00000041, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(184), \ |
| .attributeCount = 2, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 0, Cluster: Relative Humidity Measurement (server) */ \ |
| .clusterId = 0x00000405, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(186), \ |
| .attributeCount = 4, \ |
| .clusterSize = 8, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: On/Off (server) */ \ |
| .clusterId = 0x00000006, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(190), \ |
| .attributeCount = 2, \ |
| .clusterSize = 3, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| .functions = chipFuncArrayOnOffServer, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 55 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Descriptor (server) */ \ |
| .clusterId = 0x0000001D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(192), \ |
| .attributeCount = 5, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Wake on LAN (server) */ \ |
| .clusterId = 0x00000503, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(197), \ |
| .attributeCount = 2, \ |
| .clusterSize = 35, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Channel (server) */ \ |
| .clusterId = 0x00000504, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(199), \ |
| .attributeCount = 5, \ |
| .clusterSize = 6, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 59 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 63 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Target Navigator (server) */ \ |
| .clusterId = 0x00000505, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(204), \ |
| .attributeCount = 4, \ |
| .clusterSize = 7, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 65 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 67 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Media Input (server) */ \ |
| .clusterId = 0x00000507, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(208), \ |
| .attributeCount = 4, \ |
| .clusterSize = 7, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 69 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Low Power (server) */ \ |
| .clusterId = 0x00000508, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(212), \ |
| .attributeCount = 1, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 74 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Keypad Input (server) */ \ |
| .clusterId = 0x00000509, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(213), \ |
| .attributeCount = 2, \ |
| .clusterSize = 6, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 76 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 78 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Content Launcher (server) */ \ |
| .clusterId = 0x0000050A, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(215), \ |
| .attributeCount = 4, \ |
| .clusterSize = 10, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 80 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 83 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 1, Cluster: Application Launcher (server) */ \ |
| .clusterId = 0x0000050C, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(219), \ |
| .attributeCount = 4, \ |
| .clusterSize = 6, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 85 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 89 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 2, Cluster: On/Off (server) */ \ |
| .clusterId = 0x00000006, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(223), \ |
| .attributeCount = 2, \ |
| .clusterSize = 3, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| .functions = chipFuncArrayOnOffServer, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 91 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 2, Cluster: Level Control (server) */ \ |
| .clusterId = 0x00000008, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(225), \ |
| .attributeCount = 16, \ |
| .clusterSize = 27, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| .functions = chipFuncArrayLevelControlServer, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 95 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 2, Cluster: Descriptor (server) */ \ |
| .clusterId = 0x0000001D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(241), \ |
| .attributeCount = 5, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 2, Cluster: Audio Output (server) */ \ |
| .clusterId = 0x0000050B, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(246), \ |
| .attributeCount = 4, \ |
| .clusterSize = 7, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 104 ) ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 3, Cluster: Descriptor (server) */ \ |
| .clusterId = 0x0000001D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(250), \ |
| .attributeCount = 5, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 3, Cluster: Media Playback (server) */ \ |
| .clusterId = 0x00000506, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(255), \ |
| .attributeCount = 9, \ |
| .clusterSize = 43, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 107 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 119 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 3, Cluster: Content Launcher (server) */ \ |
| .clusterId = 0x0000050A, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(264), \ |
| .attributeCount = 4, \ |
| .clusterSize = 10, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 121 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 124 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 3, Cluster: Application Basic (server) */ \ |
| .clusterId = 0x0000050D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(268), \ |
| .attributeCount = 9, \ |
| .clusterSize = 106, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 3, Cluster: Account Login (server) */ \ |
| .clusterId = 0x0000050E, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(277), \ |
| .attributeCount = 1, \ |
| .clusterSize = 2, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 126 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 130 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 4, Cluster: Descriptor (server) */ \ |
| .clusterId = 0x0000001D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(278), \ |
| .attributeCount = 5, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 4, Cluster: Content Launcher (server) */ \ |
| .clusterId = 0x0000050A, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(283), \ |
| .attributeCount = 3, \ |
| .clusterSize = 6, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 132 ) ,\ |
| .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 135 ) ,\ |
| },\ |
| { \ |
| /* Endpoint: 4, Cluster: Application Basic (server) */ \ |
| .clusterId = 0x0000050D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(286), \ |
| .attributeCount = 9, \ |
| .clusterSize = 106, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 5, Cluster: Descriptor (server) */ \ |
| .clusterId = 0x0000001D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(295), \ |
| .attributeCount = 5, \ |
| .clusterSize = 0, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| { \ |
| /* Endpoint: 5, Cluster: Application Basic (server) */ \ |
| .clusterId = 0x0000050D, \ |
| .attributes = ZAP_ATTRIBUTE_INDEX(300), \ |
| .attributeCount = 8, \ |
| .clusterSize = 106, \ |
| .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| .functions = NULL, \ |
| .acceptedCommandList = nullptr ,\ |
| .generatedCommandList = nullptr ,\ |
| },\ |
| } |
| |
| // clang-format on |
| |
| #define ZAP_CLUSTER_INDEX(index) (&generatedClusters[index]) |
| |
| #define ZAP_FIXED_ENDPOINT_DATA_VERSION_COUNT 46 |
| |
| // This is an array of EmberAfEndpointType structures. |
| #define GENERATED_ENDPOINT_TYPES \ |
| { \ |
| { ZAP_CLUSTER_INDEX(0), 26, 439 }, { ZAP_CLUSTER_INDEX(26), 10, 82 }, { ZAP_CLUSTER_INDEX(36), 4, 37 }, \ |
| { ZAP_CLUSTER_INDEX(40), 5, 161 }, { ZAP_CLUSTER_INDEX(45), 3, 112 }, { ZAP_CLUSTER_INDEX(48), 2, 106 }, \ |
| } |
| |
| // Largest attribute size is needed for various buffers |
| #define ATTRIBUTE_LARGEST (259) |
| |
| static_assert(ATTRIBUTE_LARGEST <= CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE, "ATTRIBUTE_LARGEST larger than expected"); |
| |
| // Total size of singleton attributes |
| #define ATTRIBUTE_SINGLETONS_SIZE (37) |
| |
| // Total size of attribute storage |
| #define ATTRIBUTE_MAX_SIZE (937) |
| |
| // Number of fixed endpoints |
| #define FIXED_ENDPOINT_COUNT (6) |
| |
| // Array of endpoints that are supported, the data inside |
| // the array is the endpoint number. |
| #define FIXED_ENDPOINT_ARRAY \ |
| { \ |
| 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005 \ |
| } |
| |
| // Array of profile ids |
| #define FIXED_PROFILE_IDS \ |
| { \ |
| 0x0103, 0x0103, 0x0103, 0x0103, 0x0103, 0x0103 \ |
| } |
| |
| // Array of device types |
| #define FIXED_DEVICE_TYPES \ |
| { \ |
| { 0x0016, 1 }, { 0x0023, 1 }, { 0x0022, 1 }, { 0x0024, 1 }, { 0x0024, 1 }, { 0x0024, 1 } \ |
| } |
| |
| // Array of device type offsets |
| #define FIXED_DEVICE_TYPE_OFFSETS \ |
| { \ |
| 0, 1, 2, 3, 4, 5 \ |
| } |
| |
| // Array of device type lengths |
| #define FIXED_DEVICE_TYPE_LENGTHS \ |
| { \ |
| 1, 1, 1, 1, 1, 1 \ |
| } |
| |
| // Array of endpoint types supported on each endpoint |
| #define FIXED_ENDPOINT_TYPES \ |
| { \ |
| 0, 1, 2, 3, 4, 5 \ |
| } |
| |
| // Array of networks supported on each endpoint |
| #define FIXED_NETWORKS \ |
| { \ |
| 0, 0, 0, 0, 0, 0 \ |
| } |