C API for BALTECH SDK

§ brp_VHL_GetATR()

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.

Parameters
[in]protocolused to execute the command
[out]ATRATR value in standardized format
[out]ATR_len
[in]mempoolis 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