| {{#zcl_commands_with_arguments sortBy="signature"}}{{#if argCount }} |
| /** @brief Structure for ZCL command "{{commandName}}" from "{{clusterName}}" |
| */ |
| typedef struct __zcl_{{as_underscore_lowercase clusterName}}_cluster_{{as_underscore_lowercase commandName}}_command { |
| {{#zcl_command_arguments}} |
| {{#if_compare typeSize 4 operator='>'}} |
| {{#if_compare typeIsSigned 'true' operator='=='}} |
| int8_t {{as_symbol label}}[{{as_zcl_type_size type}}]; |
| {{else}} |
| uint8_t {{as_symbol label}}[{{as_zcl_type_size type}}]; |
| {{/if_compare}} |
| {{else}} |
| {{as_underlying_zcl_type type struct="uint8_t *" array="uint8_t *"}} {{as_symbol label}}; |
| {{/if_compare}} |
| {{/zcl_command_arguments}} |
| } sl_zcl_{{as_underscore_lowercase clusterName}}_cluster_{{as_underscore_lowercase commandName}}_command_t; |
| {{#if isSignatureSimple}} |
| |
| #define sl_zcl_{{as_underscore_lowercase clusterName}}_cluster_{{as_underscore_lowercase commandName}}_command_signature { \ |
| {{argCount}}, \ |
| {{#zcl_command_arguments}} ({{#if isOptional}}SL_SIGNATURE_FIELD_MASK_OPTIONAL_FIELD|{{/if}}{{#if_compare typeSize 4 operator='>'}}SL_SIGNATURE_FIELD_MASK_BLOB | {{as_zcl_type_size type}}{{else}}ZAP_SIGNATURE_TYPE_{{as_underscore_uppercase baseType}}{{/if_compare}}), offsetof(sl_zcl_{{as_underscore_lowercase ../clusterName}}_cluster_{{as_underscore_lowercase ../commandName}}_command_t, {{as_symbol label}}), \ |
| {{/zcl_command_arguments}} |
| } |
| {{/if}} |
| |
| {{/if}}{{/zcl_commands_with_arguments}} |