C API for BALTECH SDK

§ brp_Iso78_ExchangeApdu()

brp_errcode brp_Iso78_ExchangeApdu ( brp_protocol  protocol,
unsigned  SamHandle,
brp_buf  SendData,
size_t  SendData_len,
brp_buf RecvData,
size_t *  RecvData_len,
brp_mempool mempool 
)

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]protocolused to execute the command
[in]SamHandleIdentifier for SAM communication (use SAM_Handle value returned by the brp_Iso78_OpenSam() command).
[in]SendDataAPDU command data including CLA, INS, P1, P2, Lc and Le.
[in]SendData_len
[out]RecvDataAPDU response data.
[out]RecvData_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