C API for BALTECH SDK
iso78.h File Reference
#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Iso78_ErrInvalidSlot   BRP_ERR_STATUS(0x4000, 0x02)
 
#define BRP_Iso78_ErrAbort   BRP_ERR_STATUS(0x4000, 0x10)
 
#define BRP_Iso78_ErrProtNotSupported   BRP_ERR_STATUS(0x4000, 0x20)
 
#define BRP_Iso78_ErrCom   BRP_ERR_STATUS(0x4000, 0x21)
 
#define BRP_Iso78_ErrHw   BRP_ERR_STATUS(0x4000, 0x22)
 
#define BRP_Iso78_ErrInvalid7816Cmd   BRP_ERR_STATUS(0x4000, 0x31)
 

Functions

brp_errcode brp_Iso78_SelectSlot (brp_protocol protocol, unsigned SlotIndex)
 
brp_errcode brp_Iso78_OpenSamLegacy (brp_protocol protocol, brp_buf *ATR, size_t *ATR_len, brp_mempool *mempool)
 
brp_errcode brp_Iso78_CloseSamLegacy (brp_protocol protocol)
 
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)
 
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)
 
brp_errcode brp_Iso78_CloseSam (brp_protocol protocol, unsigned SamHandle)
 
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)
 

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 Iso78.SelectSlot command.

Definition in file iso78.h.