BALTECH SDK wrapper functions reference
iso14ce.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_SDK_CMDS_ISO14CE_H__
11 #define __BRP_BALTECH_SDK_CMDS_ISO14CE_H__
12 #include "../typedefs.h"
13 #ifdef BALTECH_SDK_INTERNAL
14 
19 #define BRP_Iso14CE_ErrIso144State BRP_ERR_STATUS(0x4A00, 0x01)
20 #endif // BALTECH_SDK_INTERNAL
21 #ifdef BALTECH_SDK_INTERNAL
22 
25 #define BRP_Iso14CE_ErrCom BRP_ERR_STATUS(0x4A00, 0x02)
26 #endif // BALTECH_SDK_INTERNAL
27 #ifdef BALTECH_SDK_INTERNAL
28 
31 #define BRP_Iso14CE_ErrTransmission BRP_ERR_STATUS(0x4A00, 0x03)
32 #endif // BALTECH_SDK_INTERNAL
33 #ifdef BALTECH_SDK_INTERNAL
34 
37 #define BRP_Iso14CE_ErrTimeout BRP_ERR_STATUS(0x4A00, 0x04)
38 #endif // BALTECH_SDK_INTERNAL
39 #ifdef BALTECH_SDK_INTERNAL
40 
43 #define BRP_Iso14CE_ErrOverflow BRP_ERR_STATUS(0x4A00, 0x05)
44 #endif // BALTECH_SDK_INTERNAL
45 #ifdef BALTECH_SDK_INTERNAL
46 
49 #define BRP_Iso14CE_ErrInternal BRP_ERR_STATUS(0x4A00, 0x06)
50 #endif // BALTECH_SDK_INTERNAL
51 #ifdef BALTECH_SDK_INTERNAL
52 
55 #define BRP_Iso14CE_ErrDeselect BRP_ERR_STATUS(0x4A00, 0x07)
56 #endif // BALTECH_SDK_INTERNAL
57 #ifdef BALTECH_SDK_INTERNAL
58 typedef struct {
59  brp_protocol protocol;
60  bool SpecifyTimeoutApdu;
61  bool AutoWTX;
62  unsigned ATQA;
63  brp_buf Snr;
64  bool DSEqualToDR;
65  bool DS8;
66  bool DS4;
67  bool DS2;
68  bool DR8;
69  bool DR4;
70  bool DR2;
71  unsigned FWT;
72  unsigned TimeoutPCD;
73  unsigned TimeoutApdu;
74  brp_buf ATS;
75  size_t ATS_len;
76  brp_buf* FirstCmd;
77  size_t* FirstCmd_len;
78  brp_mempool *mempool;
79 } brp_Iso14CE_ActivateCardAPDU_t;
124 #ifdef BRP_SUPPORT_LEGACY_METHODS
125 brp_errcode brp_Iso14CE_ActivateCardAPDU(brp_protocol protocol, bool _input_SpecifyTimeoutApdu, bool _input_AutoWTX, unsigned _input_ATQA, brp_buf _input_Snr, bool _input_DSEqualToDR, bool _input_DS8, bool _input_DS4, bool _input_DS2, bool _input_DR8, bool _input_DR4, bool _input_DR2, unsigned _input_FWT, unsigned _input_TimeoutPCD, unsigned _input_TimeoutApdu, brp_buf _input_ATS, size_t _input_ATS_len, brp_buf* FirstCmd, size_t* FirstCmd_len, brp_mempool *mempool);
126 #else
127 brp_errcode brp_Iso14CE_ActivateCardAPDU(brp_Iso14CE_ActivateCardAPDU_t params);
128 #endif
129 typedef struct {
130  brp_protocol protocol;
131  brp_buf Rsp;
132  size_t Rsp_len;
133  unsigned Timeout;
134  brp_buf* Cmd;
135  size_t* Cmd_len;
136  brp_mempool *mempool;
137 } brp_Iso14CE_ExchangeCardAPDU_t;
156 #ifdef BRP_SUPPORT_LEGACY_METHODS
157 brp_errcode brp_Iso14CE_ExchangeCardAPDU(brp_protocol protocol, brp_buf _input_Rsp, size_t _input_Rsp_len, unsigned _input_Timeout, brp_buf* Cmd, size_t* Cmd_len, brp_mempool *mempool);
158 #else
159 brp_errcode brp_Iso14CE_ExchangeCardAPDU(brp_Iso14CE_ExchangeCardAPDU_t params);
160 #endif
161 typedef struct {
162  brp_protocol protocol;
163  unsigned WaitingTimeout;
164  unsigned WTXM;
165  unsigned RefreshTimeRatio;
166 } brp_Iso14CE_ExtendWaitingTime_t;
188 #ifdef BRP_SUPPORT_LEGACY_METHODS
189 brp_errcode brp_Iso14CE_ExtendWaitingTime(brp_protocol protocol, unsigned _input_WaitingTimeout, unsigned _input_WTXM, unsigned _input_RefreshTimeRatio);
190 #else
191 brp_errcode brp_Iso14CE_ExtendWaitingTime(brp_Iso14CE_ExtendWaitingTime_t params);
192 #endif
193 typedef struct {
194  brp_protocol protocol;
195  unsigned* ExtFieldStat;
196 } brp_Iso14CE_GetExternalHfStatus_t;
204 #ifdef BRP_SUPPORT_LEGACY_METHODS
205 brp_errcode brp_Iso14CE_GetExternalHfStatus(brp_protocol protocol, unsigned* ExtFieldStat);
206 #else
207 brp_errcode brp_Iso14CE_GetExternalHfStatus(brp_Iso14CE_GetExternalHfStatus_t params);
208 #endif
209 #endif // BALTECH_SDK_INTERNAL
210 #endif
211 
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:29
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61