| Here are all clusters: |
| |
| {{#all_user_clusters}} |
| |
| {{#if (is_client side)}}client {{else}}server {{/if~}} |
| |
| cluster {{asUpperCamelCase name}} = {{code}} |
| {{~#if apiMaturity}} ({{apiMaturity}}){{/if}} {{!~}} |
| { |
| {{#zcl_enums}} |
| {{#if apiMaturity}}// enum {{name}} has apiMaturity: {{apiMaturity}}{{/if}} |
| enum {{asUpperCamelCase name preserveAcronyms=true}} : ENUM{{multiply size 8}}; |
| {{#zcl_enum_items}} |
| {{#if apiMaturity}} apiMaturity {{apiMaturity}} available for enum item: {{name}}{{/if}} |
| {{/zcl_enum_items}} |
| |
| {{/zcl_enums}} |
| {{#zcl_bitmaps}} |
| {{#if apiMaturity}}// bitmap {{name}} has apiMaturity: {{apiMaturity}}{{/if}} |
| bitmap {{asUpperCamelCase name preserveAcronyms=true}} : BITMAP{{multiply size 8}}; |
| |
| {{#zcl_bitmap_items}} |
| {{#if apiMaturity}} apiMaturity {{apiMaturity}} available for bitmap field: {{name}}{{/if}} |
| {{/zcl_bitmap_items}} |
| |
| {{/zcl_bitmaps}} |
| {{#zcl_events}} |
| {{priority}} event {{asUpperCamelCase name preserveAcronyms=true}} = {{code}} {{~#if apiMaturity}} ({{apiMaturity}}) {{~/if~}} { |
| {{#zcl_event_fields}} |
| {{#if isOptional~}}optional {{/if~}} |
| {{~#if isNullable~}}nullable {{/if~}} |
| {{~#if isFabricSensitive~}}fabric_sensitive {{/if~}} |
| {{type}} {{asLowerCamelCase name~}} |
| {{~#if isArray~}} [] {{~/if}} = {{fieldIdentifier}}; |
| {{#if apiMaturity}} apiMaturity {{apiMaturity}} available for event field: {{name}}{{/if}} |
| {{/zcl_event_fields}} |
| } |
| |
| {{/zcl_events}} |
| {{#zcl_structs}} |
| struct {{name}} {{#if apiMaturity}}({{apiMaturity}}) {{/if}}{ |
| {{#zcl_struct_items}} |
| {{#if isOptional~}}optional {{/if~}} |
| {{~#if isNullable~}}nullable {{/if~}} |
| {{~#if isFabricSensitive~}}fabric_sensitive {{/if~}} |
| {{type}} {{asLowerCamelCase label~}} |
| {{~#if isArray~}} [] {{~/if}} = {{fieldIdentifier}}; |
| {{#if apiMaturity}} apiMaturity {{apiMaturity}} available for struct item: {{name}}{{/if}} |
| {{/zcl_struct_items}} |
| } |
| |
| {{/zcl_structs}} |
| |
| {{#zcl_attributes_server}} |
| {{#unless isGlobalAttribute}} |
| {{! ensure indent ~}} |
| {{#if isOptional~}} optional {{/if~}} |
| {{~#unless isWritableAttribute~}} readonly {{/unless~}} |
| {{~#if isNullable~}} nullable {{/if~}} |
| {{type}} attribute {{asLowerCamelCase name~}} {{~#if isArray~}} [] {{~/if}} = {{code~}} |
| {{~#if apiMaturity}} ({{apiMaturity}}) {{~/if~}}; |
| {{/unless}} |
| |
| {{/zcl_attributes_server}} |
| |
| {{#zcl_commands}} |
| // {{#if apiMaturity}} command {{commandName}} has apiMaturity: {{apiMaturity}} {{/if}} |
| command {{asUpperCamelCase commandName}} = {{code}} { |
| {{#zcl_command_arguments}} |
| {{#if isOptional~}}optional {{/if~}} |
| {{~#if isNullable~}}nullable {{/if~}} |
| {{~#if isFabricSensitive~}}fabric_sensitive {{/if~}} |
| {{type}} {{asLowerCamelCase label~}} |
| {{~#if isArray~}} [] {{~/if}} = {{fieldIdentifier}}; |
| // {{#if apiMaturity}} command argument {{name}} has apiMaturity: {{apiMaturity}} {{/if}} |
| {{/zcl_command_arguments}} |
| } |
| |
| {{/zcl_commands}} |
| } |
| |
| {{~/all_user_clusters}} |
| |
| |