nRF5 SDK v17.1.0
Modules | Functions
Alternative Carrier records parser

Functions for parsing and decoding Alternative Carrier records. More...

Modules

 Alternative Carrier record parser configuration
 

Functions

ret_code_t nfc_ac_rec_parse (nfc_ndef_record_desc_t const *const p_rec_desc, nfc_ac_rec_payload_desc_t *const p_ac_rec_payload_data)
 Function for parsing general record description as Alternative Carrier record. More...
 

Detailed Description

Functions for parsing and decoding Alternative Carrier records.

Function Documentation

ret_code_t nfc_ac_rec_parse ( nfc_ndef_record_desc_t const *const  p_rec_desc,
nfc_ac_rec_payload_desc_t *const  p_ac_rec_payload_data 
)

Function for parsing general record description as Alternative Carrier record.

This function checks if record description matches the Alternative Carrier record and extracts its payload structure. It is required for the record description to use binary payload descriptor.

Parameters
[in]p_rec_descPointer to the record descriptor.
[in,out]p_ac_rec_payload_dataPointer to the structure that will be used to hold parsed data.
Return values
NRF_SUCCESSIf the function completed successfully.
NRF_ERROR_INVALID_DATAIf the NDEF record type or TNF is incorrect.
NRF_ERROR_NOT_SUPPORTEDIf the payload descriptor is not binary.
NRF_ERROR_NULLIf any provided arguments or any needed buffers stored in p_ac_rec_payload_data are nulls.
NRF_ERROR_NO_MEMIf any from provided buffers does not have enough space to store its data.
NRF_ERROR_INVALID_LENGTHIf any length field exceeds record payload.
NRF_ERROR_INVALID_PARAMIf Carrier Power State field has incorrect value.

Documentation feedback | Developer Zone | Subscribe | Updated