Write a command to either an ISO 14443 or an ISO 15693 connection.
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)
The tag returned from the nfc_get_target() function.
A pointer to the buffer holding the command to be sent.
The length of the command buffer.
A pointer to a preallocated response buffer.
The length of the preallocated response buffer. The maximum length cannot be larger than the size of NFC_TRANSCEIVE_RESPONSE_MAX_BUFFER_LENGTH.
The length of the response copied into the response buffer.
This function writes a command to either an ISO 14443 or an ISO 15693 connection.
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.