nfc_se_session_get_atr()

Retrieve the Answer to Reset of this secure element.

Synopsis:

#include <nfc/nfc_se_access.h>
 
NFC_API nfc_result_t nfc_se_session_get_atr(uint32_t hSESession, uint8_t *pAtr, size_t nLengthOfAtrInBytes, size_t *pLengthOfReturnedAtrInBytes)

Arguments:

hSESession

The handle to the session you of interest.

pAtr

ATR of the secure element the session is open for.

nLengthOfAtrInBytes

The length of the ATR buffer sent in.

pLengthOfReturnedAtrInBytes

The length of the ATR returned.

Library:

libnfc

Description:

Returns:

NFC_RESULT_SUCCESS if the session is retrieved successfully; or one of the following: