BALTECH Docs |
C API for BALTECH SDK
|
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.
[in] | protocol | used to execute the command |
[out] | ATR | ATR (Answer To Reset) string of SAM. |
[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 |