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)

Since:

BlackBerry 10.0.0

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:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function writes a RAW command to an ISO 14443 connection.

Returns:

NFC_RESULT_SUCCESS, or one of the following:

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus