![]()  | 
     BALTECH Docs | 
    C API for BALTECH SDK
   
    
   
   | 
   
| 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.
| [in] | protocol | used to execute the command | 
| [in] | SamHandle | Identifier for SAM communication (use SAM_Handle value returned by the brp_Iso78_OpenSam() command). | 
| [in] | SendData | APDU command data including CLA, INS, P1, P2, Lc and Le. | 
| [in] | SendData_len | |
| [out] | RecvData | APDU response data. | 
| [out] | RecvData_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 |