BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_VHL_GetATR | ( | brp_protocol | protocol, |
brp_buf * | ATR, | ||
size_t * | ATR_len, | ||
brp_mempool * | mempool | ||
) |
This command returns the Answer to Reset (ATR) of the currently selected card as defined in the PC/SC specification, version 2.
If brp_VHL_Select() hasn't been executed successfully before, the BRP_VHL_ErrCardNotSelected status code will be returned. If the last selected card is no longer available in the antenna field, or a read/write operation failed previous to this command, the returned ATR is undefined.
[in] | protocol | used to execute the command |
[out] | ATR | ATR value in standardized format |
[out] | ATR_len | |
[in] | mempool | is used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool |