12 #ifndef __BRP_BALTECH_SDK_CMDS_ISO78_H__ 13 #define __BRP_BALTECH_SDK_CMDS_ISO78_H__ 14 #include "../typedefs.h" 18 #define BRP_Iso78_ErrInvalidSlot BRP_ERR_STATUS(0x4000, 0x02) 22 #define BRP_Iso78_ErrAbort BRP_ERR_STATUS(0x4000, 0x10) 26 #define BRP_Iso78_ErrProtNotSupported BRP_ERR_STATUS(0x4000, 0x20) 30 #define BRP_Iso78_ErrCom BRP_ERR_STATUS(0x4000, 0x21) 34 #define BRP_Iso78_ErrHw BRP_ERR_STATUS(0x4000, 0x22) 38 #define BRP_Iso78_ErrInvalid7816Cmd BRP_ERR_STATUS(0x4000, 0x31) 39 #ifdef BALTECH_SDK_INTERNAL 43 } brp_Iso78_SelectSlot_t;
53 #ifdef BRP_SUPPORT_LEGACY_METHODS 56 brp_errcode brp_Iso78_SelectSlot(brp_Iso78_SelectSlot_t params);
63 } brp_Iso78_OpenSamLegacy_t;
75 #ifdef BRP_SUPPORT_LEGACY_METHODS 78 brp_errcode brp_Iso78_OpenSamLegacy(brp_Iso78_OpenSamLegacy_t params);
82 } brp_Iso78_CloseSamLegacy_t;
89 #ifdef BRP_SUPPORT_LEGACY_METHODS 92 brp_errcode brp_Iso78_CloseSamLegacy(brp_Iso78_CloseSamLegacy_t params);
101 } brp_Iso78_ExchangeApduLegacy_t;
113 #ifdef BRP_SUPPORT_LEGACY_METHODS 116 brp_errcode brp_Iso78_ExchangeApduLegacy(brp_Iso78_ExchangeApduLegacy_t params);
118 #endif // BALTECH_SDK_INTERNAL 140 #ifdef BRP_SUPPORT_LEGACY_METHODS 156 #ifdef BRP_SUPPORT_LEGACY_METHODS 182 #ifdef BRP_SUPPORT_LEGACY_METHODS brp_Iso78_OpenSam_LID
Logical SAM-ID (LID)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
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...
brp_errcode brp_Iso78_OpenSam(brp_Iso78_OpenSam_t params)
This command sets up a communication channel to a Secure Access Module (SAM) inserted into the reader...
brp_errcode brp_Iso78_CloseSam(brp_Iso78_CloseSam_t params)
This command closes a communication channel previously opened via the Iso78.OpenSam command...
brp_Iso78_OpenSam_LID LID
struct brp_mempool_object_t * brp_mempool
mempool handle.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.