Common Token Manager Defines#

This module provides defines for the Common Token Manager (CTM).

The defines in this module are used for creating 32-bit token identifier to identify static device tokens, static secure tokens and dynamic tokens in the CTM.

Modules#

NVM3 key space regions

Macros#

#define
SL_TOKEN_GET_STATIC_TOKEN_SIZE (token_name)

Helper MACRO to get the size of a predefined token.

#define
SL_TOKEN_GET_STATIC_DEVICE_TOKEN (token)

Helper MACRO to create a new static device token in 32-bit identifier format, the tokens created are stored in secure memory region and are mass erase protected, this MACRO can be used with sl_token_get_data() or sl_token_set_data() functions, for more information `sl_token_manager_defines.h`.

#define
SL_TOKEN_GET_STATIC_SECURE_TOKEN (token)

Helper MACRO to create a new static secure token in 32-bit identifier format, the tokens created are stored in dedicated flash region, with additional security measures and are not protected by mass/device erase, this MACRO can be used with sl_token_get_data() or sl_token_set_data() functions, for more information `sl_token_manager_defines.h`.

#define
SL_TOKEN_GET_DYNAMIC_TOKEN (token, IsCounterObj)

Helper MACRO to create dynamic token, user has to take care of providing the unique token for each NVM3 token created, the tokens created are stored in NVM3 region and are not protected by mass/device/nvm3 erase, this MACRO can be used with sl_token_get_data() or sl_token_set_data() functions, for more information `sl_token_manager_defines.h`.

#define
SL_TOKEN_GET_DYNAMIC_SECONDARY_INSTANCE_TOKEN (token, IsCounterObj)

Helper MACRO to create dynamic token for NVM3 secondary instance, user has to take care of providing the unique token for each NVM3 token created, the tokens created are stored in NVM3 region and are not protected by mass/device/nvm3 erase, this MACRO can be used with sl_token_get_data() or sl_token_set_data() functions, for more information `sl_token_manager_defines.h`.

#define
SL_TOKEN_GET_DYNAMIC_OVER_RIDE_TOKEN (token)

Helper MACRO to create a NVM3 override key for static token, this MACRO can be used with sl_token_get_data() or sl_token_set_data() functions, the range for NVM3 Domain region for a static token override key is predefined for more information `sl_token_manager_defines.h`.