Write a RAW command to an ISO 14443 connection.
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)
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 in bits.
A pointer to the response buffer.
The length of the response buffer. The maximum length cannot be larger than the size of NFC_TRANSCEIVE_RESPONSE_MAX_BUFFER_LENGTH.
The expected length of the response buffer in bits. This value must be set to 0 if expected response is longer then 8 bits.
The actual length of the response in bits.
Library:libnfc (For the qcc command, use the -l nfc option to link against this library)
This function writes a RAW command to an ISO 14443 connection.
- 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_TIMEOUT: A timeout occurred during communication with the tag.
- NFC_RESULT_NOT_ENOUGH_SPACE: max_response_length_in_bytes is smaller than the tag's response.
- NFC_RESULT_OPERATION_NOT_SUPPORTED: The target does not support the operation.
Last modified: 2014-05-14