| {{> header}} |
| |
| // Prevent multiple inclusion |
| #pragma once |
| |
| #include <stdint.h> |
| |
| #include <app/util/basic-types.h> |
| #include <lib/core/GroupId.h> |
| #include <lib/core/NodeId.h> |
| #include <lib/support/Span.h> |
| #include <protocols/interaction_model/Constants.h> |
| |
| #include "enums.h" |
| |
| {{#zcl_structs}} |
| |
| {{#if (isLegacyStruct (asUnderlyingType label))}} |
| {{#if itemCnt}} |
| // Struct for {{label}} |
| typedef struct _{{asType label}} { |
| {{#zcl_struct_items}} |
| {{ident}}{{asUnderlyingZclType type}} {{asSymbol label}}; |
| {{/zcl_struct_items}} |
| } {{asUnderlyingType label}}; |
| {{else}} |
| // Void typedef for {{asUnderlyingType label}} which is empty. |
| // this will result in all the references to the data being as uint8_t* |
| typedef uint8_t {{asUnderlyingType label}}; |
| {{/if}} |
| {{/if}} |
| {{/zcl_structs}} |