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);
58 #endif // BALTECH_SDK_INTERNAL 59 #ifdef BALTECH_SDK_INTERNAL 65 } brp_Iso78_OpenSamLegacy_t;
77 #ifdef BRP_SUPPORT_LEGACY_METHODS 80 brp_errcode brp_Iso78_OpenSamLegacy(brp_Iso78_OpenSamLegacy_t params);
82 #endif // BALTECH_SDK_INTERNAL 83 #ifdef BALTECH_SDK_INTERNAL 86 } brp_Iso78_CloseSamLegacy_t;
93 #ifdef BRP_SUPPORT_LEGACY_METHODS 96 brp_errcode brp_Iso78_CloseSamLegacy(brp_Iso78_CloseSamLegacy_t params);
98 #endif // BALTECH_SDK_INTERNAL 99 #ifdef BALTECH_SDK_INTERNAL 105 size_t* RecvData_len;
107 } brp_Iso78_ExchangeApduLegacy_t;
119 #ifdef BRP_SUPPORT_LEGACY_METHODS 122 brp_errcode brp_Iso78_ExchangeApduLegacy(brp_Iso78_ExchangeApduLegacy_t params);
124 #endif // BALTECH_SDK_INTERNAL 146 #ifdef BRP_SUPPORT_LEGACY_METHODS 162 #ifdef BRP_SUPPORT_LEGACY_METHODS 188 #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 brp_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.