24#define IFX_RECORD_BP_SET UINT8_C(0x01)
29#define IFX_RECORD_BP_GET UINT8_C(0x02)
34#define IFX_RECORD_BP_NEW UINT8_C(0x03)
39#define IFX_RECORD_BP_RELEASE_MEMORY UINT8_C(0x04)
44#define IFX_RECORD_BP_TYPE_LEN UINT8_C(0x20)
49#define IFX_RECORD_BP_TYPE \
50 {0x69, 0x6E, 0x66, 0x69, 0x6E, 0x65, 0x6F, 0x6E, 0x2E, 0x63, 0x6F, \
51 0x6D, 0x3A, 0x6E, 0x66, 0x63, 0x2D, 0x62, 0x72, 0x69, 0x64, 0x67, \
52 0x65, 0x2D, 0x74, 0x61, 0x67, 0x2E, 0x78, 0x35, 0x30, 0x39};
57#define IFX_BP_CERT_HANDLERS_NOT_DEFINED UINT8_C(0x01)
127 const void *certificate);
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Stores the module details and function identifiers.
Model interface to create record types and set/get record fields.
ifx_status_t ifx_record_bp_register(void)
Registers the brand protection record with the NDEF library. Only the registered records are encoded ...
ifx_status_t(* ifx_record_bp_cert_encoder_t)(const void *, ifx_blob_t **)
Function prototype declaration for certificate encoding function.
ifx_status_t ifx_record_bp_get_certificate(const ifx_record_handle_t *handle, void *certificate)
Gets the certificate from the brand protection record handle.
ifx_status_t ifx_record_bp_new(ifx_record_handle_t *handle)
Creates a new brand protection record and the respective handle for the record. This handle can be us...
ifx_status_t ifx_record_bp_set_certificate_handlers(ifx_record_handle_t *handle, ifx_record_bp_cert_encoder_t encoder, ifx_record_bp_cert_decoder_t decoder)
Sets the certificate encoder and decoder callback functions for parsing certificates.
ifx_status_t ifx_record_bp_set_payload(ifx_record_handle_t *handle, const ifx_blob_t *payload)
Sets the payload in brand protection record handle.
ifx_status_t(* ifx_record_bp_cert_decoder_t)(const ifx_blob_t *, void *)
Function prototype declaration for certificate decoding function.
ifx_status_t ifx_record_bp_get_payload(const ifx_record_handle_t *handle, ifx_blob_t *payload)
Gets the payload from the brand protection record handle.
ifx_status_t ifx_record_bp_set_certificate(ifx_record_handle_t *handle, const void *certificate)
Sets certificate in the brand protection record for a given record handle.
Data storage for data and data length where both are required as parameters.
Defines the handle for specific record type.