hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
ifx-record-handler.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2026 Infineon Technologies AG
2// SPDX-License-Identifier: MIT
3
8#ifndef IFX_RECORD_HANDLER_H
9#define IFX_RECORD_HANDLER_H
10
11#include <stddef.h>
12#include <stdint.h>
13#include "infineon/ifx-error.h"
15#include "infineon/ifx-utils.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* Macro definitions */
22/* Definitions of function identifiers */
23
27#define IFX_RECORD_HANDLER_ENCODE UINT8_C(0x01)
28
32#define IFX_RECORD_HANDLER_DECODE UINT8_C(0x02)
33
37#define IFX_NDEF_HEADER_FIELD_LEN UINT32_C(0x01)
38
42#define IFX_NDEF_TYPE_FIELD_LEN UINT32_C(0x01)
43
47#define IFX_NDEF_ID_FIELD_LEN UINT32_C(0x01)
48
52#define IFX_NDEF_SR_PAYLOAD_LEN_FIELD_LEN UINT32_C(0x01)
53
57#define IFX_NDEF_PAYLOAD_LEN_FIELD_LEN UINT32_C(0x04)
58
62#define IFX_NDEF_SR_PAYLOAD_LEN_FIELD_MAX_LEN UINT32_C(0xFF)
63
67#define IFX_NDEF_ID_LEN_FIELD_NONE UINT32_C(0x00)
68
72#define IFX_NDEF_EMPTY_MESSAGE_LEN UINT32_C(0x03)
73
74/* Public functions */
75
86 ifx_blob_t *record_bytes);
87
100 ifx_record_handle_t *handle);
101
102#ifdef __cplusplus
103}
104
105#endif /* __cplusplus */
106#endif /* IFX_RECORD_HANDLER_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 record_handler_encode(const ifx_record_handle_t *handle, ifx_blob_t *record_bytes)
Encodes the record bytes for the specific record type handle given as input.
ifx_status_t record_handler_decode(ifx_blob_t *record_bytes, ifx_record_handle_t *handle)
Decodes the record handles information from the given record bytes as input.
Provides utility functions and macros.
Data storage for data and data length where both are required as parameters.
Definition ifx-utils.h:189
Defines the handle for specific record type.