8#ifndef IFX_NDEF_RECORD_H
9#define IFX_NDEF_RECORD_H
26#define IFX_RECORD_SET UINT8_C(0x01)
31#define IFX_RECORD_GET UINT8_C(0x02)
36#define IFX_RECORD_REGISTER UINT8_C(0x03)
41#define IFX_RECORD_RETRIEVE UINT8_C(0x04)
46#define IFX_RECORD_DEREGISTER UINT8_C(0x05)
51#define IFX_RECORD_DATA_FIELD_NA UINT8_C(0xF1)
56#define IFX_RECORD_HEADER_MASK_SR_FLAG UINT8_C(0x10)
61#define IFX_RECORD_HEADER_MASK_ID_FLAG UINT8_C(0x08)
66#define IFX_RECORD_TNF_MASK UINT8_C(0x27)
71#define IFX_RECORD_TNF_TYPE_KNOWN UINT8_C(0x01)
76#define IFX_RECORD_TNF_TYPE_MEDIA UINT8_C(0x02)
81#define IFX_RECORD_TNF_TYPE_EXT UINT8_C(0x04)
127 uint32_t *payload_length);
138 uint32_t payload_length,
139 void *record_details);
228 uint32_t type_length,
277 uint32_t number_of_records);
Infineon specific error code creation and parsing.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
ifx_status_t ifx_ndef_record_dispose(ifx_record_handle_t *record_handle)
This method will free-up the internally allocated memory of a record.
ifx_status_t(* ifx_record_decoder_t)(const uint8_t *payload, uint32_t payload_length, void *record_details)
Function prototype declaration for specific record decode operation.
ifx_status_t ifx_ndef_record_release_resource(void)
This method will free-up the internally allocated memory for ndef registered records.
ifx_status_t ifx_ndef_record_set_record_id(ifx_record_handle_t *handle, const ifx_blob_t *record_id)
Sets the record ID to the handle of record.
ifx_ndef_record_type
Defines list of available record types.
@ IFX_RECORD_TYPE_ALT_CARRIER
@ IFX_RECORD_TYPE_HANDOVER_SELECT
ifx_status_t ifx_ndef_record_get_record_id(const ifx_record_handle_t *handle, ifx_blob_t *record_id)
Gets the record ID from the handle of record.
ifx_status_t(* ifx_record_init_handler_t)(ifx_record_handle_t *handle)
Function prototype declarations that map to creation of new record handle APIs.
ifx_status_t ifx_ndef_record_retrieve_handle(uint8_t tnf, const uint8_t *type, uint32_t type_length, ifx_record_handle_t *handle)
Retrieves the record handle for the given type of record type information.
ifx_status_t ifx_ndef_record_register_handle(ifx_record_init_t *init_handler)
Register a new record service to the record init handler list based on the type data.
ifx_status_t(* ifx_record_encoder_t)(const void *record_details, uint8_t **payload, uint32_t *payload_length)
Function prototype declaration for specific record encode operation.
ifx_status_t(* ifx_record_deinit_t)(void *record_data)
Function prototype declaration for specific record's data release memory operation.
ifx_status_t ifx_ndef_record_dispose_list(ifx_record_handle_t *record_handles, uint32_t number_of_records)
This method will free-up the internally allocated memory for the list of records.
Provides utility functions and macros.
Data storage for data and data length where both are required as parameters.
Data storage for NDEF Records.
Defines the handle for specific record type.
ifx_record_deinit_t deinit_record
ifx_record_encoder_t encode_record
ifx_record_decoder_t decode_record
This Structure holds record's type information and function pointer which retrieves record handle bas...
ifx_record_init_handler_t get_handle