nfc_tag_transceive()
Write a command to either an ISO 14443 or an ISO 15693 connection.
Synopsis:
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_tag_transceive(const nfc_target_t *tag, nfc_tag_type_t type, const uchar_t *command, size_t command_length, uchar_t *response, size_t max_response_length, size_t *response_length)
Arguments:
- tag
-
The tag returned from the nfc_get_target() function.
- type
-
The type of tag to write to. This must be either TAG_TYPE_ISO_14443_3 or TAG_TYPE_ISO_15693_3.
- command
-
A pointer to the buffer holding the command to be sent.
- command_length
-
The length of the command buffer.
- response
-
A pointer to a preallocated response buffer.
- max_response_length
-
The length of the preallocated response buffer. The maximum length cannot be larger than the size of NFC_TRANSCEIVE_RESPONSE_MAX_BUFFER_LENGTH.
- response_length
-
The length of the response copied into the response buffer.
Library:
libnfcDescription:
This function writes a command to either an ISO 14443 or an ISO 15693 connection.
Returns:
NFC_RESULT_SUCCESS, or one of the following:
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_SERVICE_CONNECTION_ERROR: The application is not connected to the NFC system.
- NFC_RESULT_OUT_OF_MEMORY: The system memory available for the NFC system to complete this operation is insufficient.
- NFC_RESULT_OPERATION_NOT_SUPPORTED: The operation is not supported.