nfc_se_channel_get_transmit_data()

Retrieve the result of the APDU exchange on a specific channel.

Synopsis:

#include <nfc/nfc_se_access.h>
 
NFC_API nfc_result_t nfc_se_channel_get_transmit_data(uint32_t hSEChannel, uint8_t *pReceiveAPDUBuffer, size_t *pnLengthOfReceiveAPDUBufferInBytes)

Since:

BlackBerry 10.0.0

Arguments:

hSEChannel

The handle to the channel the APDU exchange was completed on.

pReceiveAPDUBuffer

The resulting APDU from the previous APDU exchange.

pnLengthOfReceiveAPDUBufferInBytes

The length of the expected data. If the data requested is greater than the data buffered then this value is modified to reflect the amount of data buffered. More data than available is never returned.

Library:

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

Description:

A call to this method must be made for every call to the nfc_se_channel_transmit_apdu() function. The amount of data returned is the lesser of the buffer size passed in and the data available on this channel. Any leftover data becomes inaccessible.

Returns:

NFC_RESULT_SUCCESS if the the APDU result has been retrieved; or one of the following: