BALTECH SDK wrapper functions reference

§ brp_VHL_GetATR()

brp_errcode brp_VHL_GetATR ( brp_VHL_GetATR_t  params)

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]paramsStruct with the following fields:
  • protocol used to execute the command
  • ATR (out) ATR value in standardized format
  • ATR_len (out) Length of ATR (in bytes).
  • mempool (in) 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