nfc_se_channel_transmit_apdu()

Transmit an Application Data Unit (APDU) command (as per ISO 7816-4) to the secure element.

Synopsis:

#include <nfc/nfc_se_access.h>
 
NFC_API nfc_result_t nfc_se_channel_transmit_apdu(uint32_t hSEChannel, const uint8_t *pSendAPDUBuffer, size_t nLengthOfSendAPDUBufferInBytes, size_t *pnLengthOfResponseInBytes)

Since:

BlackBerry 10.0.0

Arguments:

hSEChannel

The handle to the channel the APDU should be transmitted over.

pSendAPDUBuffer

The APDU to send.

nLengthOfSendAPDUBufferInBytes

The length of the pSendAPDUBuffer.

pnLengthOfResponseInBytes

The length of any response received from the command sent in. Data is retrieved using the nfc_se_channel_get_transmit_data() function.

Library:

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

Description:

The response length is returned. In order to retrieve the data the nfc_se_channel_get_transmit_data() function must be called. If a subsequent call on the same channel is made before a call to the nfc_se_channel_get_transmit_data() function, then the data of the original exchange is lost.

Returns:

NFC_RESULT_SUCCESS if the the APDU is transmitted successfully, or one of the following: