|
#define | TOKEN_NEXT_ADDRESS(region, address) |
| By default, tokens are automatically located after the previous token.
|
|
#define | CURRENT_STACK_TOKEN_VERSION 0x03FC |
| The current version number of the stack tokens. MSB is the version, LSB is a complement.
|
|
The following convenience macros are used to simplify the definition process for commonly specified parameters to the basic TOKEN_DEF macro. See hal/micro/token.h for a more complete explanation.
|
#define | DEFINE_BASIC_TOKEN(name, type, ...) TOKEN_DEF (name, CREATOR_##name, 0, 0, type, 1, __VA_ARGS__) |
|
#define | DEFINE_COUNTER_TOKEN(name, type, ...) TOKEN_DEF (name, CREATOR_##name, 1, 0, type, 1, __VA_ARGS__) |
|
#define | DEFINE_INDEXED_TOKEN(name, type, arraysize, ...) TOKEN_DEF (name, CREATOR_##name, 0, 1, type, (arraysize), __VA_ARGS__) |
|
#define | DEFINE_FIXED_BASIC_TOKEN(name, type, address, ...) |
|
#define | DEFINE_FIXED_COUNTER_TOKEN(name, type, address, ...) |
|
#define | DEFINE_FIXED_INDEXED_TOKEN(name, type, arraysize, address, ...) |
|
#define | DEFINE_MFG_TOKEN(name, type, address, ...) |
These tokens are divided into three sections (the three main types of tokens mentioned in token.h):
- manufacturing
- stack
- application
For a full explanation of the tokens, see hal/micro/token.h
. See token-stack.h
for source code.
A set of tokens is predefined in the APPLICATION DATA section at the end of token-stack.h
because these tokens are required by the stack, but they are classified as application tokens since they are sized by the application via its CONFIGURATION_HEADER.
The user application can include its own tokens in a header file similar to this one. The macro ::APPLICATION_TOKEN_HEADER should be defined to equal the name of the header file in which application tokens are defined. See the APPLICATION DATA section at the end of token-stack.h
for examples of token definitions.
Since token-stack.h
contains both the typedefs and the token defs, two #defines are used to select which one is needed when this file is included. #define DEFINETYPES is used to select the type definitions and #define DEFINETOKENS is used to select the token definitions. See token.h and token.c to see how these are used.
◆ CREATOR_MULTI_NETWORK_STACK_ALTERNATE_KEY
#define CREATOR_MULTI_NETWORK_STACK_ALTERNATE_KEY 0xE212 |
◆ CREATOR_MULTI_NETWORK_STACK_KEYS
#define CREATOR_MULTI_NETWORK_STACK_KEYS 0xE210 |
◆ CREATOR_MULTI_NETWORK_STACK_NETWORK_MANAGEMENT
#define CREATOR_MULTI_NETWORK_STACK_NETWORK_MANAGEMENT 0xE214 |
◆ CREATOR_MULTI_NETWORK_STACK_NODE_DATA
#define CREATOR_MULTI_NETWORK_STACK_NODE_DATA 0xE211 |
◆ CREATOR_MULTI_NETWORK_STACK_NONCE_COUNTER
#define CREATOR_MULTI_NETWORK_STACK_NONCE_COUNTER 0xE220 |
◆ CREATOR_MULTI_NETWORK_STACK_PARENT_ADDITIONAL_INFO
#define CREATOR_MULTI_NETWORK_STACK_PARENT_ADDITIONAL_INFO 0xE221 |
◆ CREATOR_MULTI_NETWORK_STACK_PARENT_INFO
#define CREATOR_MULTI_NETWORK_STACK_PARENT_INFO 0xE215 |
◆ CREATOR_MULTI_NETWORK_STACK_TRUST_CENTER
#define CREATOR_MULTI_NETWORK_STACK_TRUST_CENTER 0xE213 |
◆ CREATOR_STACK_ADDITIONAL_CHILD_DATA
#define CREATOR_STACK_ADDITIONAL_CHILD_DATA 0xE503 |
◆ CREATOR_STACK_ALTERNATE_KEY
#define CREATOR_STACK_ALTERNATE_KEY 0xE475 |
◆ CREATOR_STACK_ANALYSIS_REBOOT
#define CREATOR_STACK_ANALYSIS_REBOOT 0xE162 |
◆ CREATOR_STACK_APS_FRAME_COUNTER
#define CREATOR_STACK_APS_FRAME_COUNTER 0xE123 |
◆ CREATOR_STACK_BINDING_TABLE
#define CREATOR_STACK_BINDING_TABLE 0xE274 |
◆ CREATOR_STACK_BOOT_COUNTER
#define CREATOR_STACK_BOOT_COUNTER 0xE263 |
◆ CREATOR_STACK_CERTIFICATE_TABLE
#define CREATOR_STACK_CERTIFICATE_TABLE 0xE500 |
◆ CREATOR_STACK_CHILD_TABLE
#define CREATOR_STACK_CHILD_TABLE 0xFF0D |
◆ CREATOR_STACK_CLASSIC_DATA
#define CREATOR_STACK_CLASSIC_DATA 0xE364 |
◆ CREATOR_STACK_GP_DATA
#define CREATOR_STACK_GP_DATA 0xE258 |
◆ CREATOR_STACK_GP_INCOMING_FC
#define CREATOR_STACK_GP_INCOMING_FC 0xE25B |
◆ CREATOR_STACK_GP_INCOMING_FC_IN_SINK
#define CREATOR_STACK_GP_INCOMING_FC_IN_SINK 0xE25C |
◆ CREATOR_STACK_GP_PROXY_TABLE
#define CREATOR_STACK_GP_PROXY_TABLE 0xE259 |
◆ CREATOR_STACK_GP_SINK_TABLE
#define CREATOR_STACK_GP_SINK_TABLE 0xE25A |
◆ CREATOR_STACK_KEY_TABLE
#define CREATOR_STACK_KEY_TABLE 0xE456 |
◆ CREATOR_STACK_KEYS
#define CREATOR_STACK_KEYS 0xEB79 |
◆ CREATOR_STACK_MIN_RECEIVED_RSSI
#define CREATOR_STACK_MIN_RECEIVED_RSSI 0xE129 |
◆ CREATOR_STACK_MULTI_PHY_NWK_INFO
#define CREATOR_STACK_MULTI_PHY_NWK_INFO 0xE128 |
◆ CREATOR_STACK_NETWORK_MANAGEMENT
#define CREATOR_STACK_NETWORK_MANAGEMENT 0xE125 |
◆ CREATOR_STACK_NODE_DATA
#define CREATOR_STACK_NODE_DATA 0xEE64 |
◆ CREATOR_STACK_NONCE_COUNTER
#define CREATOR_STACK_NONCE_COUNTER 0xE563 |
◆ CREATOR_STACK_NVDATA_VERSION
#define CREATOR_STACK_NVDATA_VERSION 0xFF01 |
◆ CREATOR_STACK_PARENT_ADDITIONAL_INFO
#define CREATOR_STACK_PARENT_ADDITIONAL_INFO 0xE127 |
◆ CREATOR_STACK_PARENT_INFO
#define CREATOR_STACK_PARENT_INFO 0xE126 |
◆ CREATOR_STACK_TRUST_CENTER
#define CREATOR_STACK_TRUST_CENTER 0xE124 |
◆ CREATOR_STACK_ZLL_DATA
#define CREATOR_STACK_ZLL_DATA 0xE501 |
◆ CREATOR_STACK_ZLL_SECURITY
#define CREATOR_STACK_ZLL_SECURITY 0xE502 |
◆ CURRENT_STACK_TOKEN_VERSION
#define CURRENT_STACK_TOKEN_VERSION 0x03FC |
The current version number of the stack tokens. MSB is the version, LSB is a complement.
See hal/micro/token.h
for a more complete explanation.
◆ DEFINE_BASIC_TOKEN
#define DEFINE_BASIC_TOKEN |
( |
|
name, |
|
|
|
type, |
|
|
|
... |
|
) |
| TOKEN_DEF (name, CREATOR_##name, 0, 0, type, 1, __VA_ARGS__) |
◆ DEFINE_COUNTER_TOKEN
#define DEFINE_COUNTER_TOKEN |
( |
|
name, |
|
|
|
type, |
|
|
|
... |
|
) |
| TOKEN_DEF (name, CREATOR_##name, 1, 0, type, 1, __VA_ARGS__) |
◆ DEFINE_FIXED_BASIC_TOKEN
#define DEFINE_FIXED_BASIC_TOKEN |
( |
|
name, |
|
|
|
type, |
|
|
|
address, |
|
|
|
... |
|
) |
| |
Value: TOKEN_DEF(name, CREATOR_##name, 0, 0, type, 1, __VA_ARGS__)
#define TOKEN_NEXT_ADDRESS(region, address)
By default, tokens are automatically located after the previous token.
Definition: token-stack.h:67
◆ DEFINE_FIXED_COUNTER_TOKEN
#define DEFINE_FIXED_COUNTER_TOKEN |
( |
|
name, |
|
|
|
type, |
|
|
|
address, |
|
|
|
... |
|
) |
| |
Value: TOKEN_DEF(name, CREATOR_##name, 1, 0, type, 1, __VA_ARGS__)
#define TOKEN_NEXT_ADDRESS(region, address)
By default, tokens are automatically located after the previous token.
Definition: token-stack.h:67
◆ DEFINE_FIXED_INDEXED_TOKEN
#define DEFINE_FIXED_INDEXED_TOKEN |
( |
|
name, |
|
|
|
type, |
|
|
|
arraysize, |
|
|
|
address, |
|
|
|
... |
|
) |
| |
Value: TOKEN_DEF(name, CREATOR_##name, 0, 1, type, (arraysize), __VA_ARGS__)
#define TOKEN_NEXT_ADDRESS(region, address)
By default, tokens are automatically located after the previous token.
Definition: token-stack.h:67
◆ DEFINE_INDEXED_TOKEN
#define DEFINE_INDEXED_TOKEN |
( |
|
name, |
|
|
|
type, |
|
|
|
arraysize, |
|
|
|
... |
|
) |
| TOKEN_DEF (name, CREATOR_##name, 0, 1, type, (arraysize), __VA_ARGS__) |
◆ DEFINE_MFG_TOKEN
#define DEFINE_MFG_TOKEN |
( |
|
name, |
|
|
|
type, |
|
|
|
address, |
|
|
|
... |
|
) |
| |
Value: TOKEN_MFG(name, CREATOR_##name, 0, 0, type, 1, __VA_ARGS__)
#define TOKEN_NEXT_ADDRESS(region, address)
By default, tokens are automatically located after the previous token.
Definition: token-stack.h:67
◆ NVM3KEY_DOMAIN_COMMON
#define NVM3KEY_DOMAIN_COMMON 0x80000U |
◆ NVM3KEY_DOMAIN_USER
#define NVM3KEY_DOMAIN_USER 0x00000U |
◆ NVM3KEY_DOMAIN_ZIGBEE
#define NVM3KEY_DOMAIN_ZIGBEE 0x10000U |
◆ NVM3KEY_MULTI_NETWORK_STACK_ALTERNATE_KEY
◆ NVM3KEY_MULTI_NETWORK_STACK_KEYS
◆ NVM3KEY_MULTI_NETWORK_STACK_NETWORK_MANAGEMENT
◆ NVM3KEY_MULTI_NETWORK_STACK_NODE_DATA
◆ NVM3KEY_MULTI_NETWORK_STACK_NONCE_COUNTER
◆ NVM3KEY_MULTI_NETWORK_STACK_PARENT_ADDITIONAL_INFO
◆ NVM3KEY_MULTI_NETWORK_STACK_PARENT_INFO
◆ NVM3KEY_MULTI_NETWORK_STACK_TRUST_CENTER
◆ NVM3KEY_STACK_ADDITIONAL_CHILD_DATA
◆ NVM3KEY_STACK_ALTERNATE_KEY
◆ NVM3KEY_STACK_ANALYSIS_REBOOT
◆ NVM3KEY_STACK_APS_FRAME_COUNTER
◆ NVM3KEY_STACK_BINDING_TABLE
◆ NVM3KEY_STACK_BOOT_COUNTER
◆ NVM3KEY_STACK_CERTIFICATE_TABLE
◆ NVM3KEY_STACK_CHILD_TABLE
◆ NVM3KEY_STACK_CLASSIC_DATA
◆ NVM3KEY_STACK_GP_DATA
◆ NVM3KEY_STACK_GP_INCOMING_FC
◆ NVM3KEY_STACK_GP_INCOMING_FC_IN_SINK
◆ NVM3KEY_STACK_GP_PROXY_TABLE
◆ NVM3KEY_STACK_GP_SINK_TABLE
◆ NVM3KEY_STACK_KEY_TABLE
◆ NVM3KEY_STACK_KEYS
◆ NVM3KEY_STACK_MIN_RECEIVED_RSSI
◆ NVM3KEY_STACK_MULTI_PHY_NWK_INFO
◆ NVM3KEY_STACK_NETWORK_MANAGEMENT
◆ NVM3KEY_STACK_NODE_DATA
◆ NVM3KEY_STACK_NONCE_COUNTER
◆ NVM3KEY_STACK_NVDATA_VERSION
◆ NVM3KEY_STACK_PARENT_ADDITIONAL_INFO
◆ NVM3KEY_STACK_PARENT_INFO
◆ NVM3KEY_STACK_TRUST_CENTER
◆ NVM3KEY_STACK_ZLL_DATA
◆ NVM3KEY_STACK_ZLL_SECURITY
◆ TOKEN_NEXT_ADDRESS
#define TOKEN_NEXT_ADDRESS |
( |
|
region, |
|
|
|
address |
|
) |
| |
By default, tokens are automatically located after the previous token.
If a token needs to be placed at a specific location, one of the DEFINE_FIXED_* definitions should be used. This macro is inherently used in the DEFINE_FIXED_* definition to locate a token and under special circumstances (such as manufacturing tokens) it may be explicitly used.
- Parameters
-
region | A name for the next region being located. |
address | The address of the beginning of the next region. |