Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_mfg_tokens.h File Reference

MFG token infrastructure + declarations. More...

#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "tr_platform_token_def.h"
#include "tr_platform_tokens.h"
+ Include dependency graph for tr_mfg_tokens.h:

Go to the source code of this file.

Data Structures

struct  tr_mfg_tok_type_version
 
struct  tr_mfg_tok_type_manuf_id
 
struct  tr_mfg_tok_type_xtal_trim
 
struct  tr_mfg_tok_type_phy_config
 
struct  tr_mfg_tok_type_cca_threshold
 
struct  tr_mfg_tok_type_cbke_data
 
struct  tr_mfg_tok_type_installation_code
 
struct  tr_mfg_tok_type_security_config
 
struct  tr_mfg_tok_type_cbke_283k1_data
 
struct  tr_mfg_tok_type_thread_join_key
 

Macros

#define TR_START_MFG_TOKEN_DEFS    typedef struct __attribute__((packed))
 
#define TR_END_MFG_TOKEN_DEFS    tr_mfg_token_struct_t;
 
#define TR_CREATE_MFG_TOKEN(name, type)    type name;
 
#define tr_get_mfg_token_len(token)    sizeof(((tr_mfg_token_struct_t*)0)->token)
 gets the size of a MFG token
 
#define tr_get_mfg_token_offset(token)    ((uint32_t)(&((tr_mfg_token_struct_t*)0)->token))
 gets the address offset to a specific MFG token
 
#define tr_get_mfg_token(data, token)
 copies the token data to the location pointed to by data
 
#define tr_mfg_token_check_erased(token)
 checks if a specific MFG token is erased
 
#define tr_set_mfg_token(data, data_len, token)
 write token data to a specific MFG token
 

Typedefs

typedef uint8_t tr_mfg_tok_type_custom_eui[8]
 
typedef uint8_t tr_mfg_tok_type_mfg_name[32]
 
typedef uint8_t tr_mfg_tok_type_model_name[32]
 
typedef uint8_t tr_mfg_tok_type_hw_version
 
typedef uint8_t tr_mfg_tok_type_serial_num[8]
 
typedef uint8_t tr_mfg_tok_type_distributed_key[16]
 
typedef uint8_t tr_mfg_tok_type_nvm_crypto_key[16]
 
typedef uint8_t tr_mfg_tok_type_bootload_aes_key[16]
 
typedef uint8_t tr_mfg_tok_type_secure_bootloader_key[16]
 
typedef uint8_t tr_mfg_tok_type_signed_bootloader_key_x[32]
 
typedef uint8_t tr_mfg_tok_type_signed_bootloader_key_y[32]
 
typedef uint8_t tr_mfg_tok_type_serial_boot_delay_sec
 
typedef uint8_t tr_mfg_tok_type_zwave_region
 
typedef uint8_t tr_mfg_tok_type_zwave_initialized
 
typedef uint8_t tr_mfg_tok_type_zwave_qr_code[106]
 
typedef uint8_t tr_mfg_tok_type_zwave_puk[32]
 
typedef uint8_t tr_mfg_tok_type_zwave_prk[32]
 

Variables

 TR_START_MFG_TOKEN_DEFS
 

Detailed Description

MFG token infrastructure + declarations.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ TR_CREATE_MFG_TOKEN

#define TR_CREATE_MFG_TOKEN ( name,
type )    type name;

◆ TR_END_MFG_TOKEN_DEFS

#define TR_END_MFG_TOKEN_DEFS    tr_mfg_token_struct_t;

◆ TR_START_MFG_TOKEN_DEFS

#define TR_START_MFG_TOKEN_DEFS    typedef struct __attribute__((packed))

Typedef Documentation

◆ tr_mfg_tok_type_bootload_aes_key

typedef uint8_t tr_mfg_tok_type_bootload_aes_key[16]

◆ tr_mfg_tok_type_custom_eui

typedef uint8_t tr_mfg_tok_type_custom_eui[8]

◆ tr_mfg_tok_type_distributed_key

typedef uint8_t tr_mfg_tok_type_distributed_key[16]

◆ tr_mfg_tok_type_hw_version

typedef uint8_t tr_mfg_tok_type_hw_version

◆ tr_mfg_tok_type_mfg_name

typedef uint8_t tr_mfg_tok_type_mfg_name[32]

◆ tr_mfg_tok_type_model_name

typedef uint8_t tr_mfg_tok_type_model_name[32]

◆ tr_mfg_tok_type_nvm_crypto_key

typedef uint8_t tr_mfg_tok_type_nvm_crypto_key[16]

◆ tr_mfg_tok_type_secure_bootloader_key

typedef uint8_t tr_mfg_tok_type_secure_bootloader_key[16]

◆ tr_mfg_tok_type_serial_boot_delay_sec

◆ tr_mfg_tok_type_serial_num

typedef uint8_t tr_mfg_tok_type_serial_num[8]

◆ tr_mfg_tok_type_signed_bootloader_key_x

typedef uint8_t tr_mfg_tok_type_signed_bootloader_key_x[32]

◆ tr_mfg_tok_type_signed_bootloader_key_y

typedef uint8_t tr_mfg_tok_type_signed_bootloader_key_y[32]

◆ tr_mfg_tok_type_zwave_initialized

◆ tr_mfg_tok_type_zwave_prk

typedef uint8_t tr_mfg_tok_type_zwave_prk[32]

◆ tr_mfg_tok_type_zwave_puk

typedef uint8_t tr_mfg_tok_type_zwave_puk[32]

◆ tr_mfg_tok_type_zwave_qr_code

typedef uint8_t tr_mfg_tok_type_zwave_qr_code[106]

◆ tr_mfg_tok_type_zwave_region

Variable Documentation

◆ TR_START_MFG_TOKEN_DEFS

TR_START_MFG_TOKEN_DEFS