BALTECH SDK wrapper functions reference

§ brp_Iso78_ExchangeApdu()

brp_errcode brp_Iso78_ExchangeApdu ( brp_Iso78_ExchangeApdu_t  params)

This command sends an APDU command on the currently selected and opened SAM module using a logical ID.

Please note that the complete APDU command including the CLA, INS, P1, P2, Lc and Le values need part of the SendData parameter.

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • SamHandle (in) Identifier for SAM communication (use SAM_Handle value returned by the brp_Iso78_OpenSam() command).
  • SendData (in) APDU command data including CLA, INS, P1, P2, Lc and Le.
  • SendData_len (in) Length of SendData (in bytes).
  • RecvData (out) APDU response data.
  • RecvData_len (out) Length of RecvData (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