C API for BALTECH SDK

§ brp_Iso78_OpenSamLegacy()

brp_errcode brp_Iso78_OpenSamLegacy ( brp_protocol  protocol,
brp_buf ATR,
size_t *  ATR_len,
brp_mempool mempool 
)

This command sets up a communication channel to the SAM in the currently selected slot.

If Iso78.OpenSAM was executed successfully, brp_Iso78_ExchangeApdu() can then be used to communicate with the SAM.

To close the communication channel after data exchange, the brp_Iso78_CloseSam() command has to be called.

Parameters
[in]protocolused to execute the command
[out]ATRATR (Answer To Reset) string of SAM.
[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
Deprecated:
This command may be removed in future!