nfc_tag_transceive_raw()
Write a RAW command to an ISO 14443 connection.
Synopsis:
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_tag_transceive_raw(const nfc_target_t *tag, const uchar_t *command, size_t command_length_in_bits, uchar_t *response, size_t max_response_length_in_bytes, size_t expected_response_length_in_bits, size_t *response_length_in_bits)
Arguments:
- tag
-
The tag returned from the nfc_get_target() function.
- command
-
A pointer to the buffer holding the command to be sent.
- command_length_in_bits
-
The length of the command in bits.
- response
-
A pointer to the response buffer.
- max_response_length_in_bytes
-
The length of the response buffer. The maximum length cannot be larger than the size of NFC_TRANSCEIVE_RESPONSE_MAX_BUFFER_LENGTH.
- expected_response_length_in_bits
-
The expected length of the response buffer in bits. This value must be set to 0 if expected response is longer then 8 bits.
- response_length_in_bits
-
The actual length of the response in bits.
Library:
libnfcDescription:
This function writes a RAW command to an ISO 14443 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 by the target.