Trident IoT Zigbee SDK
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
project_app_tokens.h
Go to the documentation of this file.
1
10#ifndef PROJECT_APP_TOKENS_H
11#define PROJECT_APP_TOKENS_H
12#include "tr_app_tokens.h"
13
14// create a special structure for an application token
15typedef struct __attribute__((packed))
16{
17 uint8_t first[2];
18 uint16_t second;
19}
21
23
24// create the application tokens
25// usage: TR_CREATE_APP_TOKEN("NAME_OF_MY_APP_TOKEN", data_type)
26// NOTE: MUST USE STD C DATA TYPES (i.e. uint8_t NOT zb_uint8_t)
27TR_START_APP_TOKEN_DEFS
28{
29 TR_CREATE_APP_TOKEN(MY_APP_TOK_U8, uint8_t)
30 TR_CREATE_APP_TOKEN(MY_APP_TOK_U32, uint32_t)
31 TR_CREATE_APP_TOKEN(MY_APP_TOK_SPECIAL, my_special_token_struct_t)
32 TR_CREATE_APP_TOKEN(MY_APP_TOK_U16, uint16_t)
33 TR_CREATE_APP_TOKEN(APP_TOK_UPC, app_tok_type_product_upc_code)
34}
35TR_END_APP_TOKEN_DEFS
36#endif /* ifdef PROJECT_APP_TOKENS_H */
uint8_t app_tok_type_product_upc_code[12]
Definition project_app_tokens.h:22
Definition project_app_tokens.h:16