Trident IoT Zigbee SDK
 
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
22// create the application tokens
23// usage: TR_CREATE_APP_TOKEN("NAME_OF_MY_APP_TOKEN", data_type)
24// NOTE: MUST USE STD C DATA TYPES (i.e. uint8_t NOT zb_uint8_t)
25TR_START_APP_TOKEN_DEFS
26{
27 TR_CREATE_APP_TOKEN(MY_APP_TOK_U8, uint8_t)
28 TR_CREATE_APP_TOKEN(MY_APP_TOK_U32, uint32_t)
29 TR_CREATE_APP_TOKEN(MY_APP_TOK_SPECIAL, my_special_token_struct_t)
30 TR_CREATE_APP_TOKEN(MY_APP_TOK_U16, uint16_t)
31}
32TR_END_APP_TOKEN_DEFS
33#endif /* ifdef PROJECT_APP_TOKENS_H */
Definition project_app_tokens.h:16
uint16_t second
Definition project_app_tokens.h:18