BALTECH SDK wrapper functions reference

§ brp_Iso78_OpenSam()

brp_errcode brp_Iso78_OpenSam ( brp_Iso78_OpenSam_t  params)

This command sets up a communication channel to a Secure Access Module (SAM) inserted into the reader.

To select the SAM, you specify it using the LID parameter as described below. Once you've run this command successfully, you can run brp_Iso78_ExchangeApdu() to communicate with the SAM.

To close the communication channel after data exchange, run brp_Iso78_CloseSam().

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • LID (in) Logical SAM-ID (LID)
  • SamHandle (out) Identifier for SAM communication. Use this value in all subsequent calls of brp_Iso78_CloseSam() and brp_Iso78_ExchangeApdu().
  • ATR (out) ATR (Answer To Reset) string of SAM
  • 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