APP token infrastructure. More...
#include <stdint.h>
#include <stdbool.h>
#include "tr_platform_token_def.h"
#include "tr_platform_tokens.h"
Go to the source code of this file.
Macros | |
#define | TR_START_APP_TOKEN_DEFS typedef struct __attribute__((packed)) |
used to start the definition of the application tokens structure | |
#define | TR_END_APP_TOKEN_DEFS tr_app_token_struct_t; |
used to end the definition of the application tokens structure | |
#define | TR_CREATE_APP_TOKEN(token, type) type token; |
used to create a token which becomes an element in the application tokens structure with the passed in type and name | |
#define | tr_get_app_token_len(token) sizeof(((tr_app_token_struct_t*)0)->token) |
gets the size of an APP token | |
#define | tr_get_app_token_offset(token) ((uint32_t)(&((tr_app_token_struct_t*)0)->token)) |
gets the address offset to a specific APP token | |
#define | tr_get_app_token(data, token) |
copies the token data to the location pointed to by data | |
#define | tr_app_token_check_erased(token) |
checks if a specific APP token is erased | |
#define | tr_set_app_token(data, data_len, token) |
write token data to a specific APP token | |
APP token infrastructure.
SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com