Definitions for stack tokens. More...

Data Structures

struct tokTypeStackKey
Type for TOKEN_STACK_SECURITY_KEY. Keeps the security key for MAC layer security. More...
struct tokTypeStackNodeData
Type for TOKEN_STACK_NODE_DATA. Generic information of the node is stored in this token. More...
struct tokTypeStackChildTableEntry
Type of an element of TOKEN_STACK_CHILD_TABLE (indexed token). Keeps children information of a device, which has parent support enabled. More...

Macros

#define CURRENT_STACK_TOKEN_VERSION 0x03FC
The current version number of the stack tokens. MSB is the version. LSB is a complement. More...

Token types

The types used for each stack token.

typedef uint16_t tokTypeStackNvdataVersion
Type for TOKEN_STACK_NVDATA_VERSION. Keeps the version number of stack tokens. More...
typedef uint32_t tokTypeStackNonceCounter
Type for TOKEN_STACK_NONCE_COUNTER. Used to make sure that Nonce used for security is not repeated even after unexpected reboot. More...
typedef uint16_t tokTypeStackLastAllocatedId
Type for TOKEN_STACK_LAST_ASSIGNED_ID. Stores the last assigned NodeId if the device is EMBER_STAR_COORDINATOR . More...
typedef uint32_t tokTypeStackBootCounter
Type for TOKEN_STACK_BOOT_COUNTER. Increments at boot (during emberInit() ). More...
typedef EmberEUI64 tokTypeParentLongId
Type for TOKEN_STACK_PARENT_LONG_ID. Stores the Long Id of the parent of this device. Only used for EMBER_MAC_MODE_DEVICE and EMBER_MAC_MODE_SLEEPY_DEVICE device types. More...

Detailed Description

Definitions for stack tokens.

Stack tokens are used by the stack to store information in non-volatile memory. A typical use case is to store the network information, so after an accidental reset it can be part of the network without going through the association process again.

Note
For the application tokens, refer to Token Access and AN1154.
Warning
While stack tokens can be accessed through the Token Access API, they must not be written directly . Most stack tokens have APIs to read/write them. This documentation is intended for those who need more information on the internal details of the connect stack.

See token-stack.h for source code.

Macro Definition Documentation

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.

Definition at line 208 of file token-stack.h .

Typedef Documentation

tokTypeParentLongId

Type for TOKEN_STACK_PARENT_LONG_ID. Stores the Long Id of the parent of this device. Only used for EMBER_MAC_MODE_DEVICE and EMBER_MAC_MODE_SLEEPY_DEVICE device types.

Definition at line 281 of file token-stack.h .

tokTypeStackBootCounter

typedef uint32_t tokTypeStackBootCounter

Type for TOKEN_STACK_BOOT_COUNTER. Increments at boot (during emberInit() ).

Definition at line 274 of file token-stack.h .

tokTypeStackLastAllocatedId

Type for TOKEN_STACK_LAST_ASSIGNED_ID. Stores the last assigned NodeId if the device is EMBER_STAR_COORDINATOR .

Definition at line 268 of file token-stack.h .

tokTypeStackNonceCounter

Type for TOKEN_STACK_NONCE_COUNTER. Used to make sure that Nonce used for security is not repeated even after unexpected reboot.

Definition at line 228 of file token-stack.h .

tokTypeStackNvdataVersion

Type for TOKEN_STACK_NVDATA_VERSION. Keeps the version number of stack tokens.

Definition at line 222 of file token-stack.h .