hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
ifx-ndef-message.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2026 Infineon Technologies AG
2// SPDX-License-Identifier: MIT
3
10#ifndef IFX_NDEF_MESSAGE_H
11#define IFX_NDEF_MESSAGE_H
12
13#include <stddef.h>
14#include <stdint.h>
15#include "infineon/ifx-utils.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22/* Macro definitions */
23/* Definitions of function identifiers */
24
28#define IFX_NDEF_MESSAGE_ENCODE UINT8_C(0x01)
29
33#define IFX_NDEF_MESSAGE_DECODE UINT8_C(0x02)
34
38#define IFX_NDEF_MESSAGE_EMPTY UINT8_C(0xD0)
39
40/* public functions */
41
54 uint32_t number_of_records,
55 ifx_blob_t *ndef_message);
56
68 uint32_t *number_of_records,
69 ifx_record_handle_t *record_handles);
70
71#ifdef __cplusplus
72}
73
74#endif /* __cplusplus */
75#endif /* IFX_NDEF_MESSAGE_H */
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Definition ifx-error.h:91
ifx_status_t ifx_ndef_message_encode(const ifx_record_handle_t *record_handles, uint32_t number_of_records, ifx_blob_t *ndef_message)
Encodes the array of the NDEF record handles into the NDEF message.
ifx_status_t ifx_ndef_message_decode(const ifx_blob_t *ndef_message, uint32_t *number_of_records, ifx_record_handle_t *record_handles)
Decodes the NDEF message buffer to the NDEF records array.
Model interface to create record types and set/get record fields.
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.