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)
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:
libnfcDescription:
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:
- NFC_RESULT_SERVICE_CONNECTION_ERROR: An attempt to connect to the NFC system has failed.
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_SE_INVALID_HANDLE: The hSEchannel is invalid.