C API for BALTECH SDK
iso78.h File Reference

This command group enables to access ISO 7816 compatible SAM modules attached to the Baltech ID-engine reader. More...

#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Iso78_ErrInvalidSlot   BRP_ERR_STATUS(0x4000, 0x02)
 The specified slot index is not supported. More...
 
#define BRP_Iso78_ErrAbort   BRP_ERR_STATUS(0x4000, 0x10)
 SAM aborted command execution by sending an abort command. More...
 
#define BRP_Iso78_ErrProtNotSupported   BRP_ERR_STATUS(0x4000, 0x20)
 The specified protocol is not supported. More...
 
#define BRP_Iso78_ErrCom   BRP_ERR_STATUS(0x4000, 0x21)
 Communication error. More...
 
#define BRP_Iso78_ErrHw   BRP_ERR_STATUS(0x4000, 0x22)
 Hardware error. More...
 
#define BRP_Iso78_ErrInvalid7816Cmd   BRP_ERR_STATUS(0x4000, 0x31)
 The command/parameter(s) is/are not supported by the SAM. More...
 

Functions

brp_errcode brp_Iso78_SelectSlot (brp_protocol protocol, unsigned SlotIndex)
 This command can be used for readers with more than one SAM slot to switch between the slots. More...
 
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. More...
 
brp_errcode brp_Iso78_CloseSamLegacy (brp_protocol protocol)
 This command closes a communication channel previously opened via the brp_Iso78_OpenSam() command. More...
 
brp_errcode brp_Iso78_ExchangeApduLegacy (brp_protocol protocol, 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. More...
 
brp_errcode brp_Iso78_OpenSam (brp_protocol protocol, brp_Iso78_OpenSam_LID LID, unsigned *SamHandle, brp_buf *ATR, size_t *ATR_len, brp_mempool *mempool)
 This command sets up a communication channel to a Secure Access Module (SAM) inserted into the reader. More...
 
brp_errcode brp_Iso78_CloseSam (brp_protocol protocol, unsigned SamHandle)
 This command closes a communication channel previously opened via the brp_Iso78_OpenSam() command. More...
 
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. More...
 

Detailed Description

This command group enables to access ISO 7816 compatible SAM modules attached to the Baltech ID-engine reader.

It creates a transparent channel to the SAM which can be used in order to exchange APDUs following the ISO 7816-3 standard.

This command group supports multiple SAM slots, which can be switched via the brp_Iso78_SelectSlot() command.

Definition in file iso78.h.