High-level NDEF Detection Procedure for Type 4 Tag communication.
More...
High-level NDEF Detection Procedure for Type 4 Tag communication.
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_file | Pointer to the Capability Container descriptor. |
- Return values
-
NRF_SUCCESS | If Capability Container file was successfully read. |
NRF_ERROR_NO_MEM | If APDU buffer or CC file storage buffer is too small. |
NRF_ERROR_NOT_SUPPORTED | If the requested response length in C-APDU is too big. |
NRF_ERROR_NULL | If R-APDU did not return any data bytes. |
NRF_ERROR_INVALID_DATA | If CCLEN field is not coherent with R-APDU data length. |
Other | Other 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. |
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_SUCCESS | If the Capability Container file was successfully selected. |
NRF_ERROR_NOT_FOUND | If the Capability Container file was not found. |
NRF_ERROR_NO_MEM | If the APDU buffer is too small. |
Other | Other 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_id | File Identifier to choose the correct file. |
- Return values
-
NRF_SUCCESS | If NDEF file was successfully selected. |
NRF_ERROR_NOT_FOUND | If NDEF file was not found. |
NRF_ERROR_NO_MEM | If APDU buffer is too small. |
Other | Other error codes may be returned depending on function adafruit_pn532_in_data_exchange and on APDU reader/writer module functions. |
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_file | Pointer to the Capability Container descriptor. |
[out] | p_ndef_file_buff | Pointer to the buffer where the NDEF file will be stored. |
[in] | ndef_file_buff_len | Length of the provided NDEF file buffer. |
- Return values
-
NRF_SUCCESS | If NDEF file was successfully read. |
NRF_ERROR_NO_MEM | If APDU buffer or NDEF file buffer is too small. |
NRF_ERROR_NOT_SUPPORTED | If requested response length in C-APDU is too big. |
NRF_ERROR_NULL | If R-APDU did not return any data bytes. |
NRF_ERROR_INVALID_DATA | If NLEN field is not coherent with R-APDU data length. |
Other | Other 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. |
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_SUCCESS | If NDEF Tag Application was successfully selected. |
NRF_ERROR_NOT_FOUND | If NDEF Tag Application was not found. |
NRF_ERROR_NO_MEM | If the APDU buffer is too small. |
Other | Other error codes may be returned depending on function adafruit_pn532_in_data_exchange and on APDU reader/writer module functions. |
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_file | Pointer to the Capability Container descriptor. |
[in] | p_ndef_file_buff | Pointer to the buffer with NDEF file. |
[in] | ndef_file_buff_len | Length of the provided NDEF file. |
- Return values
-
NRF_SUCCESS | If NDEF file was successfully updated. |
NRF_ERROR_NO_MEM | If APDU buffer or NDEF file buffer is too small. |
NRF_ERROR_NOT_SUPPORTED | If the requested response length in C-APDU is too big. |
NRF_ERROR_INVALID_DATA | If NDEF file buffer is smaller than NLEN field size. |
NRF_ERROR_INVALID_LENGTH | If NLEN value is not coherent with NDEF file buffer length or if buffer length is bigger than maximal file size. |
Other | Other 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. |