Change script for apply upstream code
[platform/upstream/connectedhomeip.git] / src / app / zap-templates / gen_config.zapt
1 {{chip_header}}
2
3 // Prevent multiple inclusion
4 #pragma once
5
6 // User options for plugin Binding Table Library
7 #define EMBER_BINDING_TABLE_SIZE 10
8
9 /**** Network Section ****/
10 #define EMBER_SUPPORTED_NETWORKS (1)
11
12
13 #define EMBER_APS_UNICAST_MESSAGE_COUNT 10
14
15 /**** Cluster endpoint counts ****/
16 {{#all_user_clusters}}
17 #define EMBER_AF_{{asDelimitedMacro define}}_{{asDelimitedMacro side}}_ENDPOINT_COUNT ({{user_endpoint_count_by_cluster id side}})
18 {{/all_user_clusters}}
19
20 /**** Cluster Plugins ****/
21 {{#all_user_clusters}}
22
23 // Use this macro to check if the {{side}} side of the {{name}} cluster is included
24 #define ZCL_USING_{{asDelimitedMacro define}}_{{asDelimitedMacro side}}
25 #define EMBER_AF_PLUGIN_{{asDelimitedMacro name}}_{{asDelimitedMacro side}}
26 {{#if (isServer side)}}
27 #define EMBER_AF_PLUGIN_{{asDelimitedMacro name}}
28 {{/if}}
29 {{#if (isStrEqual name "Color Control")}}
30 {{#if (isServer side)}}
31 // User options for {{side}} plugin {{name}}
32 #define EMBER_AF_PLUGIN_COLOR_CONTROL_SERVER_XY
33 #define EMBER_AF_PLUGIN_COLOR_CONTROL_SERVER_TEMP
34 #define EMBER_AF_PLUGIN_COLOR_CONTROL_SERVER_HSV
35 {{/if}}
36 {{else if (isStrEqual name "IAS Zone")}}
37 // User options for {{side}} plugin {{name}}
38 {{#if (isServer side)}}
39 #define EMBER_AF_PLUGIN_IAS_ZONE_SERVER_ZONE_TYPE 541
40 {{else}}
41 #define EMBER_AF_PLUGIN_IAS_ZONE_CLIENT_MAX_DEVICES 10
42 {{/if}}
43 {{else if (isStrEqual name "Level Control")}}
44 {{#if (isServer side)}}
45 // User options for {{side}} plugin {{name}}
46 #define EMBER_AF_PLUGIN_LEVEL_CONTROL_MAXIMUM_LEVEL 255
47 #define EMBER_AF_PLUGIN_LEVEL_CONTROL_MINIMUM_LEVEL 0
48 #define EMBER_AF_PLUGIN_LEVEL_CONTROL_RATE 0
49 {{/if}}
50 {{else if (isStrEqual name "Scenes")}}
51 {{#if (isServer side)}}
52 // User options for {{side}} plugin {{name}}
53 #define EMBER_AF_PLUGIN_SCENES_TABLE_SIZE 3
54 {{/if}}
55 {{/if}}
56 {{/all_user_clusters}}
57
58 // TODO Issue #3871 Reporting should only be enabled if there are reportable attributes
59 // Use this macro to check if Reporting plugin is included
60 #define EMBER_AF_PLUGIN_REPORTING
61 // User options for plugin Reporting
62 #define EMBER_AF_PLUGIN_REPORTING_TABLE_SIZE 5
63 #define EMBER_AF_PLUGIN_REPORTING_ENABLE_GROUP_BOUND_REPORTS