Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1 | /* |
| 2 | * |
Vivien Nicolas | fba51b9 | 2022-01-19 18:47:32 +0100 | [diff] [blame] | 3 | * Copyright (c) 2022 Project CHIP Authors |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 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 | |
Vivien Nicolas | ec761ed | 2021-02-03 02:56:02 +0100 | [diff] [blame] | 18 | // THIS FILE IS GENERATED BY ZAP |
| 19 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 20 | // Prevent multiple inclusion |
| 21 | #pragma once |
| 22 | |
Boris Zbarsky | e94c9a9 | 2022-02-05 02:49:57 -0500 | [diff] [blame] | 23 | #include <lib/core/CHIPConfig.h> |
| 24 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 25 | // Default values for the attributes longer than a pointer, |
| 26 | // in a form of a binary blob |
| 27 | // Separate block is generated for big-endian and little-endian cases. |
| 28 | #if BIGENDIAN_CPU |
| 29 | #define GENERATED_DEFAULTS \ |
| 30 | { \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 31 | \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 32 | /* Endpoint: 0, Cluster: Localization Configuration (server), big-endian */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 33 | \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 34 | /* 0 - ActiveLocale, */ \ |
| 35 | 5, 'e', 'n', '-', 'U', 'S', \ |
Yufeng Wang | 6e1a741 | 2022-01-21 08:31:03 -0800 | [diff] [blame] | 36 | \ |
Yufeng Wang | a18ea0b | 2021-05-24 21:46:22 -0700 | [diff] [blame] | 37 | /* Endpoint: 0, Cluster: General Commissioning (server), big-endian */ \ |
| 38 | \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 39 | /* 6 - Breadcrumb, */ \ |
Yufeng Wang | 20ac5e1 | 2021-04-21 21:57:06 -0700 | [diff] [blame] | 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 41 | \ |
Boris Zbarsky | 117dd16 | 2022-08-08 16:32:56 -0400 | [diff] [blame] | 42 | /* Endpoint: 1, Cluster: Actions (server), big-endian */ \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 43 | \ |
Boris Zbarsky | 117dd16 | 2022-08-08 16:32:56 -0400 | [diff] [blame] | 44 | /* 14 - SetupURL, */ \ |
Boris Zbarsky | 196580a | 2022-07-28 10:55:32 -0400 | [diff] [blame] | 45 | 19, 0, 'h', 't', 't', 'p', 's', ':', '/', '/', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | #else // !BIGENDIAN_CPU |
| 49 | #define GENERATED_DEFAULTS \ |
| 50 | { \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 51 | \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 52 | /* Endpoint: 0, Cluster: Localization Configuration (server), little-endian */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 53 | \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 54 | /* 0 - ActiveLocale, */ \ |
| 55 | 5, 'e', 'n', '-', 'U', 'S', \ |
Yufeng Wang | 6e1a741 | 2022-01-21 08:31:03 -0800 | [diff] [blame] | 56 | \ |
Yufeng Wang | a18ea0b | 2021-05-24 21:46:22 -0700 | [diff] [blame] | 57 | /* Endpoint: 0, Cluster: General Commissioning (server), little-endian */ \ |
| 58 | \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 59 | /* 6 - Breadcrumb, */ \ |
Yufeng Wang | 20ac5e1 | 2021-04-21 21:57:06 -0700 | [diff] [blame] | 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 61 | \ |
Boris Zbarsky | 117dd16 | 2022-08-08 16:32:56 -0400 | [diff] [blame] | 62 | /* Endpoint: 1, Cluster: Actions (server), little-endian */ \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 63 | \ |
Boris Zbarsky | 117dd16 | 2022-08-08 16:32:56 -0400 | [diff] [blame] | 64 | /* 14 - SetupURL, */ \ |
Boris Zbarsky | 196580a | 2022-07-28 10:55:32 -0400 | [diff] [blame] | 65 | 19, 0, 'h', 't', 't', 'p', 's', ':', '/', '/', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | #endif // BIGENDIAN_CPU |
| 69 | |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 70 | #define GENERATED_DEFAULTS_COUNT (3) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 71 | |
| 72 | #define ZAP_TYPE(type) ZCL_##type##_ATTRIBUTE_TYPE |
| 73 | #define ZAP_LONG_DEFAULTS_INDEX(index) \ |
| 74 | { \ |
Boris Zbarsky | 2278e6b | 2021-11-30 01:40:08 -0500 | [diff] [blame] | 75 | &generatedDefaults[index] \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 76 | } |
| 77 | #define ZAP_MIN_MAX_DEFAULTS_INDEX(index) \ |
| 78 | { \ |
Boris Zbarsky | 2278e6b | 2021-11-30 01:40:08 -0500 | [diff] [blame] | 79 | &minMaxDefaults[index] \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 80 | } |
Vivien Nicolas | a11d054 | 2021-03-17 17:51:38 +0100 | [diff] [blame] | 81 | #define ZAP_EMPTY_DEFAULT() \ |
| 82 | { \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 83 | (uint32_t) 0 \ |
Vivien Nicolas | a11d054 | 2021-03-17 17:51:38 +0100 | [diff] [blame] | 84 | } |
| 85 | #define ZAP_SIMPLE_DEFAULT(x) \ |
| 86 | { \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 87 | (uint32_t) x \ |
Vivien Nicolas | a11d054 | 2021-03-17 17:51:38 +0100 | [diff] [blame] | 88 | } |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 89 | |
| 90 | // This is an array of EmberAfAttributeMinMaxValue structures. |
Andrei Litvin | b263270 | 2022-07-21 17:03:24 -0400 | [diff] [blame] | 91 | #define GENERATED_MIN_MAX_DEFAULT_COUNT 3 |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 92 | #define GENERATED_MIN_MAX_DEFAULTS \ |
| 93 | { \ |
Boris Zbarsky | 2278e6b | 2021-11-30 01:40:08 -0500 | [diff] [blame] | 94 | \ |
Yufeng Wang | b6e08a8 | 2022-01-20 21:55:14 -0800 | [diff] [blame] | 95 | /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ |
| 96 | { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x1 }, /* HourFormat */ \ |
| 97 | \ |
Andrei Litvin | b263270 | 2022-07-21 17:03:24 -0400 | [diff] [blame] | 98 | /* Endpoint: 0, Cluster: Unit Localization (server) */ \ |
| 99 | { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x2 }, /* TemperatureUnit */ \ |
| 100 | \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 101 | /* Endpoint: 2, Cluster: Level Control (server) */ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x3 } /* Options */ \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 102 | } |
| 103 | |
| 104 | #define ZAP_ATTRIBUTE_MASK(mask) ATTRIBUTE_MASK_##mask |
| 105 | // This is an array of EmberAfAttributeMetadata structures. |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 106 | #define GENERATED_ATTRIBUTE_COUNT 246 |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 107 | #define GENERATED_ATTRIBUTES \ |
| 108 | { \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 109 | \ |
Yufeng Wang | a18ea0b | 2021-05-24 21:46:22 -0700 | [diff] [blame] | 110 | /* Endpoint: 0, Cluster: Descriptor (server) */ \ |
Boris Zbarsky | e4c075f | 2022-09-12 08:23:17 -0400 | [diff] [blame] | 111 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* DeviceTypeList */ \ |
| 112 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ServerList */ \ |
| 113 | { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClientList */ \ |
| 114 | { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PartsList */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 115 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 116 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
Yufeng Wang | a18ea0b | 2021-05-24 21:46:22 -0700 | [diff] [blame] | 117 | \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 118 | /* Endpoint: 0, Cluster: Access Control (server) */ \ |
| 119 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| 120 | ZAP_EMPTY_DEFAULT() }, /* ACL */ \ |
| 121 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
Tennessee Carmel-Veilleux | 184bda1 | 2022-04-13 10:52:31 -0400 | [diff] [blame] | 122 | ZAP_EMPTY_DEFAULT() }, /* Extension */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 123 | { 0x00000002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Tennessee Carmel-Veilleux | 184bda1 | 2022-04-13 10:52:31 -0400 | [diff] [blame] | 124 | ZAP_EMPTY_DEFAULT() }, /* SubjectsPerAccessControlEntry */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 125 | { 0x00000003, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Tennessee Carmel-Veilleux | 184bda1 | 2022-04-13 10:52:31 -0400 | [diff] [blame] | 126 | ZAP_EMPTY_DEFAULT() }, /* TargetsPerAccessControlEntry */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 127 | { 0x00000004, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 128 | ZAP_EMPTY_DEFAULT() }, /* AccessControlEntriesPerFabric */ \ |
| 129 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 130 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 131 | \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 132 | /* Endpoint: 0, Cluster: Basic (server) */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 133 | { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 134 | ZAP_EMPTY_DEFAULT() }, /* DataModelRevision */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 135 | { 0x00000001, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 136 | ZAP_EMPTY_DEFAULT() }, /* VendorName */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 137 | { 0x00000002, ZAP_TYPE(VENDOR_ID), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 138 | ZAP_EMPTY_DEFAULT() }, /* VendorID */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 139 | { 0x00000003, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 140 | ZAP_EMPTY_DEFAULT() }, /* ProductName */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 141 | { 0x00000004, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 142 | ZAP_EMPTY_DEFAULT() }, /* ProductID */ \ |
Leonard Zgrablic | 9f16e9a | 2022-02-01 12:43:34 -0500 | [diff] [blame] | 143 | { 0x00000005, ZAP_TYPE(CHAR_STRING), 33, \ |
| 144 | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(SINGLETON) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
Paul Zander | 2f7ace8 | 2021-11-23 14:34:22 +0100 | [diff] [blame] | 145 | ZAP_EMPTY_DEFAULT() }, /* NodeLabel */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 146 | { 0x00000006, ZAP_TYPE(CHAR_STRING), 3, \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 147 | ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| 148 | ZAP_EMPTY_DEFAULT() }, /* Location */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 149 | { 0x00000007, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 150 | ZAP_EMPTY_DEFAULT() }, /* HardwareVersion */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 151 | { 0x00000008, ZAP_TYPE(CHAR_STRING), 65, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 152 | ZAP_EMPTY_DEFAULT() }, /* HardwareVersionString */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 153 | { 0x00000009, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 154 | ZAP_EMPTY_DEFAULT() }, /* SoftwareVersion */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 155 | { 0x0000000A, ZAP_TYPE(CHAR_STRING), 65, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Leonard Zgrablic | 1490461 | 2022-01-24 14:54:45 -0500 | [diff] [blame] | 156 | ZAP_EMPTY_DEFAULT() }, /* SoftwareVersionString */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 157 | { 0x0000000B, ZAP_TYPE(CHAR_STRING), 17, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 158 | ZAP_EMPTY_DEFAULT() }, /* ManufacturingDate */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 159 | { 0x0000000C, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 160 | ZAP_EMPTY_DEFAULT() }, /* PartNumber */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 161 | { 0x0000000D, ZAP_TYPE(LONG_CHAR_STRING), 258, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 162 | ZAP_EMPTY_DEFAULT() }, /* ProductURL */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 163 | { 0x0000000E, ZAP_TYPE(CHAR_STRING), 65, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 164 | ZAP_EMPTY_DEFAULT() }, /* ProductLabel */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 165 | { 0x0000000F, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 166 | ZAP_EMPTY_DEFAULT() }, /* SerialNumber */ \ |
Leonard Zgrablic | 9f16e9a | 2022-02-01 12:43:34 -0500 | [diff] [blame] | 167 | { 0x00000010, ZAP_TYPE(BOOLEAN), 1, \ |
| 168 | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(SINGLETON) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
Leonard Zgrablic | 1490461 | 2022-01-24 14:54:45 -0500 | [diff] [blame] | 169 | ZAP_SIMPLE_DEFAULT(0) }, /* LocalConfigDisabled */ \ |
| 170 | { 0x00000011, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(1) }, /* Reachable */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 171 | { 0x00000012, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ |
Tennessee Carmel-Veilleux | 184bda1 | 2022-04-13 10:52:31 -0400 | [diff] [blame] | 172 | ZAP_EMPTY_DEFAULT() }, /* UniqueID */ \ |
| 173 | { 0x00000013, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CapabilityMinima */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 174 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
Tennessee Carmel-Veilleux | 184bda1 | 2022-04-13 10:52:31 -0400 | [diff] [blame] | 175 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 176 | \ |
Yufeng Wang | a841e21 | 2022-01-11 00:56:45 -0800 | [diff] [blame] | 177 | /* Endpoint: 0, Cluster: Localization Configuration (server) */ \ |
Vivien Nicolas | 500e890 | 2022-05-18 22:18:32 +0200 | [diff] [blame] | 178 | { 0x00000000, ZAP_TYPE(CHAR_STRING), 36, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
Tennessee Carmel-Veilleux | ddfa994 | 2022-01-27 17:02:16 -0500 | [diff] [blame] | 179 | ZAP_LONG_DEFAULTS_INDEX(0) }, /* ActiveLocale */ \ |
Vivien Nicolas | 500e890 | 2022-05-18 22:18:32 +0200 | [diff] [blame] | 180 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* SupportedLocales */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 181 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
Yufeng Wang | 6e1a741 | 2022-01-21 08:31:03 -0800 | [diff] [blame] | 182 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | a841e21 | 2022-01-11 00:56:45 -0800 | [diff] [blame] | 183 | \ |
Yufeng Wang | b6e08a8 | 2022-01-20 21:55:14 -0800 | [diff] [blame] | 184 | /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ |
| 185 | { 0x00000000, ZAP_TYPE(ENUM8), 1, \ |
| 186 | ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| 187 | ZAP_MIN_MAX_DEFAULTS_INDEX(0) }, /* HourFormat */ \ |
| 188 | { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| 189 | ZAP_SIMPLE_DEFAULT(0) }, /* ActiveCalendarType */ \ |
| 190 | { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 191 | ZAP_EMPTY_DEFAULT() }, /* SupportedCalendarTypes */ \ |
| 192 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 193 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | b6e08a8 | 2022-01-20 21:55:14 -0800 | [diff] [blame] | 194 | \ |
Leonard Zgrablic | 7b869ae | 2022-01-26 20:36:44 -0500 | [diff] [blame] | 195 | /* Endpoint: 0, Cluster: Unit Localization (server) */ \ |
Andrei Litvin | b263270 | 2022-07-21 17:03:24 -0400 | [diff] [blame] | 196 | { 0x00000000, ZAP_TYPE(ENUM8), 1, \ |
| 197 | ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| 198 | ZAP_MIN_MAX_DEFAULTS_INDEX(1) }, /* TemperatureUnit */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 199 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0x1) }, /* FeatureMap */ \ |
| 200 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Leonard Zgrablic | 7b869ae | 2022-01-26 20:36:44 -0500 | [diff] [blame] | 201 | \ |
Yufeng Wang | a18ea0b | 2021-05-24 21:46:22 -0700 | [diff] [blame] | 202 | /* Endpoint: 0, Cluster: General Commissioning (server) */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 203 | { 0x00000000, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_LONG_DEFAULTS_INDEX(6) }, /* Breadcrumb */ \ |
Yufeng Wang | 974a6eb | 2022-02-02 10:40:21 -0800 | [diff] [blame] | 204 | { 0x00000001, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Boris Zbarsky | c1e5b2f | 2022-05-05 23:40:49 -0400 | [diff] [blame] | 205 | ZAP_EMPTY_DEFAULT() }, /* BasicCommissioningInfo */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 206 | { 0x00000002, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RegulatoryConfig */ \ |
| 207 | { 0x00000003, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Boris Zbarsky | c1e5b2f | 2022-05-05 23:40:49 -0400 | [diff] [blame] | 208 | ZAP_EMPTY_DEFAULT() }, /* LocationCapability */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 209 | { 0x00000004, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 210 | ZAP_EMPTY_DEFAULT() }, /* SupportsConcurrentConnection */ \ |
Boris Zbarsky | 460e723 | 2022-06-28 10:19:33 -0400 | [diff] [blame] | 211 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 212 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 213 | \ |
| 214 | /* Endpoint: 0, Cluster: Network Commissioning (server) */ \ |
Boris Zbarsky | 47682fb | 2022-02-24 08:54:28 -0500 | [diff] [blame] | 215 | { 0x00000000, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* MaxNetworks */ \ |
| 216 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* Networks */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 217 | { 0x00000002, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* ScanMaxTimeSeconds */ \ |
| 218 | { 0x00000003, ZAP_TYPE(INT8U), 1, 0, ZAP_EMPTY_DEFAULT() }, /* ConnectMaxTimeSeconds */ \ |
| 219 | { 0x00000004, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_EMPTY_DEFAULT() }, /* InterfaceEnabled */ \ |
Song GUO | d8b119a | 2022-02-15 10:39:47 +0800 | [diff] [blame] | 220 | { 0x00000005, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* LastNetworkingStatus */ \ |
| 221 | { 0x00000006, ZAP_TYPE(OCTET_STRING), 33, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* LastNetworkID */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 222 | { 0x00000007, ZAP_TYPE(INT32S), 4, ZAP_ATTRIBUTE_MASK(NULLABLE), ZAP_EMPTY_DEFAULT() }, /* LastConnectErrorValue */ \ |
| 223 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(2) }, /* FeatureMap */ \ |
| 224 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 225 | \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 226 | /* Endpoint: 0, Cluster: Diagnostic Logs (server) */ \ |
| 227 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 228 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| 229 | \ |
Yufeng Wang | c7b49a9 | 2021-05-13 14:53:24 -0700 | [diff] [blame] | 230 | /* Endpoint: 0, Cluster: General Diagnostics (server) */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 231 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* NetworkInterfaces */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 232 | { 0x00000001, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RebootCount */ \ |
| 233 | { 0x00000002, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* UpTime */ \ |
| 234 | { 0x00000003, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 235 | ZAP_EMPTY_DEFAULT() }, /* TotalOperationalHours */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 236 | { 0x00000004, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* BootReasons */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 237 | { 0x00000005, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
| 238 | ZAP_EMPTY_DEFAULT() }, /* ActiveHardwareFaults */ \ |
| 239 | { 0x00000006, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ActiveRadioFaults */ \ |
| 240 | { 0x00000007, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 241 | ZAP_EMPTY_DEFAULT() }, /* ActiveNetworkFaults */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 242 | { 0x00000008, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 243 | ZAP_EMPTY_DEFAULT() }, /* TestEventTriggersEnabled */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 244 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 245 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | 1010f70 | 2021-05-20 14:49:42 -0700 | [diff] [blame] | 246 | \ |
Boris Zbarsky | d88736a | 2021-10-22 17:55:13 -0400 | [diff] [blame] | 247 | /* Endpoint: 0, Cluster: Software Diagnostics (server) */ \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 248 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ThreadMetrics */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 249 | { 0x00000001, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CurrentHeapFree */ \ |
| 250 | { 0x00000002, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CurrentHeapUsed */ \ |
| 251 | { 0x00000003, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 252 | ZAP_EMPTY_DEFAULT() }, /* CurrentHeapHighWatermark */ \ |
| 253 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(1) }, /* FeatureMap */ \ |
| 254 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Boris Zbarsky | d88736a | 2021-10-22 17:55:13 -0400 | [diff] [blame] | 255 | \ |
jmartinez-silabs | 39dec0e | 2021-05-14 12:30:58 -0400 | [diff] [blame] | 256 | /* Endpoint: 0, Cluster: Thread Network Diagnostics (server) */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 257 | { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 258 | ZAP_EMPTY_DEFAULT() }, /* channel */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 259 | { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 260 | ZAP_EMPTY_DEFAULT() }, /* RoutingRole */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 261 | { 0x00000002, ZAP_TYPE(CHAR_STRING), 17, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 262 | ZAP_EMPTY_DEFAULT() }, /* NetworkName */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 263 | { 0x00000003, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 264 | ZAP_EMPTY_DEFAULT() }, /* PanId */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 265 | { 0x00000004, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 266 | ZAP_EMPTY_DEFAULT() }, /* ExtendedPanId */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 267 | { 0x00000005, ZAP_TYPE(OCTET_STRING), 18, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 268 | ZAP_EMPTY_DEFAULT() }, /* MeshLocalPrefix */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 269 | { 0x00000006, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* OverrunCount */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 270 | { 0x00000007, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* NeighborTableList */ \ |
| 271 | { 0x00000008, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RouteTableList */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 272 | { 0x00000009, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 273 | ZAP_EMPTY_DEFAULT() }, /* PartitionId */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 274 | { 0x0000000A, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 275 | ZAP_EMPTY_DEFAULT() }, /* weighting */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 276 | { 0x0000000B, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 277 | ZAP_EMPTY_DEFAULT() }, /* DataVersion */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 278 | { 0x0000000C, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 279 | ZAP_EMPTY_DEFAULT() }, /* StableDataVersion */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 280 | { 0x0000000D, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 281 | ZAP_EMPTY_DEFAULT() }, /* LeaderRouterId */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 282 | { 0x0000000E, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 283 | ZAP_EMPTY_DEFAULT() }, /* DetachedRoleCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 284 | { 0x0000000F, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ChildRoleCount */ \ |
| 285 | { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RouterRoleCount */ \ |
| 286 | { 0x00000011, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* LeaderRoleCount */ \ |
| 287 | { 0x00000012, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 288 | ZAP_EMPTY_DEFAULT() }, /* AttachAttemptCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 289 | { 0x00000013, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 290 | ZAP_EMPTY_DEFAULT() }, /* PartitionIdChangeCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 291 | { 0x00000014, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 292 | ZAP_EMPTY_DEFAULT() }, /* BetterPartitionAttachAttemptCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 293 | { 0x00000015, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 294 | ZAP_EMPTY_DEFAULT() }, /* ParentChangeCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 295 | { 0x00000016, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxTotalCount */ \ |
| 296 | { 0x00000017, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxUnicastCount */ \ |
| 297 | { 0x00000018, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxBroadcastCount */ \ |
| 298 | { 0x00000019, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 299 | ZAP_EMPTY_DEFAULT() }, /* TxAckRequestedCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 300 | { 0x0000001A, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxAckedCount */ \ |
| 301 | { 0x0000001B, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 302 | ZAP_EMPTY_DEFAULT() }, /* TxNoAckRequestedCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 303 | { 0x0000001C, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxDataCount */ \ |
| 304 | { 0x0000001D, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxDataPollCount */ \ |
| 305 | { 0x0000001E, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxBeaconCount */ \ |
| 306 | { 0x0000001F, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 307 | ZAP_EMPTY_DEFAULT() }, /* TxBeaconRequestCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 308 | { 0x00000020, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxOtherCount */ \ |
| 309 | { 0x00000021, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxRetryCount */ \ |
| 310 | { 0x00000022, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 311 | ZAP_EMPTY_DEFAULT() }, /* TxDirectMaxRetryExpiryCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 312 | { 0x00000023, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 313 | ZAP_EMPTY_DEFAULT() }, /* TxIndirectMaxRetryExpiryCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 314 | { 0x00000024, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxErrCcaCount */ \ |
| 315 | { 0x00000025, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxErrAbortCount */ \ |
| 316 | { 0x00000026, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 317 | ZAP_EMPTY_DEFAULT() }, /* TxErrBusyChannelCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 318 | { 0x00000027, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxTotalCount */ \ |
| 319 | { 0x00000028, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxUnicastCount */ \ |
| 320 | { 0x00000029, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxBroadcastCount */ \ |
| 321 | { 0x0000002A, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxDataCount */ \ |
| 322 | { 0x0000002B, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxDataPollCount */ \ |
| 323 | { 0x0000002C, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxBeaconCount */ \ |
| 324 | { 0x0000002D, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 325 | ZAP_EMPTY_DEFAULT() }, /* RxBeaconRequestCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 326 | { 0x0000002E, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxOtherCount */ \ |
| 327 | { 0x0000002F, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 328 | ZAP_EMPTY_DEFAULT() }, /* RxAddressFilteredCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 329 | { 0x00000030, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 330 | ZAP_EMPTY_DEFAULT() }, /* RxDestAddrFilteredCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 331 | { 0x00000031, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 332 | ZAP_EMPTY_DEFAULT() }, /* RxDuplicatedCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 333 | { 0x00000032, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 334 | ZAP_EMPTY_DEFAULT() }, /* RxErrNoFrameCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 335 | { 0x00000033, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 336 | ZAP_EMPTY_DEFAULT() }, /* RxErrUnknownNeighborCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 337 | { 0x00000034, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 338 | ZAP_EMPTY_DEFAULT() }, /* RxErrInvalidSrcAddrCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 339 | { 0x00000035, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxErrSecCount */ \ |
| 340 | { 0x00000036, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxErrFcsCount */ \ |
| 341 | { 0x00000037, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* RxErrOtherCount */ \ |
| 342 | { 0x00000038, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 343 | ZAP_EMPTY_DEFAULT() }, /* ActiveTimestamp */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 344 | { 0x00000039, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 345 | ZAP_EMPTY_DEFAULT() }, /* PendingTimestamp */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 346 | { 0x0000003A, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | 6056898 | 2022-08-08 15:27:14 -0400 | [diff] [blame] | 347 | ZAP_EMPTY_DEFAULT() }, /* Delay */ \ |
Yufeng Wang | 40629df | 2022-05-31 11:36:37 -0700 | [diff] [blame] | 348 | { 0x0000003B, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 349 | ZAP_EMPTY_DEFAULT() }, /* SecurityPolicy */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 350 | { 0x0000003C, ZAP_TYPE(OCTET_STRING), 5, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | 6056898 | 2022-08-08 15:27:14 -0400 | [diff] [blame] | 351 | ZAP_EMPTY_DEFAULT() }, /* ChannelPage0Mask */ \ |
Yufeng Wang | 40629df | 2022-05-31 11:36:37 -0700 | [diff] [blame] | 352 | { 0x0000003D, ZAP_TYPE(STRUCT), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | a8657fb | 2021-11-15 11:31:40 -0800 | [diff] [blame] | 353 | ZAP_EMPTY_DEFAULT() }, /* OperationalDatasetComponents */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 354 | { 0x0000003E, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 355 | ZAP_EMPTY_DEFAULT() }, /* ActiveNetworkFaultsList */ \ |
| 356 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(15) }, /* FeatureMap */ \ |
| 357 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
jmartinez-silabs | 39dec0e | 2021-05-14 12:30:58 -0400 | [diff] [blame] | 358 | \ |
Yufeng Wang | 74f8da9 | 2021-05-10 08:18:08 -0700 | [diff] [blame] | 359 | /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server) */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 360 | { 0x00000000, ZAP_TYPE(OCTET_STRING), 7, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 361 | ZAP_EMPTY_DEFAULT() }, /* bssid */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 362 | { 0x00000001, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 363 | ZAP_EMPTY_DEFAULT() }, /* SecurityType */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 364 | { 0x00000002, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 365 | ZAP_EMPTY_DEFAULT() }, /* WiFiVersion */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 366 | { 0x00000003, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 367 | ZAP_EMPTY_DEFAULT() }, /* ChannelNumber */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 368 | { 0x00000004, ZAP_TYPE(INT8S), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | daf5030 | 2022-08-04 21:14:26 -0700 | [diff] [blame] | 369 | ZAP_EMPTY_DEFAULT() }, /* Rssi */ \ |
| 370 | { 0x00000005, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 371 | ZAP_EMPTY_DEFAULT() }, /* BeaconLostCount */ \ |
| 372 | { 0x00000006, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 373 | ZAP_EMPTY_DEFAULT() }, /* BeaconRxCount */ \ |
| 374 | { 0x00000007, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 375 | ZAP_EMPTY_DEFAULT() }, /* PacketMulticastRxCount */ \ |
Yufeng Wang | daf5030 | 2022-08-04 21:14:26 -0700 | [diff] [blame] | 376 | { 0x00000008, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 377 | ZAP_EMPTY_DEFAULT() }, /* PacketMulticastTxCount */ \ |
Yufeng Wang | daf5030 | 2022-08-04 21:14:26 -0700 | [diff] [blame] | 378 | { 0x00000009, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 379 | ZAP_EMPTY_DEFAULT() }, /* PacketUnicastRxCount */ \ |
Yufeng Wang | daf5030 | 2022-08-04 21:14:26 -0700 | [diff] [blame] | 380 | { 0x0000000A, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 381 | ZAP_EMPTY_DEFAULT() }, /* PacketUnicastTxCount */ \ |
Yufeng Wang | daf5030 | 2022-08-04 21:14:26 -0700 | [diff] [blame] | 382 | { 0x0000000B, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 383 | ZAP_EMPTY_DEFAULT() }, /* CurrentMaxRate */ \ |
| 384 | { 0x0000000C, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 385 | ZAP_EMPTY_DEFAULT() }, /* OverrunCount */ \ |
| 386 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(3) }, /* FeatureMap */ \ |
| 387 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | 74f8da9 | 2021-05-10 08:18:08 -0700 | [diff] [blame] | 388 | \ |
Yufeng Wang | 805a4b3 | 2021-05-17 20:27:36 -0700 | [diff] [blame] | 389 | /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 390 | { 0x00000000, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 391 | ZAP_EMPTY_DEFAULT() }, /* PHYRate */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 392 | { 0x00000001, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 393 | ZAP_EMPTY_DEFAULT() }, /* FullDuplex */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 394 | { 0x00000002, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PacketRxCount */ \ |
| 395 | { 0x00000003, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PacketTxCount */ \ |
| 396 | { 0x00000004, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxErrCount */ \ |
| 397 | { 0x00000005, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CollisionCount */ \ |
| 398 | { 0x00000006, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* OverrunCount */ \ |
| 399 | { 0x00000007, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 400 | ZAP_EMPTY_DEFAULT() }, /* CarrierDetect */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 401 | { 0x00000008, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TimeSinceReset */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 402 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(3) }, /* FeatureMap */ \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 403 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | 805a4b3 | 2021-05-17 20:27:36 -0700 | [diff] [blame] | 404 | \ |
Pankaj Garg | 5eea9f2 | 2021-08-03 17:58:16 -0700 | [diff] [blame] | 405 | /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */ \ |
Tennessee Carmel-Veilleux | c24577d | 2022-08-16 00:27:47 -0400 | [diff] [blame] | 406 | { 0x00000000, ZAP_TYPE(ENUM8), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* WindowStatus */ \ |
Boris Zbarsky | 17c8da6 | 2022-07-31 01:47:37 -0400 | [diff] [blame] | 407 | { 0x00000001, ZAP_TYPE(FABRIC_IDX), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 408 | ZAP_EMPTY_DEFAULT() }, /* AdminFabricIndex */ \ |
| 409 | { 0x00000002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 410 | ZAP_EMPTY_DEFAULT() }, /* AdminVendorId */ \ |
| 411 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 412 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Pankaj Garg | 5eea9f2 | 2021-08-03 17:58:16 -0700 | [diff] [blame] | 413 | \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 414 | /* Endpoint: 0, Cluster: Operational Credentials (server) */ \ |
Yufeng Wang | fd815cd | 2022-01-20 10:26:41 -0800 | [diff] [blame] | 415 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* NOCs */ \ |
Boris Zbarsky | 098e455 | 2022-02-12 05:10:07 -0500 | [diff] [blame] | 416 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* Fabrics */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 417 | { 0x00000002, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* SupportedFabrics */ \ |
| 418 | { 0x00000003, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Boris Zbarsky | c1e5b2f | 2022-05-05 23:40:49 -0400 | [diff] [blame] | 419 | ZAP_EMPTY_DEFAULT() }, /* CommissionedFabrics */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 420 | { 0x00000004, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Boris Zbarsky | 2475f10 | 2021-10-29 13:01:22 -0400 | [diff] [blame] | 421 | ZAP_EMPTY_DEFAULT() }, /* TrustedRootCertificates */ \ |
Vivien Nicolas | f93e6cb | 2022-07-29 13:23:24 +0200 | [diff] [blame] | 422 | { 0x00000005, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 423 | ZAP_EMPTY_DEFAULT() }, /* CurrentFabricIndex */ \ |
| 424 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 425 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 426 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 427 | /* Endpoint: 0, Cluster: Group Key Management (server) */ \ |
| 428 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| 429 | ZAP_EMPTY_DEFAULT() }, /* GroupKeyMap */ \ |
| 430 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* GroupTable */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 431 | { 0x00000002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 432 | ZAP_EMPTY_DEFAULT() }, /* MaxGroupsPerFabric */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 433 | { 0x00000003, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 434 | ZAP_EMPTY_DEFAULT() }, /* MaxGroupKeysPerFabric */ \ |
| 435 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 436 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | ed19251 | 2021-12-10 21:02:15 -0800 | [diff] [blame] | 437 | \ |
Yufeng Wang | c9bc5ae | 2021-12-14 11:04:33 -0800 | [diff] [blame] | 438 | /* Endpoint: 0, Cluster: User Label (server) */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 439 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 440 | ZAP_EMPTY_DEFAULT() }, /* label list */ \ |
| 441 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 442 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | c9bc5ae | 2021-12-14 11:04:33 -0800 | [diff] [blame] | 443 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 444 | /* Endpoint: 1, Cluster: Identify (server) */ \ |
| 445 | { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0) }, /* identify time */ \ |
| 446 | { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ |
| 447 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 448 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ |
| 449 | \ |
| 450 | /* Endpoint: 1, Cluster: Descriptor (server) */ \ |
Boris Zbarsky | e4c075f | 2022-09-12 08:23:17 -0400 | [diff] [blame] | 451 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* DeviceTypeList */ \ |
| 452 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ServerList */ \ |
| 453 | { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClientList */ \ |
| 454 | { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PartsList */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 455 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 456 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| 457 | \ |
Boris Zbarsky | 117dd16 | 2022-08-08 16:32:56 -0400 | [diff] [blame] | 458 | /* Endpoint: 1, Cluster: Actions (server) */ \ |
| 459 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ActionList */ \ |
| 460 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* EndpointLists */ \ |
| 461 | { 0x00000002, ZAP_TYPE(LONG_CHAR_STRING), 514, 0, ZAP_LONG_DEFAULTS_INDEX(14) }, /* SetupURL */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 462 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 463 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| 464 | \ |
| 465 | /* Endpoint: 2, Cluster: On/Off (server) */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 466 | { 0x00000000, ZAP_TYPE(BOOLEAN), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* OnOff */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 467 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 468 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 469 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 470 | /* Endpoint: 2, Cluster: Level Control (server) */ \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 471 | { 0x00000000, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 472 | ZAP_SIMPLE_DEFAULT(0x00) }, /* CurrentLevel */ \ |
| 473 | { 0x00000001, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* RemainingTime */ \ |
| 474 | { 0x00000002, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0x01) }, /* MinLevel */ \ |
| 475 | { 0x00000003, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0xFE) }, /* MaxLevel */ \ |
| 476 | { 0x00000004, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* CurrentFrequency */ \ |
| 477 | { 0x00000005, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* MinFrequency */ \ |
| 478 | { 0x00000006, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* MaxFrequency */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 479 | { 0x0000000F, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 480 | ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* Options */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 481 | { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 482 | ZAP_SIMPLE_DEFAULT(0x0000) }, /* OnOffTransitionTime */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 483 | { 0x00000011, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 484 | ZAP_SIMPLE_DEFAULT(0xFE) }, /* OnLevel */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 485 | { 0x00000012, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 486 | ZAP_EMPTY_DEFAULT() }, /* OnTransitionTime */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 487 | { 0x00000013, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 488 | ZAP_EMPTY_DEFAULT() }, /* OffTransitionTime */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 489 | { 0x00000014, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 490 | ZAP_EMPTY_DEFAULT() }, /* DefaultMoveRate */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 491 | { 0x00004000, ZAP_TYPE(INT8U), 1, \ |
jmartinez-silabs | 1a89a84 | 2022-01-14 15:09:07 -0500 | [diff] [blame] | 492 | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
mkardous-silabs | 58c4b04 | 2022-08-03 15:32:35 -0400 | [diff] [blame] | 493 | ZAP_SIMPLE_DEFAULT(255) }, /* StartUpCurrentLevel */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 494 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(3) }, /* FeatureMap */ \ |
| 495 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(5) }, /* ClusterRevision */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 496 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 497 | /* Endpoint: 2, Cluster: Descriptor (server) */ \ |
Boris Zbarsky | e4c075f | 2022-09-12 08:23:17 -0400 | [diff] [blame] | 498 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* DeviceTypeList */ \ |
| 499 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ServerList */ \ |
| 500 | { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClientList */ \ |
| 501 | { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PartsList */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 502 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 503 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
Damian Królik | 4ab05ae | 2021-10-26 13:24:46 +0200 | [diff] [blame] | 504 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 505 | /* Endpoint: 2, Cluster: Switch (server) */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 506 | { 0x00000000, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(2) }, /* number of positions */ \ |
| 507 | { 0x00000001, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(1) }, /* current position */ \ |
| 508 | { 0x00000002, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(2) }, /* multi press max */ \ |
| 509 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 510 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 511 | \ |
| 512 | /* Endpoint: 2, Cluster: Temperature Measurement (server) */ \ |
| 513 | { 0x00000000, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 514 | ZAP_EMPTY_DEFAULT() }, /* MeasuredValue */ \ |
| 515 | { 0x00000001, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 516 | ZAP_EMPTY_DEFAULT() }, /* MinMeasuredValue */ \ |
| 517 | { 0x00000002, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 518 | ZAP_EMPTY_DEFAULT() }, /* MaxMeasuredValue */ \ |
| 519 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* FeatureMap */ \ |
| 520 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* ClusterRevision */ \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 521 | } |
| 522 | |
| 523 | // This is an array of EmberAfCluster structures. |
Boris Zbarsky | 90cf66a | 2022-01-28 16:14:30 -0500 | [diff] [blame] | 524 | #define ZAP_ATTRIBUTE_INDEX(index) (&generatedAttributes[index]) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 525 | |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 526 | #define ZAP_GENERATED_COMMANDS_INDEX(index) ((chip::CommandId *) (&generatedCommands[index])) |
| 527 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 528 | // Cluster function static arrays |
| 529 | #define GENERATED_FUNCTION_ARRAYS \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 530 | const EmberAfGenericClusterFunction chipFuncArrayBasicServer[] = { \ |
| 531 | (EmberAfGenericClusterFunction) emberAfBasicClusterServerInitCallback, \ |
| 532 | }; \ |
Yufeng Wang | 6e1a741 | 2022-01-21 08:31:03 -0800 | [diff] [blame] | 533 | const EmberAfGenericClusterFunction chipFuncArrayLocalizationConfigurationServer[] = { \ |
| 534 | (EmberAfGenericClusterFunction) emberAfLocalizationConfigurationClusterServerInitCallback, \ |
| 535 | (EmberAfGenericClusterFunction) MatterLocalizationConfigurationClusterServerPreAttributeChangedCallback, \ |
| 536 | }; \ |
Yufeng Wang | b6e08a8 | 2022-01-20 21:55:14 -0800 | [diff] [blame] | 537 | const EmberAfGenericClusterFunction chipFuncArrayTimeFormatLocalizationServer[] = { \ |
| 538 | (EmberAfGenericClusterFunction) emberAfTimeFormatLocalizationClusterServerInitCallback, \ |
| 539 | (EmberAfGenericClusterFunction) MatterTimeFormatLocalizationClusterServerPreAttributeChangedCallback, \ |
| 540 | }; \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 541 | const EmberAfGenericClusterFunction chipFuncArrayIdentifyServer[] = { \ |
| 542 | (EmberAfGenericClusterFunction) emberAfIdentifyClusterServerInitCallback, \ |
| 543 | (EmberAfGenericClusterFunction) MatterIdentifyClusterServerAttributeChangedCallback, \ |
| 544 | }; \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 545 | const EmberAfGenericClusterFunction chipFuncArrayOnOffServer[] = { \ |
| 546 | (EmberAfGenericClusterFunction) emberAfOnOffClusterServerInitCallback, \ |
| 547 | }; \ |
| 548 | const EmberAfGenericClusterFunction chipFuncArrayLevelControlServer[] = { \ |
| 549 | (EmberAfGenericClusterFunction) emberAfLevelControlClusterServerInitCallback, \ |
| 550 | }; |
| 551 | |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 552 | // clang-format off |
| 553 | #define GENERATED_COMMANDS { \ |
| 554 | /* Endpoint: 0, Cluster: General Commissioning (server) */\ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 555 | /* AcceptedCommandList (index=0) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 556 | 0x00000000 /* ArmFailSafe */, \ |
| 557 | 0x00000002 /* SetRegulatoryConfig */, \ |
| 558 | 0x00000004 /* CommissioningComplete */, \ |
| 559 | chip::kInvalidCommandId /* end of list */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 560 | /* GeneratedCommandList (index=4)*/ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 561 | 0x00000001 /* ArmFailSafeResponse */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 562 | 0x00000003 /* SetRegulatoryConfigResponse */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 563 | 0x00000005 /* CommissioningCompleteResponse */, \ |
| 564 | chip::kInvalidCommandId /* end of list */, \ |
| 565 | /* Endpoint: 0, Cluster: Network Commissioning (server) */\ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 566 | /* AcceptedCommandList (index=8) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 567 | 0x00000000 /* ScanNetworks */, \ |
| 568 | 0x00000002 /* AddOrUpdateWiFiNetwork */, \ |
| 569 | 0x00000003 /* AddOrUpdateThreadNetwork */, \ |
| 570 | 0x00000004 /* RemoveNetwork */, \ |
| 571 | 0x00000006 /* ConnectNetwork */, \ |
| 572 | 0x00000008 /* ReorderNetwork */, \ |
| 573 | chip::kInvalidCommandId /* end of list */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 574 | /* GeneratedCommandList (index=15)*/ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 575 | 0x00000001 /* ScanNetworksResponse */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 576 | 0x00000005 /* NetworkConfigResponse */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 577 | 0x00000007 /* ConnectNetworkResponse */, \ |
| 578 | chip::kInvalidCommandId /* end of list */, \ |
| 579 | /* Endpoint: 0, Cluster: Diagnostic Logs (server) */\ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 580 | /* AcceptedCommandList (index=19) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 581 | 0x00000000 /* RetrieveLogsRequest */, \ |
| 582 | chip::kInvalidCommandId /* end of list */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 583 | /* GeneratedCommandList (index=21)*/ \ |
| 584 | 0x00000001 /* RetrieveLogsResponse */, \ |
| 585 | chip::kInvalidCommandId /* end of list */, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 586 | /* Endpoint: 0, Cluster: General Diagnostics (server) */\ |
Boris Zbarsky | 583ac0d | 2022-05-28 13:08:33 -0400 | [diff] [blame] | 587 | /* AcceptedCommandList (index=23) */ \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 588 | 0x00000000 /* TestEventTrigger */, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 589 | 0x00000000 /* TestEventTrigger */, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 590 | chip::kInvalidCommandId /* end of list */, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 591 | /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 592 | /* AcceptedCommandList (index=26) */ \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 593 | 0x00000000 /* ResetCounts */, \ |
| 594 | chip::kInvalidCommandId /* end of list */, \ |
| 595 | /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */\ |
| 596 | /* AcceptedCommandList (index=28) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 597 | 0x00000000 /* OpenCommissioningWindow */, \ |
| 598 | 0x00000001 /* OpenBasicCommissioningWindow */, \ |
| 599 | 0x00000002 /* RevokeCommissioning */, \ |
| 600 | chip::kInvalidCommandId /* end of list */, \ |
| 601 | /* Endpoint: 0, Cluster: Operational Credentials (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 602 | /* AcceptedCommandList (index=32) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 603 | 0x00000000 /* AttestationRequest */, \ |
| 604 | 0x00000002 /* CertificateChainRequest */, \ |
Boris Zbarsky | 570a1ce | 2022-02-04 11:38:38 -0500 | [diff] [blame] | 605 | 0x00000004 /* CSRRequest */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 606 | 0x00000006 /* AddNOC */, \ |
| 607 | 0x00000007 /* UpdateNOC */, \ |
| 608 | 0x00000009 /* UpdateFabricLabel */, \ |
| 609 | 0x0000000A /* RemoveFabric */, \ |
| 610 | 0x0000000B /* AddTrustedRootCertificate */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 611 | chip::kInvalidCommandId /* end of list */, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 612 | /* GeneratedCommandList (index=41)*/ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 613 | 0x00000001 /* AttestationResponse */, \ |
| 614 | 0x00000003 /* CertificateChainResponse */, \ |
Boris Zbarsky | 570a1ce | 2022-02-04 11:38:38 -0500 | [diff] [blame] | 615 | 0x00000005 /* CSRResponse */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 616 | 0x00000008 /* NOCResponse */, \ |
| 617 | chip::kInvalidCommandId /* end of list */, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 618 | /* Endpoint: 0, Cluster: Group Key Management (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 619 | /* AcceptedCommandList (index=46) */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 620 | 0x00000000 /* KeySetWrite */, \ |
| 621 | 0x00000001 /* KeySetRead */, \ |
| 622 | 0x00000003 /* KeySetRemove */, \ |
| 623 | 0x00000004 /* KeySetReadAllIndices */, \ |
| 624 | chip::kInvalidCommandId /* end of list */, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 625 | /* GeneratedCommandList (index=51)*/ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 626 | 0x00000002 /* KeySetReadResponse */, \ |
| 627 | 0x00000005 /* KeySetReadAllIndicesResponse */, \ |
| 628 | chip::kInvalidCommandId /* end of list */, \ |
| 629 | /* Endpoint: 1, Cluster: Identify (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 630 | /* AcceptedCommandList (index=54) */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 631 | 0x00000000 /* Identify */, \ |
| 632 | 0x00000040 /* TriggerEffect */, \ |
| 633 | chip::kInvalidCommandId /* end of list */, \ |
Boris Zbarsky | 117dd16 | 2022-08-08 16:32:56 -0400 | [diff] [blame] | 634 | /* Endpoint: 1, Cluster: Actions (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 635 | /* AcceptedCommandList (index=57) */ \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 636 | 0x00000000 /* InstantAction */, \ |
| 637 | chip::kInvalidCommandId /* end of list */, \ |
| 638 | /* Endpoint: 2, Cluster: On/Off (server) */\ |
| 639 | /* AcceptedCommandList (index=59) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 640 | 0x00000000 /* Off */, \ |
| 641 | 0x00000001 /* On */, \ |
| 642 | 0x00000002 /* Toggle */, \ |
| 643 | chip::kInvalidCommandId /* end of list */, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 644 | /* Endpoint: 2, Cluster: Level Control (server) */\ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 645 | /* AcceptedCommandList (index=63) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 646 | 0x00000000 /* MoveToLevel */, \ |
| 647 | 0x00000001 /* Move */, \ |
| 648 | 0x00000002 /* Step */, \ |
| 649 | 0x00000003 /* Stop */, \ |
| 650 | 0x00000004 /* MoveToLevelWithOnOff */, \ |
| 651 | 0x00000005 /* MoveWithOnOff */, \ |
| 652 | 0x00000006 /* StepWithOnOff */, \ |
| 653 | 0x00000007 /* StopWithOnOff */, \ |
| 654 | chip::kInvalidCommandId /* end of list */, \ |
| 655 | } |
| 656 | |
| 657 | // clang-format on |
| 658 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 659 | #define ZAP_CLUSTER_MASK(mask) CLUSTER_MASK_##mask |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 660 | #define GENERATED_CLUSTER_COUNT 28 |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 661 | |
| 662 | // clang-format off |
| 663 | #define GENERATED_CLUSTERS { \ |
| 664 | { \ |
| 665 | /* Endpoint: 0, Cluster: Descriptor (server) */ \ |
| 666 | .clusterId = 0x0000001D, \ |
| 667 | .attributes = ZAP_ATTRIBUTE_INDEX(0), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 668 | .attributeCount = 6, \ |
| 669 | .clusterSize = 4, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 670 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 671 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 672 | .acceptedCommandList = nullptr ,\ |
| 673 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 674 | },\ |
| 675 | { \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 676 | /* Endpoint: 0, Cluster: Access Control (client) */ \ |
| 677 | .clusterId = 0x0000001F, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 678 | .attributes = ZAP_ATTRIBUTE_INDEX(6), \ |
Boris Zbarsky | 4267a9b | 2022-02-03 13:11:41 -0500 | [diff] [blame] | 679 | .attributeCount = 0, \ |
| 680 | .clusterSize = 0, \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 681 | .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| 682 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 683 | .acceptedCommandList = nullptr ,\ |
| 684 | .generatedCommandList = nullptr ,\ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 685 | },\ |
| 686 | { \ |
| 687 | /* Endpoint: 0, Cluster: Access Control (server) */ \ |
| 688 | .clusterId = 0x0000001F, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 689 | .attributes = ZAP_ATTRIBUTE_INDEX(6), \ |
| 690 | .attributeCount = 7, \ |
| 691 | .clusterSize = 6, \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 692 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 693 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 694 | .acceptedCommandList = nullptr ,\ |
| 695 | .generatedCommandList = nullptr ,\ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 696 | },\ |
| 697 | { \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 698 | /* Endpoint: 0, Cluster: Basic (server) */ \ |
| 699 | .clusterId = 0x00000028, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 700 | .attributes = ZAP_ATTRIBUTE_INDEX(13), \ |
| 701 | .attributeCount = 22, \ |
| 702 | .clusterSize = 41, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 703 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| 704 | .functions = chipFuncArrayBasicServer, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 705 | .acceptedCommandList = nullptr ,\ |
| 706 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 707 | },\ |
| 708 | { \ |
| 709 | /* Endpoint: 0, Cluster: Localization Configuration (server) */ \ |
| 710 | .clusterId = 0x0000002B, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 711 | .attributes = ZAP_ATTRIBUTE_INDEX(35), \ |
| 712 | .attributeCount = 4, \ |
| 713 | .clusterSize = 42, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 714 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(PRE_ATTRIBUTE_CHANGED_FUNCTION), \ |
| 715 | .functions = chipFuncArrayLocalizationConfigurationServer, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 716 | .acceptedCommandList = nullptr ,\ |
| 717 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 718 | },\ |
| 719 | { \ |
| 720 | /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ |
| 721 | .clusterId = 0x0000002C, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 722 | .attributes = ZAP_ATTRIBUTE_INDEX(39), \ |
| 723 | .attributeCount = 5, \ |
| 724 | .clusterSize = 8, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 725 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(PRE_ATTRIBUTE_CHANGED_FUNCTION), \ |
| 726 | .functions = chipFuncArrayTimeFormatLocalizationServer, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 727 | .acceptedCommandList = nullptr ,\ |
| 728 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 729 | },\ |
| 730 | { \ |
| 731 | /* Endpoint: 0, Cluster: Unit Localization (server) */ \ |
| 732 | .clusterId = 0x0000002D, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 733 | .attributes = ZAP_ATTRIBUTE_INDEX(44), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 734 | .attributeCount = 3, \ |
| 735 | .clusterSize = 7, \ |
| 736 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 737 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 738 | .acceptedCommandList = nullptr ,\ |
| 739 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 740 | },\ |
| 741 | { \ |
| 742 | /* Endpoint: 0, Cluster: General Commissioning (server) */ \ |
| 743 | .clusterId = 0x00000030, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 744 | .attributes = ZAP_ATTRIBUTE_INDEX(47), \ |
Tennessee Carmel-Veilleux | 5f8c83e | 2022-04-01 21:03:47 -0400 | [diff] [blame] | 745 | .attributeCount = 7, \ |
Boris Zbarsky | c1e5b2f | 2022-05-05 23:40:49 -0400 | [diff] [blame] | 746 | .clusterSize = 14, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 747 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 748 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 749 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 0 ) ,\ |
| 750 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 4 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 751 | },\ |
| 752 | { \ |
| 753 | /* Endpoint: 0, Cluster: Network Commissioning (server) */ \ |
| 754 | .clusterId = 0x00000031, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 755 | .attributes = ZAP_ATTRIBUTE_INDEX(54), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 756 | .attributeCount = 10, \ |
Boris Zbarsky | 47682fb | 2022-02-24 08:54:28 -0500 | [diff] [blame] | 757 | .clusterSize = 48, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 758 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 759 | .functions = NULL, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 760 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 8 ) ,\ |
| 761 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 15 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 762 | },\ |
| 763 | { \ |
| 764 | /* Endpoint: 0, Cluster: Diagnostic Logs (server) */ \ |
| 765 | .clusterId = 0x00000032, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 766 | .attributes = ZAP_ATTRIBUTE_INDEX(64), \ |
| 767 | .attributeCount = 2, \ |
| 768 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 769 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 770 | .functions = NULL, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 771 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 19 ) ,\ |
| 772 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 21 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 773 | },\ |
| 774 | { \ |
| 775 | /* Endpoint: 0, Cluster: General Diagnostics (server) */ \ |
| 776 | .clusterId = 0x00000033, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 777 | .attributes = ZAP_ATTRIBUTE_INDEX(66), \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 778 | .attributeCount = 11, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 779 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 780 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 781 | .functions = NULL, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 782 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 23 ) ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 783 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 784 | },\ |
| 785 | { \ |
| 786 | /* Endpoint: 0, Cluster: Software Diagnostics (server) */ \ |
| 787 | .clusterId = 0x00000034, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 788 | .attributes = ZAP_ATTRIBUTE_INDEX(77), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 789 | .attributeCount = 6, \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 790 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 791 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 792 | .functions = NULL, \ |
Boris Zbarsky | 583ac0d | 2022-05-28 13:08:33 -0400 | [diff] [blame] | 793 | .acceptedCommandList = nullptr ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 794 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 795 | },\ |
| 796 | { \ |
| 797 | /* Endpoint: 0, Cluster: Thread Network Diagnostics (server) */ \ |
| 798 | .clusterId = 0x00000035, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 799 | .attributes = ZAP_ATTRIBUTE_INDEX(83), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 800 | .attributeCount = 65, \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 801 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 802 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 803 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 804 | .acceptedCommandList = nullptr ,\ |
| 805 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 806 | },\ |
| 807 | { \ |
| 808 | /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server) */ \ |
| 809 | .clusterId = 0x00000036, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 810 | .attributes = ZAP_ATTRIBUTE_INDEX(148), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 811 | .attributeCount = 15, \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 812 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 813 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 814 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 815 | .acceptedCommandList = nullptr ,\ |
| 816 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 817 | },\ |
| 818 | { \ |
| 819 | /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */ \ |
| 820 | .clusterId = 0x00000037, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 821 | .attributes = ZAP_ATTRIBUTE_INDEX(163), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 822 | .attributeCount = 11, \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 823 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 824 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 825 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 826 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 26 ) ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 827 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 828 | },\ |
| 829 | { \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 830 | /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */ \ |
| 831 | .clusterId = 0x0000003C, \ |
| 832 | .attributes = ZAP_ATTRIBUTE_INDEX(174), \ |
| 833 | .attributeCount = 5, \ |
| 834 | .clusterSize = 6, \ |
| 835 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 836 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 837 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 28 ) ,\ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 838 | .generatedCommandList = nullptr ,\ |
| 839 | },\ |
| 840 | { \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 841 | /* Endpoint: 0, Cluster: Operational Credentials (server) */ \ |
| 842 | .clusterId = 0x0000003E, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 843 | .attributes = ZAP_ATTRIBUTE_INDEX(179), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 844 | .attributeCount = 8, \ |
| 845 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 846 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 847 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 848 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 32 ) ,\ |
| 849 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 41 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 850 | },\ |
| 851 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 852 | /* Endpoint: 0, Cluster: Group Key Management (server) */ \ |
| 853 | .clusterId = 0x0000003F, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 854 | .attributes = ZAP_ATTRIBUTE_INDEX(187), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 855 | .attributeCount = 6, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 856 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 857 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 858 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 859 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 46 ) ,\ |
| 860 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 51 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 861 | },\ |
| 862 | { \ |
| 863 | /* Endpoint: 0, Cluster: User Label (server) */ \ |
| 864 | .clusterId = 0x00000041, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 865 | .attributes = ZAP_ATTRIBUTE_INDEX(193), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 866 | .attributeCount = 3, \ |
| 867 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 868 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 869 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 870 | .acceptedCommandList = nullptr ,\ |
| 871 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 872 | },\ |
| 873 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 874 | /* Endpoint: 1, Cluster: Identify (server) */ \ |
| 875 | .clusterId = 0x00000003, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 876 | .attributes = ZAP_ATTRIBUTE_INDEX(196), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 877 | .attributeCount = 4, \ |
| 878 | .clusterSize = 9, \ |
| 879 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(ATTRIBUTE_CHANGED_FUNCTION), \ |
| 880 | .functions = chipFuncArrayIdentifyServer, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 881 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 54 ) ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 882 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 883 | },\ |
| 884 | { \ |
| 885 | /* Endpoint: 1, Cluster: Descriptor (server) */ \ |
| 886 | .clusterId = 0x0000001D, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 887 | .attributes = ZAP_ATTRIBUTE_INDEX(200), \ |
| 888 | .attributeCount = 6, \ |
| 889 | .clusterSize = 6, \ |
| 890 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 891 | .functions = NULL, \ |
| 892 | .acceptedCommandList = nullptr ,\ |
| 893 | .generatedCommandList = nullptr ,\ |
| 894 | },\ |
| 895 | { \ |
| 896 | /* Endpoint: 1, Cluster: Binding (client) */ \ |
| 897 | .clusterId = 0x0000001E, \ |
| 898 | .attributes = ZAP_ATTRIBUTE_INDEX(206), \ |
| 899 | .attributeCount = 0, \ |
| 900 | .clusterSize = 0, \ |
| 901 | .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| 902 | .functions = NULL, \ |
| 903 | .acceptedCommandList = nullptr ,\ |
| 904 | .generatedCommandList = nullptr ,\ |
| 905 | },\ |
| 906 | { \ |
Boris Zbarsky | 117dd16 | 2022-08-08 16:32:56 -0400 | [diff] [blame] | 907 | /* Endpoint: 1, Cluster: Actions (server) */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 908 | .clusterId = 0x00000025, \ |
| 909 | .attributes = ZAP_ATTRIBUTE_INDEX(206), \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 910 | .attributeCount = 5, \ |
| 911 | .clusterSize = 520, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 912 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 913 | .functions = NULL, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 914 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 57 ) ,\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 915 | .generatedCommandList = nullptr ,\ |
| 916 | },\ |
| 917 | { \ |
| 918 | /* Endpoint: 2, Cluster: On/Off (server) */ \ |
| 919 | .clusterId = 0x00000006, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 920 | .attributes = ZAP_ATTRIBUTE_INDEX(211), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 921 | .attributeCount = 3, \ |
| 922 | .clusterSize = 7, \ |
| 923 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| 924 | .functions = chipFuncArrayOnOffServer, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 925 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 59 ) ,\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 926 | .generatedCommandList = nullptr ,\ |
| 927 | },\ |
| 928 | { \ |
| 929 | /* Endpoint: 2, Cluster: Level Control (server) */ \ |
| 930 | .clusterId = 0x00000008, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 931 | .attributes = ZAP_ATTRIBUTE_INDEX(214), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 932 | .attributeCount = 16, \ |
| 933 | .clusterSize = 27, \ |
| 934 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| 935 | .functions = chipFuncArrayLevelControlServer, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 936 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 63 ) ,\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 937 | .generatedCommandList = nullptr ,\ |
| 938 | },\ |
| 939 | { \ |
| 940 | /* Endpoint: 2, Cluster: Descriptor (server) */ \ |
| 941 | .clusterId = 0x0000001D, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 942 | .attributes = ZAP_ATTRIBUTE_INDEX(230), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 943 | .attributeCount = 6, \ |
| 944 | .clusterSize = 4, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 945 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 946 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 947 | .acceptedCommandList = nullptr ,\ |
| 948 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 949 | },\ |
| 950 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 951 | /* Endpoint: 2, Cluster: Switch (server) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 952 | .clusterId = 0x0000003B, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 953 | .attributes = ZAP_ATTRIBUTE_INDEX(236), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 954 | .attributeCount = 5, \ |
| 955 | .clusterSize = 9, \ |
| 956 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 957 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 958 | .acceptedCommandList = nullptr ,\ |
| 959 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 960 | },\ |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 961 | { \ |
| 962 | /* Endpoint: 2, Cluster: Temperature Measurement (server) */ \ |
| 963 | .clusterId = 0x00000402, \ |
| 964 | .attributes = ZAP_ATTRIBUTE_INDEX(241), \ |
| 965 | .attributeCount = 5, \ |
| 966 | .clusterSize = 0, \ |
| 967 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 968 | .functions = NULL, \ |
| 969 | .acceptedCommandList = nullptr ,\ |
| 970 | .generatedCommandList = nullptr ,\ |
| 971 | },\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 972 | } |
| 973 | |
| 974 | // clang-format on |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 975 | |
Boris Zbarsky | 90cf66a | 2022-01-28 16:14:30 -0500 | [diff] [blame] | 976 | #define ZAP_CLUSTER_INDEX(index) (&generatedClusters[index]) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 977 | |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 978 | #define ZAP_FIXED_ENDPOINT_DATA_VERSION_COUNT 26 |
Boris Zbarsky | 019ff59 | 2022-01-28 23:42:42 -0500 | [diff] [blame] | 979 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 980 | // This is an array of EmberAfEndpointType structures. |
| 981 | #define GENERATED_ENDPOINT_TYPES \ |
| 982 | { \ |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 983 | { ZAP_CLUSTER_INDEX(0), 19, 230 }, { ZAP_CLUSTER_INDEX(19), 4, 535 }, { ZAP_CLUSTER_INDEX(23), 5, 47 }, \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 984 | } |
| 985 | |
| 986 | // Largest attribute size is needed for various buffers |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 987 | #define ATTRIBUTE_LARGEST (515) |
Boris Zbarsky | e94c9a9 | 2022-02-05 02:49:57 -0500 | [diff] [blame] | 988 | |
| 989 | static_assert(ATTRIBUTE_LARGEST <= CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE, "ATTRIBUTE_LARGEST larger than expected"); |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 990 | |
| 991 | // Total size of singleton attributes |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 992 | #define ATTRIBUTE_SINGLETONS_SIZE (37) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 993 | |
| 994 | // Total size of attribute storage |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 995 | #define ATTRIBUTE_MAX_SIZE (812) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 996 | |
| 997 | // Number of fixed endpoints |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 998 | #define FIXED_ENDPOINT_COUNT (3) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 999 | |
| 1000 | // Array of endpoints that are supported, the data inside |
| 1001 | // the array is the endpoint number. |
| 1002 | #define FIXED_ENDPOINT_ARRAY \ |
| 1003 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1004 | 0x0000, 0x0001, 0x0002 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1005 | } |
| 1006 | |
| 1007 | // Array of profile ids |
| 1008 | #define FIXED_PROFILE_IDS \ |
| 1009 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1010 | 0x0103, 0x0103, 0x0103 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1011 | } |
| 1012 | |
Jerry Johns | 40b08b9 | 2022-04-06 18:31:35 -0700 | [diff] [blame] | 1013 | // Array of device types |
| 1014 | #define FIXED_DEVICE_TYPES \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1015 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1016 | { 0x0016, 1 }, { 0x000E, 1 }, { 0x0101, 1 } \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1017 | } |
| 1018 | |
Jerry Johns | 40b08b9 | 2022-04-06 18:31:35 -0700 | [diff] [blame] | 1019 | // Array of device type offsets |
| 1020 | #define FIXED_DEVICE_TYPE_OFFSETS \ |
| 1021 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1022 | 0, 1, 2 \ |
Jerry Johns | 40b08b9 | 2022-04-06 18:31:35 -0700 | [diff] [blame] | 1023 | } |
| 1024 | |
| 1025 | // Array of device type lengths |
| 1026 | #define FIXED_DEVICE_TYPE_LENGTHS \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1027 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1028 | 1, 1, 1 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1029 | } |
| 1030 | |
| 1031 | // Array of endpoint types supported on each endpoint |
| 1032 | #define FIXED_ENDPOINT_TYPES \ |
| 1033 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1034 | 0, 1, 2 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1035 | } |
| 1036 | |
| 1037 | // Array of networks supported on each endpoint |
| 1038 | #define FIXED_NETWORKS \ |
| 1039 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1040 | 0, 0, 0 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1041 | } |