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 | \ |
| 42 | /* Endpoint: 1, Cluster: Bridged Actions (server), big-endian */ \ |
| 43 | \ |
| 44 | /* 14 - setup url, */ \ |
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 | \ |
| 62 | /* Endpoint: 1, Cluster: Bridged Actions (server), little-endian */ \ |
| 63 | \ |
| 64 | /* 14 - setup url, */ \ |
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 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [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 | 42f0433 | 2022-01-24 12:37:16 -0500 | [diff] [blame] | 111 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| 112 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| 113 | { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| 114 | { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
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), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [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), \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 351 | ZAP_EMPTY_DEFAULT() }, /* ChannelMask */ \ |
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 | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 369 | ZAP_EMPTY_DEFAULT() }, /* Rssi */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 370 | { 0x00000005, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* BeaconLostCount */ \ |
| 371 | { 0x00000006, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* BeaconRxCount */ \ |
| 372 | { 0x00000007, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 373 | ZAP_EMPTY_DEFAULT() }, /* PacketMulticastRxCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 374 | { 0x00000008, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 375 | ZAP_EMPTY_DEFAULT() }, /* PacketMulticastTxCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 376 | { 0x00000009, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 377 | ZAP_EMPTY_DEFAULT() }, /* PacketUnicastRxCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 378 | { 0x0000000A, ZAP_TYPE(INT32U), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 379 | ZAP_EMPTY_DEFAULT() }, /* PacketUnicastTxCount */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 380 | { 0x0000000B, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CurrentMaxRate */ \ |
| 381 | { 0x0000000C, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* OverrunCount */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 382 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(3) }, /* FeatureMap */ \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 383 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | 74f8da9 | 2021-05-10 08:18:08 -0700 | [diff] [blame] | 384 | \ |
Yufeng Wang | 805a4b3 | 2021-05-17 20:27:36 -0700 | [diff] [blame] | 385 | /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 386 | { 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] | 387 | ZAP_EMPTY_DEFAULT() }, /* PHYRate */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 388 | { 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] | 389 | ZAP_EMPTY_DEFAULT() }, /* FullDuplex */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 390 | { 0x00000002, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PacketRxCount */ \ |
| 391 | { 0x00000003, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* PacketTxCount */ \ |
| 392 | { 0x00000004, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* TxErrCount */ \ |
| 393 | { 0x00000005, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* CollisionCount */ \ |
| 394 | { 0x00000006, ZAP_TYPE(INT64U), 8, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* OverrunCount */ \ |
| 395 | { 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] | 396 | ZAP_EMPTY_DEFAULT() }, /* CarrierDetect */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 397 | { 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] | 398 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(3) }, /* FeatureMap */ \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 399 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | 805a4b3 | 2021-05-17 20:27:36 -0700 | [diff] [blame] | 400 | \ |
Pankaj Garg | 5eea9f2 | 2021-08-03 17:58:16 -0700 | [diff] [blame] | 401 | /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 402 | { 0x00000000, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* WindowStatus */ \ |
Boris Zbarsky | 17c8da6 | 2022-07-31 01:47:37 -0400 | [diff] [blame^] | 403 | { 0x00000001, ZAP_TYPE(FABRIC_IDX), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 404 | ZAP_EMPTY_DEFAULT() }, /* AdminFabricIndex */ \ |
| 405 | { 0x00000002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 406 | ZAP_EMPTY_DEFAULT() }, /* AdminVendorId */ \ |
| 407 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 408 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Pankaj Garg | 5eea9f2 | 2021-08-03 17:58:16 -0700 | [diff] [blame] | 409 | \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 410 | /* Endpoint: 0, Cluster: Operational Credentials (server) */ \ |
Yufeng Wang | fd815cd | 2022-01-20 10:26:41 -0800 | [diff] [blame] | 411 | { 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] | 412 | { 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] | 413 | { 0x00000002, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* SupportedFabrics */ \ |
| 414 | { 0x00000003, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Boris Zbarsky | c1e5b2f | 2022-05-05 23:40:49 -0400 | [diff] [blame] | 415 | ZAP_EMPTY_DEFAULT() }, /* CommissionedFabrics */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 416 | { 0x00000004, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
Boris Zbarsky | 2475f10 | 2021-10-29 13:01:22 -0400 | [diff] [blame] | 417 | ZAP_EMPTY_DEFAULT() }, /* TrustedRootCertificates */ \ |
Vivien Nicolas | f93e6cb | 2022-07-29 13:23:24 +0200 | [diff] [blame] | 418 | { 0x00000005, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 419 | ZAP_EMPTY_DEFAULT() }, /* CurrentFabricIndex */ \ |
| 420 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 421 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 422 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 423 | /* Endpoint: 0, Cluster: Group Key Management (server) */ \ |
| 424 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
| 425 | ZAP_EMPTY_DEFAULT() }, /* GroupKeyMap */ \ |
| 426 | { 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] | 427 | { 0x00000002, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 428 | ZAP_EMPTY_DEFAULT() }, /* MaxGroupsPerFabric */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 429 | { 0x00000003, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 430 | ZAP_EMPTY_DEFAULT() }, /* MaxGroupKeysPerFabric */ \ |
| 431 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 432 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | ed19251 | 2021-12-10 21:02:15 -0800 | [diff] [blame] | 433 | \ |
Yufeng Wang | c9bc5ae | 2021-12-14 11:04:33 -0800 | [diff] [blame] | 434 | /* Endpoint: 0, Cluster: User Label (server) */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 435 | { 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] | 436 | ZAP_EMPTY_DEFAULT() }, /* label list */ \ |
| 437 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 438 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
Yufeng Wang | c9bc5ae | 2021-12-14 11:04:33 -0800 | [diff] [blame] | 439 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 440 | /* Endpoint: 1, Cluster: Identify (server) */ \ |
| 441 | { 0x00000000, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), ZAP_SIMPLE_DEFAULT(0x0) }, /* identify time */ \ |
| 442 | { 0x00000001, ZAP_TYPE(ENUM8), 1, 0, ZAP_SIMPLE_DEFAULT(0x0) }, /* identify type */ \ |
| 443 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 444 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(2) }, /* ClusterRevision */ \ |
| 445 | \ |
| 446 | /* Endpoint: 1, Cluster: Descriptor (server) */ \ |
| 447 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| 448 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| 449 | { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| 450 | { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
| 451 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 452 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| 453 | \ |
| 454 | /* Endpoint: 1, Cluster: Bridged Actions (server) */ \ |
| 455 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* action list */ \ |
| 456 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* endpoint list */ \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 457 | { 0x00000002, ZAP_TYPE(LONG_CHAR_STRING), 514, 0, ZAP_LONG_DEFAULTS_INDEX(14) }, /* setup url */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 458 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 459 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
| 460 | \ |
| 461 | /* Endpoint: 2, Cluster: On/Off (server) */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 462 | { 0x00000000, ZAP_TYPE(BOOLEAN), 1, 0, ZAP_SIMPLE_DEFAULT(0x00) }, /* OnOff */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 463 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 464 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(4) }, /* ClusterRevision */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 465 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 466 | /* Endpoint: 2, Cluster: Level Control (server) */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 467 | { 0x00000000, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(TOKENIZE), ZAP_SIMPLE_DEFAULT(0x00) }, /* current level */ \ |
| 468 | { 0x00000001, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* remaining time */ \ |
jmartinez-silabs | 3948b40 | 2022-06-08 16:59:41 -0400 | [diff] [blame] | 469 | { 0x00000002, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0x01) }, /* min level */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 470 | { 0x00000003, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(0xFE) }, /* max level */ \ |
| 471 | { 0x00000004, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* current frequency */ \ |
| 472 | { 0x00000005, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* min frequency */ \ |
| 473 | { 0x00000006, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0000) }, /* max frequency */ \ |
| 474 | { 0x0000000F, ZAP_TYPE(BITMAP8), 1, ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
Andrei Litvin | b263270 | 2022-07-21 17:03:24 -0400 | [diff] [blame] | 475 | ZAP_MIN_MAX_DEFAULTS_INDEX(2) }, /* options */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 476 | { 0x00000010, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE), \ |
Boris Zbarsky | 2278e6b | 2021-11-30 01:40:08 -0500 | [diff] [blame] | 477 | ZAP_SIMPLE_DEFAULT(0x0000) }, /* on off transition time */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 478 | { 0x00000011, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | 2278e6b | 2021-11-30 01:40:08 -0500 | [diff] [blame] | 479 | ZAP_SIMPLE_DEFAULT(0xFE) }, /* on level */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 480 | { 0x00000012, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | 2278e6b | 2021-11-30 01:40:08 -0500 | [diff] [blame] | 481 | ZAP_EMPTY_DEFAULT() }, /* on transition time */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 482 | { 0x00000013, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
Boris Zbarsky | 2278e6b | 2021-11-30 01:40:08 -0500 | [diff] [blame] | 483 | ZAP_EMPTY_DEFAULT() }, /* off transition time */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 484 | { 0x00000014, ZAP_TYPE(INT8U), 1, ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
jmartinez-silabs | 1a89a84 | 2022-01-14 15:09:07 -0500 | [diff] [blame] | 485 | ZAP_EMPTY_DEFAULT() }, /* default move rate */ \ |
Boris Zbarsky | aa00176 | 2022-01-19 13:51:54 -0500 | [diff] [blame] | 486 | { 0x00004000, ZAP_TYPE(INT8U), 1, \ |
jmartinez-silabs | 1a89a84 | 2022-01-14 15:09:07 -0500 | [diff] [blame] | 487 | ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 488 | ZAP_SIMPLE_DEFAULT(255) }, /* start up current level */ \ |
| 489 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(3) }, /* FeatureMap */ \ |
| 490 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(5) }, /* ClusterRevision */ \ |
Vivien Nicolas | b80af57 | 2021-04-27 21:18:12 +0200 | [diff] [blame] | 491 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 492 | /* Endpoint: 2, Cluster: Descriptor (server) */ \ |
Boris Zbarsky | 42f0433 | 2022-01-24 12:37:16 -0500 | [diff] [blame] | 493 | { 0x00000000, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* device list */ \ |
| 494 | { 0x00000001, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* server list */ \ |
| 495 | { 0x00000002, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* client list */ \ |
| 496 | { 0x00000003, ZAP_TYPE(ARRAY), 0, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* parts list */ \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 497 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
Boris Zbarsky | f36569f | 2022-06-22 12:48:26 -0400 | [diff] [blame] | 498 | { 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] | 499 | \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 500 | /* Endpoint: 2, Cluster: Switch (server) */ \ |
tehampson | 6b82aee | 2022-05-19 08:17:33 -0400 | [diff] [blame] | 501 | { 0x00000000, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(2) }, /* number of positions */ \ |
| 502 | { 0x00000001, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(1) }, /* current position */ \ |
| 503 | { 0x00000002, ZAP_TYPE(INT8U), 1, 0, ZAP_SIMPLE_DEFAULT(2) }, /* multi press max */ \ |
| 504 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, 0, ZAP_SIMPLE_DEFAULT(0) }, /* FeatureMap */ \ |
| 505 | { 0x0000FFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(1) }, /* ClusterRevision */ \ |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 506 | \ |
| 507 | /* Endpoint: 2, Cluster: Temperature Measurement (server) */ \ |
| 508 | { 0x00000000, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 509 | ZAP_EMPTY_DEFAULT() }, /* MeasuredValue */ \ |
| 510 | { 0x00000001, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 511 | ZAP_EMPTY_DEFAULT() }, /* MinMeasuredValue */ \ |
| 512 | { 0x00000002, ZAP_TYPE(INT16S), 2, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(NULLABLE), \ |
| 513 | ZAP_EMPTY_DEFAULT() }, /* MaxMeasuredValue */ \ |
| 514 | { 0x0000FFFC, ZAP_TYPE(BITMAP32), 4, ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE), ZAP_EMPTY_DEFAULT() }, /* FeatureMap */ \ |
| 515 | { 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] | 516 | } |
| 517 | |
| 518 | // This is an array of EmberAfCluster structures. |
Boris Zbarsky | 90cf66a | 2022-01-28 16:14:30 -0500 | [diff] [blame] | 519 | #define ZAP_ATTRIBUTE_INDEX(index) (&generatedAttributes[index]) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 520 | |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 521 | #define ZAP_GENERATED_COMMANDS_INDEX(index) ((chip::CommandId *) (&generatedCommands[index])) |
| 522 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 523 | // Cluster function static arrays |
| 524 | #define GENERATED_FUNCTION_ARRAYS \ |
jrhees-cae | 14edc10 | 2021-06-02 23:16:24 -0600 | [diff] [blame] | 525 | const EmberAfGenericClusterFunction chipFuncArrayBasicServer[] = { \ |
| 526 | (EmberAfGenericClusterFunction) emberAfBasicClusterServerInitCallback, \ |
| 527 | }; \ |
Yufeng Wang | 6e1a741 | 2022-01-21 08:31:03 -0800 | [diff] [blame] | 528 | const EmberAfGenericClusterFunction chipFuncArrayLocalizationConfigurationServer[] = { \ |
| 529 | (EmberAfGenericClusterFunction) emberAfLocalizationConfigurationClusterServerInitCallback, \ |
| 530 | (EmberAfGenericClusterFunction) MatterLocalizationConfigurationClusterServerPreAttributeChangedCallback, \ |
| 531 | }; \ |
Yufeng Wang | b6e08a8 | 2022-01-20 21:55:14 -0800 | [diff] [blame] | 532 | const EmberAfGenericClusterFunction chipFuncArrayTimeFormatLocalizationServer[] = { \ |
| 533 | (EmberAfGenericClusterFunction) emberAfTimeFormatLocalizationClusterServerInitCallback, \ |
| 534 | (EmberAfGenericClusterFunction) MatterTimeFormatLocalizationClusterServerPreAttributeChangedCallback, \ |
| 535 | }; \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 536 | const EmberAfGenericClusterFunction chipFuncArrayIdentifyServer[] = { \ |
| 537 | (EmberAfGenericClusterFunction) emberAfIdentifyClusterServerInitCallback, \ |
| 538 | (EmberAfGenericClusterFunction) MatterIdentifyClusterServerAttributeChangedCallback, \ |
| 539 | }; \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 540 | const EmberAfGenericClusterFunction chipFuncArrayOnOffServer[] = { \ |
| 541 | (EmberAfGenericClusterFunction) emberAfOnOffClusterServerInitCallback, \ |
| 542 | }; \ |
| 543 | const EmberAfGenericClusterFunction chipFuncArrayLevelControlServer[] = { \ |
| 544 | (EmberAfGenericClusterFunction) emberAfLevelControlClusterServerInitCallback, \ |
| 545 | }; |
| 546 | |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 547 | // clang-format off |
| 548 | #define GENERATED_COMMANDS { \ |
| 549 | /* Endpoint: 0, Cluster: General Commissioning (server) */\ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 550 | /* AcceptedCommandList (index=0) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 551 | 0x00000000 /* ArmFailSafe */, \ |
| 552 | 0x00000002 /* SetRegulatoryConfig */, \ |
| 553 | 0x00000004 /* CommissioningComplete */, \ |
| 554 | chip::kInvalidCommandId /* end of list */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 555 | /* GeneratedCommandList (index=4)*/ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 556 | 0x00000001 /* ArmFailSafeResponse */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 557 | 0x00000003 /* SetRegulatoryConfigResponse */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 558 | 0x00000005 /* CommissioningCompleteResponse */, \ |
| 559 | chip::kInvalidCommandId /* end of list */, \ |
| 560 | /* Endpoint: 0, Cluster: Network Commissioning (server) */\ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 561 | /* AcceptedCommandList (index=8) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 562 | 0x00000000 /* ScanNetworks */, \ |
| 563 | 0x00000002 /* AddOrUpdateWiFiNetwork */, \ |
| 564 | 0x00000003 /* AddOrUpdateThreadNetwork */, \ |
| 565 | 0x00000004 /* RemoveNetwork */, \ |
| 566 | 0x00000006 /* ConnectNetwork */, \ |
| 567 | 0x00000008 /* ReorderNetwork */, \ |
| 568 | chip::kInvalidCommandId /* end of list */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 569 | /* GeneratedCommandList (index=15)*/ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 570 | 0x00000001 /* ScanNetworksResponse */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 571 | 0x00000005 /* NetworkConfigResponse */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 572 | 0x00000007 /* ConnectNetworkResponse */, \ |
| 573 | chip::kInvalidCommandId /* end of list */, \ |
| 574 | /* Endpoint: 0, Cluster: Diagnostic Logs (server) */\ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 575 | /* AcceptedCommandList (index=19) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 576 | 0x00000000 /* RetrieveLogsRequest */, \ |
| 577 | chip::kInvalidCommandId /* end of list */, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 578 | /* GeneratedCommandList (index=21)*/ \ |
| 579 | 0x00000001 /* RetrieveLogsResponse */, \ |
| 580 | chip::kInvalidCommandId /* end of list */, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 581 | /* Endpoint: 0, Cluster: General Diagnostics (server) */\ |
Boris Zbarsky | 583ac0d | 2022-05-28 13:08:33 -0400 | [diff] [blame] | 582 | /* AcceptedCommandList (index=23) */ \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 583 | 0x00000000 /* TestEventTrigger */, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 584 | 0x00000000 /* TestEventTrigger */, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 585 | chip::kInvalidCommandId /* end of list */, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 586 | /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 587 | /* AcceptedCommandList (index=26) */ \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 588 | 0x00000000 /* ResetCounts */, \ |
| 589 | chip::kInvalidCommandId /* end of list */, \ |
| 590 | /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */\ |
| 591 | /* AcceptedCommandList (index=28) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 592 | 0x00000000 /* OpenCommissioningWindow */, \ |
| 593 | 0x00000001 /* OpenBasicCommissioningWindow */, \ |
| 594 | 0x00000002 /* RevokeCommissioning */, \ |
| 595 | chip::kInvalidCommandId /* end of list */, \ |
| 596 | /* Endpoint: 0, Cluster: Operational Credentials (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 597 | /* AcceptedCommandList (index=32) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 598 | 0x00000000 /* AttestationRequest */, \ |
| 599 | 0x00000002 /* CertificateChainRequest */, \ |
Boris Zbarsky | 570a1ce | 2022-02-04 11:38:38 -0500 | [diff] [blame] | 600 | 0x00000004 /* CSRRequest */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 601 | 0x00000006 /* AddNOC */, \ |
| 602 | 0x00000007 /* UpdateNOC */, \ |
| 603 | 0x00000009 /* UpdateFabricLabel */, \ |
| 604 | 0x0000000A /* RemoveFabric */, \ |
| 605 | 0x0000000B /* AddTrustedRootCertificate */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 606 | chip::kInvalidCommandId /* end of list */, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 607 | /* GeneratedCommandList (index=41)*/ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 608 | 0x00000001 /* AttestationResponse */, \ |
| 609 | 0x00000003 /* CertificateChainResponse */, \ |
Boris Zbarsky | 570a1ce | 2022-02-04 11:38:38 -0500 | [diff] [blame] | 610 | 0x00000005 /* CSRResponse */, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 611 | 0x00000008 /* NOCResponse */, \ |
| 612 | chip::kInvalidCommandId /* end of list */, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 613 | /* Endpoint: 0, Cluster: Group Key Management (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 614 | /* AcceptedCommandList (index=46) */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 615 | 0x00000000 /* KeySetWrite */, \ |
| 616 | 0x00000001 /* KeySetRead */, \ |
| 617 | 0x00000003 /* KeySetRemove */, \ |
| 618 | 0x00000004 /* KeySetReadAllIndices */, \ |
| 619 | chip::kInvalidCommandId /* end of list */, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 620 | /* GeneratedCommandList (index=51)*/ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 621 | 0x00000002 /* KeySetReadResponse */, \ |
| 622 | 0x00000005 /* KeySetReadAllIndicesResponse */, \ |
| 623 | chip::kInvalidCommandId /* end of list */, \ |
| 624 | /* Endpoint: 1, Cluster: Identify (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 625 | /* AcceptedCommandList (index=54) */ \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 626 | 0x00000000 /* Identify */, \ |
| 627 | 0x00000040 /* TriggerEffect */, \ |
| 628 | chip::kInvalidCommandId /* end of list */, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 629 | /* Endpoint: 1, Cluster: Bridged Actions (server) */\ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 630 | /* AcceptedCommandList (index=57) */ \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 631 | 0x00000000 /* InstantAction */, \ |
| 632 | chip::kInvalidCommandId /* end of list */, \ |
| 633 | /* Endpoint: 2, Cluster: On/Off (server) */\ |
| 634 | /* AcceptedCommandList (index=59) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 635 | 0x00000000 /* Off */, \ |
| 636 | 0x00000001 /* On */, \ |
| 637 | 0x00000002 /* Toggle */, \ |
| 638 | chip::kInvalidCommandId /* end of list */, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 639 | /* Endpoint: 2, Cluster: Level Control (server) */\ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 640 | /* AcceptedCommandList (index=63) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 641 | 0x00000000 /* MoveToLevel */, \ |
| 642 | 0x00000001 /* Move */, \ |
| 643 | 0x00000002 /* Step */, \ |
| 644 | 0x00000003 /* Stop */, \ |
| 645 | 0x00000004 /* MoveToLevelWithOnOff */, \ |
| 646 | 0x00000005 /* MoveWithOnOff */, \ |
| 647 | 0x00000006 /* StepWithOnOff */, \ |
| 648 | 0x00000007 /* StopWithOnOff */, \ |
| 649 | chip::kInvalidCommandId /* end of list */, \ |
| 650 | } |
| 651 | |
| 652 | // clang-format on |
| 653 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 654 | #define ZAP_CLUSTER_MASK(mask) CLUSTER_MASK_##mask |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 655 | #define GENERATED_CLUSTER_COUNT 28 |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 656 | |
| 657 | // clang-format off |
| 658 | #define GENERATED_CLUSTERS { \ |
| 659 | { \ |
| 660 | /* Endpoint: 0, Cluster: Descriptor (server) */ \ |
| 661 | .clusterId = 0x0000001D, \ |
| 662 | .attributes = ZAP_ATTRIBUTE_INDEX(0), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 663 | .attributeCount = 6, \ |
| 664 | .clusterSize = 4, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 665 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 666 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 667 | .acceptedCommandList = nullptr ,\ |
| 668 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 669 | },\ |
| 670 | { \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 671 | /* Endpoint: 0, Cluster: Access Control (client) */ \ |
| 672 | .clusterId = 0x0000001F, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 673 | .attributes = ZAP_ATTRIBUTE_INDEX(6), \ |
Boris Zbarsky | 4267a9b | 2022-02-03 13:11:41 -0500 | [diff] [blame] | 674 | .attributeCount = 0, \ |
| 675 | .clusterSize = 0, \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 676 | .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| 677 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 678 | .acceptedCommandList = nullptr ,\ |
| 679 | .generatedCommandList = nullptr ,\ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 680 | },\ |
| 681 | { \ |
| 682 | /* Endpoint: 0, Cluster: Access Control (server) */ \ |
| 683 | .clusterId = 0x0000001F, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 684 | .attributes = ZAP_ATTRIBUTE_INDEX(6), \ |
| 685 | .attributeCount = 7, \ |
| 686 | .clusterSize = 6, \ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 687 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 688 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 689 | .acceptedCommandList = nullptr ,\ |
| 690 | .generatedCommandList = nullptr ,\ |
Harsha Rajendran | d02ff67 | 2022-02-03 09:26:36 -0500 | [diff] [blame] | 691 | },\ |
| 692 | { \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 693 | /* Endpoint: 0, Cluster: Basic (server) */ \ |
| 694 | .clusterId = 0x00000028, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 695 | .attributes = ZAP_ATTRIBUTE_INDEX(13), \ |
| 696 | .attributeCount = 22, \ |
| 697 | .clusterSize = 41, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 698 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| 699 | .functions = chipFuncArrayBasicServer, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 700 | .acceptedCommandList = nullptr ,\ |
| 701 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 702 | },\ |
| 703 | { \ |
| 704 | /* Endpoint: 0, Cluster: Localization Configuration (server) */ \ |
| 705 | .clusterId = 0x0000002B, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 706 | .attributes = ZAP_ATTRIBUTE_INDEX(35), \ |
| 707 | .attributeCount = 4, \ |
| 708 | .clusterSize = 42, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 709 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(PRE_ATTRIBUTE_CHANGED_FUNCTION), \ |
| 710 | .functions = chipFuncArrayLocalizationConfigurationServer, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 711 | .acceptedCommandList = nullptr ,\ |
| 712 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 713 | },\ |
| 714 | { \ |
| 715 | /* Endpoint: 0, Cluster: Time Format Localization (server) */ \ |
| 716 | .clusterId = 0x0000002C, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 717 | .attributes = ZAP_ATTRIBUTE_INDEX(39), \ |
| 718 | .attributeCount = 5, \ |
| 719 | .clusterSize = 8, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 720 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(PRE_ATTRIBUTE_CHANGED_FUNCTION), \ |
| 721 | .functions = chipFuncArrayTimeFormatLocalizationServer, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 722 | .acceptedCommandList = nullptr ,\ |
| 723 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 724 | },\ |
| 725 | { \ |
| 726 | /* Endpoint: 0, Cluster: Unit Localization (server) */ \ |
| 727 | .clusterId = 0x0000002D, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 728 | .attributes = ZAP_ATTRIBUTE_INDEX(44), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 729 | .attributeCount = 3, \ |
| 730 | .clusterSize = 7, \ |
| 731 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 732 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 733 | .acceptedCommandList = nullptr ,\ |
| 734 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 735 | },\ |
| 736 | { \ |
| 737 | /* Endpoint: 0, Cluster: General Commissioning (server) */ \ |
| 738 | .clusterId = 0x00000030, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 739 | .attributes = ZAP_ATTRIBUTE_INDEX(47), \ |
Tennessee Carmel-Veilleux | 5f8c83e | 2022-04-01 21:03:47 -0400 | [diff] [blame] | 740 | .attributeCount = 7, \ |
Boris Zbarsky | c1e5b2f | 2022-05-05 23:40:49 -0400 | [diff] [blame] | 741 | .clusterSize = 14, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 742 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 743 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 744 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 0 ) ,\ |
| 745 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 4 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 746 | },\ |
| 747 | { \ |
| 748 | /* Endpoint: 0, Cluster: Network Commissioning (server) */ \ |
| 749 | .clusterId = 0x00000031, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 750 | .attributes = ZAP_ATTRIBUTE_INDEX(54), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 751 | .attributeCount = 10, \ |
Boris Zbarsky | 47682fb | 2022-02-24 08:54:28 -0500 | [diff] [blame] | 752 | .clusterSize = 48, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 753 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 754 | .functions = NULL, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 755 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 8 ) ,\ |
| 756 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 15 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 757 | },\ |
| 758 | { \ |
| 759 | /* Endpoint: 0, Cluster: Diagnostic Logs (server) */ \ |
| 760 | .clusterId = 0x00000032, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 761 | .attributes = ZAP_ATTRIBUTE_INDEX(64), \ |
| 762 | .attributeCount = 2, \ |
| 763 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 764 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 765 | .functions = NULL, \ |
Song GUO | 2580fb3 | 2022-05-10 21:48:33 +0800 | [diff] [blame] | 766 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 19 ) ,\ |
| 767 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 21 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 768 | },\ |
| 769 | { \ |
| 770 | /* Endpoint: 0, Cluster: General Diagnostics (server) */ \ |
| 771 | .clusterId = 0x00000033, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 772 | .attributes = ZAP_ATTRIBUTE_INDEX(66), \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 773 | .attributeCount = 11, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 774 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 775 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 776 | .functions = NULL, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 777 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 23 ) ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 778 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 779 | },\ |
| 780 | { \ |
| 781 | /* Endpoint: 0, Cluster: Software Diagnostics (server) */ \ |
| 782 | .clusterId = 0x00000034, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 783 | .attributes = ZAP_ATTRIBUTE_INDEX(77), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 784 | .attributeCount = 6, \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 785 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 786 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 787 | .functions = NULL, \ |
Boris Zbarsky | 583ac0d | 2022-05-28 13:08:33 -0400 | [diff] [blame] | 788 | .acceptedCommandList = nullptr ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 789 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 790 | },\ |
| 791 | { \ |
| 792 | /* Endpoint: 0, Cluster: Thread Network Diagnostics (server) */ \ |
| 793 | .clusterId = 0x00000035, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 794 | .attributes = ZAP_ATTRIBUTE_INDEX(83), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 795 | .attributeCount = 65, \ |
Yufeng Wang | 5865352 | 2022-05-27 22:10:22 -0700 | [diff] [blame] | 796 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 797 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 798 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 799 | .acceptedCommandList = nullptr ,\ |
| 800 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 801 | },\ |
| 802 | { \ |
| 803 | /* Endpoint: 0, Cluster: WiFi Network Diagnostics (server) */ \ |
| 804 | .clusterId = 0x00000036, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 805 | .attributes = ZAP_ATTRIBUTE_INDEX(148), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 806 | .attributeCount = 15, \ |
Yufeng Wang | 28295b6 | 2022-05-04 09:09:55 -0700 | [diff] [blame] | 807 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 808 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 809 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 810 | .acceptedCommandList = nullptr ,\ |
| 811 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 812 | },\ |
| 813 | { \ |
| 814 | /* Endpoint: 0, Cluster: Ethernet Network Diagnostics (server) */ \ |
| 815 | .clusterId = 0x00000037, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 816 | .attributes = ZAP_ATTRIBUTE_INDEX(163), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 817 | .attributeCount = 11, \ |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 818 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 819 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 820 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 821 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 26 ) ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 822 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 823 | },\ |
| 824 | { \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 825 | /* Endpoint: 0, Cluster: AdministratorCommissioning (server) */ \ |
| 826 | .clusterId = 0x0000003C, \ |
| 827 | .attributes = ZAP_ATTRIBUTE_INDEX(174), \ |
| 828 | .attributeCount = 5, \ |
| 829 | .clusterSize = 6, \ |
| 830 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 831 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 832 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 28 ) ,\ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 833 | .generatedCommandList = nullptr ,\ |
| 834 | },\ |
| 835 | { \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 836 | /* Endpoint: 0, Cluster: Operational Credentials (server) */ \ |
| 837 | .clusterId = 0x0000003E, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 838 | .attributes = ZAP_ATTRIBUTE_INDEX(179), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 839 | .attributeCount = 8, \ |
| 840 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 841 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 842 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 843 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 32 ) ,\ |
| 844 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 41 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 845 | },\ |
| 846 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 847 | /* Endpoint: 0, Cluster: Group Key Management (server) */ \ |
| 848 | .clusterId = 0x0000003F, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 849 | .attributes = ZAP_ATTRIBUTE_INDEX(187), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 850 | .attributeCount = 6, \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 851 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 852 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 853 | .functions = NULL, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 854 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 46 ) ,\ |
| 855 | .generatedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 51 ) ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 856 | },\ |
| 857 | { \ |
| 858 | /* Endpoint: 0, Cluster: User Label (server) */ \ |
| 859 | .clusterId = 0x00000041, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 860 | .attributes = ZAP_ATTRIBUTE_INDEX(193), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 861 | .attributeCount = 3, \ |
| 862 | .clusterSize = 6, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 863 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 864 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 865 | .acceptedCommandList = nullptr ,\ |
| 866 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 867 | },\ |
| 868 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 869 | /* Endpoint: 1, Cluster: Identify (server) */ \ |
| 870 | .clusterId = 0x00000003, \ |
tehampson | 9179d31 | 2022-06-01 15:43:14 -0400 | [diff] [blame] | 871 | .attributes = ZAP_ATTRIBUTE_INDEX(196), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 872 | .attributeCount = 4, \ |
| 873 | .clusterSize = 9, \ |
| 874 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION) | ZAP_CLUSTER_MASK(ATTRIBUTE_CHANGED_FUNCTION), \ |
| 875 | .functions = chipFuncArrayIdentifyServer, \ |
Shubham Patil | f126ac2 | 2022-06-22 23:47:00 +0530 | [diff] [blame] | 876 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 54 ) ,\ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 877 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 878 | },\ |
| 879 | { \ |
| 880 | /* Endpoint: 1, Cluster: Descriptor (server) */ \ |
| 881 | .clusterId = 0x0000001D, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 882 | .attributes = ZAP_ATTRIBUTE_INDEX(200), \ |
| 883 | .attributeCount = 6, \ |
| 884 | .clusterSize = 6, \ |
| 885 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 886 | .functions = NULL, \ |
| 887 | .acceptedCommandList = nullptr ,\ |
| 888 | .generatedCommandList = nullptr ,\ |
| 889 | },\ |
| 890 | { \ |
| 891 | /* Endpoint: 1, Cluster: Binding (client) */ \ |
| 892 | .clusterId = 0x0000001E, \ |
| 893 | .attributes = ZAP_ATTRIBUTE_INDEX(206), \ |
| 894 | .attributeCount = 0, \ |
| 895 | .clusterSize = 0, \ |
| 896 | .mask = ZAP_CLUSTER_MASK(CLIENT), \ |
| 897 | .functions = NULL, \ |
| 898 | .acceptedCommandList = nullptr ,\ |
| 899 | .generatedCommandList = nullptr ,\ |
| 900 | },\ |
| 901 | { \ |
| 902 | /* Endpoint: 1, Cluster: Bridged Actions (server) */ \ |
| 903 | .clusterId = 0x00000025, \ |
| 904 | .attributes = ZAP_ATTRIBUTE_INDEX(206), \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 905 | .attributeCount = 5, \ |
| 906 | .clusterSize = 520, \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 907 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 908 | .functions = NULL, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 909 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 57 ) ,\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 910 | .generatedCommandList = nullptr ,\ |
| 911 | },\ |
| 912 | { \ |
| 913 | /* Endpoint: 2, Cluster: On/Off (server) */ \ |
| 914 | .clusterId = 0x00000006, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 915 | .attributes = ZAP_ATTRIBUTE_INDEX(211), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 916 | .attributeCount = 3, \ |
| 917 | .clusterSize = 7, \ |
| 918 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| 919 | .functions = chipFuncArrayOnOffServer, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 920 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 59 ) ,\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 921 | .generatedCommandList = nullptr ,\ |
| 922 | },\ |
| 923 | { \ |
| 924 | /* Endpoint: 2, Cluster: Level Control (server) */ \ |
| 925 | .clusterId = 0x00000008, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 926 | .attributes = ZAP_ATTRIBUTE_INDEX(214), \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 927 | .attributeCount = 16, \ |
| 928 | .clusterSize = 27, \ |
| 929 | .mask = ZAP_CLUSTER_MASK(SERVER) | ZAP_CLUSTER_MASK(INIT_FUNCTION), \ |
| 930 | .functions = chipFuncArrayLevelControlServer, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 931 | .acceptedCommandList = ZAP_GENERATED_COMMANDS_INDEX( 63 ) ,\ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 932 | .generatedCommandList = nullptr ,\ |
| 933 | },\ |
| 934 | { \ |
| 935 | /* Endpoint: 2, Cluster: Descriptor (server) */ \ |
| 936 | .clusterId = 0x0000001D, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 937 | .attributes = ZAP_ATTRIBUTE_INDEX(230), \ |
tehampson | 2db812e | 2022-05-23 15:24:29 -0400 | [diff] [blame] | 938 | .attributeCount = 6, \ |
| 939 | .clusterSize = 4, \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 940 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 941 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 942 | .acceptedCommandList = nullptr ,\ |
| 943 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 944 | },\ |
| 945 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 946 | /* Endpoint: 2, Cluster: Switch (server) */ \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 947 | .clusterId = 0x0000003B, \ |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 948 | .attributes = ZAP_ATTRIBUTE_INDEX(236), \ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 949 | .attributeCount = 5, \ |
| 950 | .clusterSize = 9, \ |
| 951 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 952 | .functions = NULL, \ |
Boris Zbarsky | 821ca4a | 2022-03-21 09:05:12 -0400 | [diff] [blame] | 953 | .acceptedCommandList = nullptr ,\ |
| 954 | .generatedCommandList = nullptr ,\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 955 | },\ |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 956 | { \ |
| 957 | /* Endpoint: 2, Cluster: Temperature Measurement (server) */ \ |
| 958 | .clusterId = 0x00000402, \ |
| 959 | .attributes = ZAP_ATTRIBUTE_INDEX(241), \ |
| 960 | .attributeCount = 5, \ |
| 961 | .clusterSize = 0, \ |
| 962 | .mask = ZAP_CLUSTER_MASK(SERVER), \ |
| 963 | .functions = NULL, \ |
| 964 | .acceptedCommandList = nullptr ,\ |
| 965 | .generatedCommandList = nullptr ,\ |
| 966 | },\ |
Song GUO | 15ef474 | 2022-02-02 13:03:41 +0800 | [diff] [blame] | 967 | } |
| 968 | |
| 969 | // clang-format on |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 970 | |
Boris Zbarsky | 90cf66a | 2022-01-28 16:14:30 -0500 | [diff] [blame] | 971 | #define ZAP_CLUSTER_INDEX(index) (&generatedClusters[index]) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 972 | |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 973 | #define ZAP_FIXED_ENDPOINT_DATA_VERSION_COUNT 26 |
Boris Zbarsky | 019ff59 | 2022-01-28 23:42:42 -0500 | [diff] [blame] | 974 | |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 975 | // This is an array of EmberAfEndpointType structures. |
| 976 | #define GENERATED_ENDPOINT_TYPES \ |
| 977 | { \ |
jwinder-ca | aca4381 | 2022-07-29 11:01:06 -0600 | [diff] [blame] | 978 | { 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] | 979 | } |
| 980 | |
| 981 | // Largest attribute size is needed for various buffers |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 982 | #define ATTRIBUTE_LARGEST (515) |
Boris Zbarsky | e94c9a9 | 2022-02-05 02:49:57 -0500 | [diff] [blame] | 983 | |
| 984 | 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] | 985 | |
| 986 | // Total size of singleton attributes |
Boris Zbarsky | e3c5244 | 2022-04-25 15:45:58 -0400 | [diff] [blame] | 987 | #define ATTRIBUTE_SINGLETONS_SIZE (37) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 988 | |
| 989 | // Total size of attribute storage |
jwinder-ca | 5665d38 | 2022-07-21 10:35:30 -0600 | [diff] [blame] | 990 | #define ATTRIBUTE_MAX_SIZE (812) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 991 | |
| 992 | // Number of fixed endpoints |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 993 | #define FIXED_ENDPOINT_COUNT (3) |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 994 | |
| 995 | // Array of endpoints that are supported, the data inside |
| 996 | // the array is the endpoint number. |
| 997 | #define FIXED_ENDPOINT_ARRAY \ |
| 998 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 999 | 0x0000, 0x0001, 0x0002 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1000 | } |
| 1001 | |
| 1002 | // Array of profile ids |
| 1003 | #define FIXED_PROFILE_IDS \ |
| 1004 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1005 | 0x0103, 0x0103, 0x0103 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1006 | } |
| 1007 | |
Jerry Johns | 40b08b9 | 2022-04-06 18:31:35 -0700 | [diff] [blame] | 1008 | // Array of device types |
| 1009 | #define FIXED_DEVICE_TYPES \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1010 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1011 | { 0x0016, 1 }, { 0x000E, 1 }, { 0x0101, 1 } \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1012 | } |
| 1013 | |
Jerry Johns | 40b08b9 | 2022-04-06 18:31:35 -0700 | [diff] [blame] | 1014 | // Array of device type offsets |
| 1015 | #define FIXED_DEVICE_TYPE_OFFSETS \ |
| 1016 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1017 | 0, 1, 2 \ |
Jerry Johns | 40b08b9 | 2022-04-06 18:31:35 -0700 | [diff] [blame] | 1018 | } |
| 1019 | |
| 1020 | // Array of device type lengths |
| 1021 | #define FIXED_DEVICE_TYPE_LENGTHS \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1022 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1023 | 1, 1, 1 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1024 | } |
| 1025 | |
| 1026 | // Array of endpoint types supported on each endpoint |
| 1027 | #define FIXED_ENDPOINT_TYPES \ |
| 1028 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1029 | 0, 1, 2 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1030 | } |
| 1031 | |
| 1032 | // Array of networks supported on each endpoint |
| 1033 | #define FIXED_NETWORKS \ |
| 1034 | { \ |
jwinder-ca | 3522f9a | 2022-06-09 23:38:48 -0600 | [diff] [blame] | 1035 | 0, 0, 0 \ |
Arun Bharadwaj | 5dcbd40 | 2021-01-25 15:39:27 -0800 | [diff] [blame] | 1036 | } |