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"
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 | |
MFG token infrastructure + declarations.
SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com
#define TR_CREATE_MFG_TOKEN | ( | name, | |
type ) type name; |
#define TR_END_MFG_TOKEN_DEFS tr_mfg_token_struct_t; |
#define TR_START_MFG_TOKEN_DEFS typedef struct __attribute__((packed)) |
typedef uint8_t tr_mfg_tok_type_bootload_aes_key[16] |
typedef uint8_t tr_mfg_tok_type_custom_eui[8] |
typedef uint8_t tr_mfg_tok_type_distributed_key[16] |
typedef uint8_t tr_mfg_tok_type_hw_version |
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_nvm_crypto_key[16] |
typedef uint8_t tr_mfg_tok_type_secure_bootloader_key[16] |
typedef uint8_t tr_mfg_tok_type_serial_boot_delay_sec |
typedef uint8_t tr_mfg_tok_type_serial_num[8] |
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_zwave_initialized |
typedef uint8_t tr_mfg_tok_type_zwave_prk[32] |
typedef uint8_t tr_mfg_tok_type_zwave_puk[32] |
typedef uint8_t tr_mfg_tok_type_zwave_qr_code[106] |
typedef uint8_t tr_mfg_tok_type_zwave_region |
TR_START_MFG_TOKEN_DEFS |