nRF5 SDK v15.3.0
Modules | Functions
High-level NDEF Detection Procedure

High-level NDEF Detection Procedure for Type 4 Tag communication. More...

Modules

 NDEF Detection Procedure for Type 4 Tag configuration
 

Functions

ret_code_t nfc_t4t_ndef_tag_app_select (void)
 Function for performing NDEF Tag Application Select Procedure. More...
 
ret_code_t nfc_t4t_cc_select (void)
 Function for performing Capability Container Select Procedure. More...
 
ret_code_t nfc_t4t_cc_read (nfc_t4t_capability_container_t *const p_cc_file)
 Function for performing Capability Container Read Procedure. More...
 
ret_code_t nfc_t4t_file_select (uint16_t file_id)
 Function for performing NDEF Select Procedure. More...
 
ret_code_t nfc_t4t_ndef_read (nfc_t4t_capability_container_t *const p_cc_file, uint8_t *p_ndef_file_buff, uint8_t ndef_file_buff_len)
 Function for performing NDEF Read Procedure. More...
 
ret_code_t nfc_t4t_ndef_update (nfc_t4t_capability_container_t *const p_cc_file, uint8_t *p_ndef_file_buff, uint8_t ndef_file_buff_len)
 Function for performing NDEF Update Procedure. More...
 

Detailed Description

High-level NDEF Detection Procedure for Type 4 Tag communication.

Function Documentation

ret_code_t nfc_t4t_cc_read ( nfc_t4t_capability_container_t *const  p_cc_file)

Function for performing Capability Container Read Procedure.

This function performs Capability Container Read Procedure according to "Type 4 Tag Operation" (Version 3.0 published on 2014-07-30) chapter 5.5.4.

Parameters
[out]p_cc_filePointer to the Capability Container descriptor.
Return values
NRF_SUCCESSIf Capability Container file was successfully read.
NRF_ERROR_NO_MEMIf APDU buffer or CC file storage buffer is too small.
NRF_ERROR_NOT_SUPPORTEDIf the requested response length in C-APDU is too big.
NRF_ERROR_NULLIf R-APDU did not return any data bytes.
NRF_ERROR_INVALID_DATAIf CCLEN field is not coherent with R-APDU data length.
OtherOther error codes may be returned depending on functions adafruit_pn532_in_data_exchange, nfc_t4t_cc_file_parse, and on APDU reader/writer module functions.
ret_code_t nfc_t4t_cc_select ( void  )

Function for performing Capability Container Select Procedure.

This function performs Capability Container Select Procedure according to "Type 4 Tag Operation" (Version 3.0 published on 2014-07-30) chapter 5.5.3.

Return values
NRF_SUCCESSIf the Capability Container file was successfully selected.
NRF_ERROR_NOT_FOUNDIf the Capability Container file was not found.
NRF_ERROR_NO_MEMIf the APDU buffer is too small.
OtherOther error codes might be returned depending on function adafruit_pn532_in_data_exchange and on APDU reader/writer module functions.
ret_code_t nfc_t4t_file_select ( uint16_t  file_id)

Function for performing NDEF Select Procedure.

This function performs NDEF Select Procedure according to "Type 4 Tag Operation" (Version 3.0 published on 2014-07-30) chapter 5.5.5.

Parameters
[in]file_idFile Identifier to choose the correct file.
Return values
NRF_SUCCESSIf NDEF file was successfully selected.
NRF_ERROR_NOT_FOUNDIf NDEF file was not found.
NRF_ERROR_NO_MEMIf APDU buffer is too small.
OtherOther error codes may be returned depending on function adafruit_pn532_in_data_exchange and on APDU reader/writer module functions.
ret_code_t nfc_t4t_ndef_read ( nfc_t4t_capability_container_t *const  p_cc_file,
uint8_t *  p_ndef_file_buff,
uint8_t  ndef_file_buff_len 
)

Function for performing NDEF Read Procedure.

This function performs NDEF Read Procedure according to "Type 4 Tag Operation" (Version 3.0 published on 2014-07-30) chapter 5.5.6.

Parameters
[in,out]p_cc_filePointer to the Capability Container descriptor.
[out]p_ndef_file_buffPointer to the buffer where the NDEF file will be stored.
[in]ndef_file_buff_lenLength of the provided NDEF file buffer.
Return values
NRF_SUCCESSIf NDEF file was successfully read.
NRF_ERROR_NO_MEMIf APDU buffer or NDEF file buffer is too small.
NRF_ERROR_NOT_SUPPORTEDIf requested response length in C-APDU is too big.
NRF_ERROR_NULLIf R-APDU did not return any data bytes.
NRF_ERROR_INVALID_DATAIf NLEN field is not coherent with R-APDU data length.
OtherOther error codes may be returned depending on function adafruit_pn532_in_data_exchange, nfc_t4t_file_content_set, and on APDU reader/writer module functions.
ret_code_t nfc_t4t_ndef_tag_app_select ( void  )

Function for performing NDEF Tag Application Select Procedure.

This function performs NDEF Tag Application Select Procedure according to "Type 4 Tag Operation" (Version 3.0 published on 2014-07-30) chapter 5.5.2.

Return values
NRF_SUCCESSIf NDEF Tag Application was successfully selected.
NRF_ERROR_NOT_FOUNDIf NDEF Tag Application was not found.
NRF_ERROR_NO_MEMIf the APDU buffer is too small.
OtherOther error codes may be returned depending on function adafruit_pn532_in_data_exchange and on APDU reader/writer module functions.
ret_code_t nfc_t4t_ndef_update ( nfc_t4t_capability_container_t *const  p_cc_file,
uint8_t *  p_ndef_file_buff,
uint8_t  ndef_file_buff_len 
)

Function for performing NDEF Update Procedure.

This function performs NDEF Update Procedure according to "Type 4 Tag Operation" (Version 3.0 published on 2014-07-30) chapter 5.5.7.

Parameters
[in]p_cc_filePointer to the Capability Container descriptor.
[in]p_ndef_file_buffPointer to the buffer with NDEF file.
[in]ndef_file_buff_lenLength of the provided NDEF file.
Return values
NRF_SUCCESSIf NDEF file was successfully updated.
NRF_ERROR_NO_MEMIf APDU buffer or NDEF file buffer is too small.
NRF_ERROR_NOT_SUPPORTEDIf the requested response length in C-APDU is too big.
NRF_ERROR_INVALID_DATAIf NDEF file buffer is smaller than NLEN field size.
NRF_ERROR_INVALID_LENGTHIf NLEN value is not coherent with NDEF file buffer length or if buffer length is bigger than maximal file size.
OtherOther error codes may be returned depending on function adafruit_pn532_in_data_exchange, nfc_t4t_file_content_get, and on APDU reader/writer module functions.

Documentation feedback | Developer Zone | Subscribe | Updated