hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
ifx-record-external.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2026 Infineon Technologies AG
2// SPDX-License-Identifier: MIT
3
11#ifndef IFX_RECORD_EXTERNAL_H
12#define IFX_RECORD_EXTERNAL_H
13
14#include <stddef.h>
15#include <stdint.h>
16#include "infineon/ifx-error.h"
18#include "infineon/ifx-utils.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24/* Macro definitions */
25/* Definitions of function identifiers */
26
30#define IFX_RECORD_EXT_NEW UINT8_C(0x01)
31
35#define IFX_RECORD_EXT_SET UINT8_C(0x02)
36
40#define IFX_RECORD_EXT_GET UINT8_C(0x03)
41
42/* Structure definitions */
43
48typedef struct
49{
52
65 const ifx_blob_t *type);
66
77 const ifx_blob_t *payload);
78
89 ifx_blob_t *payload);
90
91#ifdef __cplusplus
92}
93
94#endif /* __cplusplus */
95#endif /* IFX_RECORD_EXTERNAL_H */
Infineon specific error code creation and parsing.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Definition ifx-error.h:91
Model interface to create record types and set/get record fields.
ifx_status_t ifx_record_ext_new(ifx_record_handle_t *handle, const ifx_blob_t *type)
Creates a new external record and handle of the created record. This handle holds the values of the r...
ifx_status_t ifx_record_ext_set_payload(ifx_record_handle_t *handle, const ifx_blob_t *payload)
Sets the payload in the external record for the given record handle.
ifx_status_t ifx_record_ext_get_payload(const ifx_record_handle_t *handle, ifx_blob_t *payload)
Gets the payload from the external record for the given record handle.
Provides utility functions and macros.
Data storage for data and data length where both are required as parameters.
Definition ifx-utils.h:189
Structure defines generic record details such as payload data and its length.
Defines the handle for specific record type.