| IDTech Universal SDK 1.0.35.027 API reference for C++

libIDT_PipReader.h
Go to the documentation of this file.
1 #ifndef __LIBIDT_PIP_READER_H___
2 # define __LIBIDT_PIP_READER_H___
3
4
5 # define IN
6 # define OUT
7 # define IN_OUT
8 # include "IDTDef.h"
9
15 typedef void (* pMessageHotplug)(int, int);
16
21 typedef void (* pSendDataLog)(BYTE *, int);
22
27 typedef void (* pReadDataLog)(BYTE *, int);
28
33 typedef void (* pEMV_callBack)(int, int, BYTE *, int, IDTTransactionData *, EMV_Callback *, int);
34
39 typedef void (* pMSR_callBack)(int, IDTMSRData);
40
45 typedef void (* pMSR_callBackp)(int, IDTMSRData *);
46
51 typedef void (* pPIN_callBack)(int, IDTPINData *);
52
57 typedef void (* pCMR_callBack)(int, IDTCMRData *);
58
63 typedef void (* pCSFS_callBack)(BYTE status);
64
76 typedef void (* ftpComm_callBack)(int, int, int);
77
82 typedef void (* httpComm_callBack)(BYTE *, int);
83
90 typedef void (* v4Comm_callBack)(BYTE, BYTE, BYTE *, int);
91
92
93 # ifdef __cplusplus
94 extern "C" {
95 # endif
96
100 void
101 registerHotplugCallBk(pMessageHotplug pMsgHotplug);
102
106 void
107 registerLogCallBk(pSendDataLog pFSend, pReadDataLog pFRead);
108
112 void
113 emv_registerCallBk(pEMV_callBack pEMVf);
114
118 void
119 ctls_registerCallBk(pMSR_callBack pCTLSf);
120
124 void
125 ctls_registerCallBkp(pMSR_callBackp pCTLSf);
126
130 void
131 pin_registerCallBk(pPIN_callBack pPINf);
132
136 void
137 device_registerCameraCallBk(pCMR_callBack pCMRf);
138
142 void
143 device_registerCardStatusFrontSwitchCallBk(pCSFS_callBack pCSFSf);
144
149 char *
150 SDK_Version();
151
160 int
161 setAbsoluteLibraryPath(const char * absoluteLibraryPath);
162
170 int
171 device_init();
172
223 int
224 rs232_device_init(int deviceType, int port_number, int brate);
225
267 int
268 device_setCurrentDevice(int deviceType);
269
270
276 int
277 device_close();
278
279
339 void
340 device_getIDGStatusCodeString(IN int returnCode, OUT char * despcrition);
341
342
347 int
348 device_isConnected();
349
356 int
357 device_isAttached(int deviceType);
358
369 int
370 device_getFirmwareVersion(OUT char * firmwareVersion);
371
381 int
382 device_getFirmwareVersion_Len(OUT char * firmwareVersion, IN_OUT int * firmwareVersionLen);
383
392 int
393 device_pingDevice();
394
437 int
438 device_controlUserInterface(IN BYTE * values);
439
445 int
446 device_getCurrentDeviceType();
447
448
465 int
466 device_SendDataCommandNEO(IN int cmd, IN int subCmd, IN BYTE * data, IN int dataLen, OUT BYTE * response,
467 IN_OUT int * respLen);
468
479 int
480 device_enablePassThrough(int enablePassThrough);
481
492 int
493 device_setBurstMode(IN BYTE mode);
494
504 int
505 device_setPollMode(IN BYTE mode);
506
520 int
521 device_setMerchantRecord(int index, int enabled, char * merchantID, char * merchantURL);
522
532 int
533 device_getTransactionResults(IDTMSRData * cardData);
534
556 int
557 device_getMerchantRecord(IN int index,
558 OUT BYTE * record);
559
580 int
581 device_getMerchantRecord_Len(IN int index,
582 OUT BYTE * record, IN_OUT int * recordLen);
583
592 int
593 device_getSDKWaitTime();
594
604 void
605 device_setSDKWaitTime(int waitTime);
606
617 int
618 config_getSerialNumber(OUT char * sNumber);
619
629 int
630 config_getSerialNumber_Len(OUT char * sNumber, IN_OUT int * sNumberLen);
631
632
690 int
691 ctls_startTransaction(IN double amount, IN double amtOther, IN int type, IN const int _timeout, IN BYTE * tags,
692 IN int tagsLen);
693
694
749 int
750 ctls_activateTransaction(IN const int _timeout, IN BYTE * tags, IN int tagsLen);
751
752
763 int
764 ctls_cancelTransaction();
765
766
779 int
780 ctls_retrieveApplicationData(IN BYTE * AID, IN int AIDLen, OUT BYTE * tlv, IN_OUT int * tlvLen);
781
797 int
798 ctls_setApplicationData(IN BYTE * tlv, IN int tlvLen);
799
809 int
810 ctls_removeApplicationData(IN BYTE * AID, IN int AIDLen);
811
821 int
822 ctls_removeAllApplicationData();
823
835 int
836 ctls_retrieveAIDList(OUT BYTE * AIDList, IN_OUT int * AIDListLen);
837
851 int
852 ctls_retrieveTerminalData(OUT BYTE * tlv, IN_OUT int * tlvLen);
853
868 int
869 ctls_setTerminalData(IN BYTE * tlv, IN int tlvLen);
870
892 int
893 ctls_retrieveCAPK(IN BYTE * capk, IN int capkLen, OUT BYTE * key, IN_OUT int * keyLen);
894
913 int
914 ctls_setCAPK(IN BYTE * capk, IN int capkLen);
915
926 int
927 ctls_removeCAPK(IN BYTE * capk, IN int capkLen);
928
937 int
938 ctls_removeAllCAPK();
939
950 int
951 ctls_retrieveCAPKList(OUT BYTE * keys, IN_OUT int * keysLen);
952
968 int
969 ctls_setConfigurationGroup(IN BYTE * tlv, IN int tlvLen);
970
985 int
986 ctls_getConfigurationGroup(IN int group, OUT BYTE * tlv, OUT int * tlvLen);
987
1000 int
1001 ctls_getAllConfigurationGroups(OUT BYTE * tlv, IN_OUT int * tlvLen);
1002
1013 int
1014 ctls_removeConfigurationGroup(int group);
1015
1022 void
1023 parseMSRData(IN BYTE * resData, IN int resLen, IN_OUT IDTMSRData * cardData);
1024
1025 # ifdef __cplusplus
1026 }
1027 # endif
1028
1029
1030 #endif // ifndef __LIBIDT_PIP_READER_H___
1031
IN
#define IN
ctls_removeAllApplicationData
int ctls_removeAllApplicationData()
device_controlUserInterface
int device_controlUserInterface(IN BYTE *values)
ctls_retrieveCAPKList
int ctls_retrieveCAPKList(OUT BYTE *keys, IN_OUT int *keysLen)
v4Comm_callBack
void(* v4Comm_callBack)(BYTE, BYTE, BYTE *, int)
Definition: libIDT_PipReader.h:90
device_pingDevice
int device_pingDevice()
device_setCurrentDevice
int device_setCurrentDevice(int deviceType)
device_SendDataCommandNEO
int device_SendDataCommandNEO(IN int cmd, IN int subCmd, IN BYTE *data, IN int dataLen, OUT BYTE *response, IN_OUT int *respLen)
ctls_setApplicationData
int ctls_setApplicationData(IN BYTE *tlv, IN int tlvLen)
ctls_getConfigurationGroup
int ctls_getConfigurationGroup(IN int group, OUT BYTE *tlv, OUT int *tlvLen)
device_getMerchantRecord_Len
int device_getMerchantRecord_Len(IN int index, OUT BYTE *record, IN_OUT int *recordLen)
ctls_setTerminalData
int ctls_setTerminalData(IN BYTE *tlv, IN int tlvLen)
httpComm_callBack
void(* httpComm_callBack)(BYTE *, int)
Definition: libIDT_PipReader.h:82
device_getCurrentDeviceType
int device_getCurrentDeviceType()
registerHotplugCallBk
void registerHotplugCallBk(pMessageHotplug pMsgHotplug)
ctls_removeConfigurationGroup
int ctls_removeConfigurationGroup(int group)
device_enablePassThrough
int device_enablePassThrough(int enablePassThrough)
pPIN_callBack
void(* pPIN_callBack)(int, IDTPINData *)
Definition: libIDT_PipReader.h:51
registerLogCallBk
void registerLogCallBk(pSendDataLog pFSend, pReadDataLog pFRead)
config_getSerialNumber_Len
int config_getSerialNumber_Len(OUT char *sNumber, IN_OUT int *sNumberLen)
IN_OUT
#define IN_OUT
pCMR_callBack
void(* pCMR_callBack)(int, IDTCMRData *)
Definition: libIDT_PipReader.h:57
pEMV_callBack
void(* pEMV_callBack)(int, int, BYTE *, int, IDTTransactionData *, EMV_Callback *, int)
Definition: libIDT_PipReader.h:33
device_getMerchantRecord
int device_getMerchantRecord(IN int index, OUT BYTE *record)
device_setSDKWaitTime
void device_setSDKWaitTime(int waitTime)
ctls_setCAPK
int ctls_setCAPK(IN BYTE *capk, IN int capkLen)
device_setPollMode
int device_setPollMode(IN BYTE mode)
pSendDataLog
void(* pSendDataLog)(BYTE *, int)
Definition: libIDT_PipReader.h:21
device_registerCardStatusFrontSwitchCallBk
void device_registerCardStatusFrontSwitchCallBk(pCSFS_callBack pCSFSf)
rs232_device_init
int rs232_device_init(int deviceType, int port_number, int brate)
pin_registerCallBk
void pin_registerCallBk(pPIN_callBack pPINf)
ctls_registerCallBk
void ctls_registerCallBk(pMSR_callBack pCTLSf)
ctls_removeCAPK
int ctls_removeCAPK(IN BYTE *capk, IN int capkLen)
device_getSDKWaitTime
int device_getSDKWaitTime()
ctls_removeAllCAPK
int ctls_removeAllCAPK()
OUT
#define OUT
device_getTransactionResults
int device_getTransactionResults(IDTMSRData *cardData)
device_isConnected
int device_isConnected()
ctls_getAllConfigurationGroups
int ctls_getAllConfigurationGroups(OUT BYTE *tlv, IN_OUT int *tlvLen)
ftpComm_callBack
void(* ftpComm_callBack)(int, int, int)
Definition: libIDT_PipReader.h:76
ctls_cancelTransaction
int ctls_cancelTransaction()
device_registerCameraCallBk
void device_registerCameraCallBk(pCMR_callBack pCMRf)
device_setBurstMode
int device_setBurstMode(IN BYTE mode)
setAbsoluteLibraryPath
int setAbsoluteLibraryPath(const char *absoluteLibraryPath)
pMessageHotplug
void(* pMessageHotplug)(int, int)
Definition: libIDT_PipReader.h:15
device_init
int device_init()
ctls_registerCallBkp
void ctls_registerCallBkp(pMSR_callBackp pCTLSf)
pMSR_callBack
void(* pMSR_callBack)(int, IDTMSRData)
Definition: libIDT_PipReader.h:39
ctls_activateTransaction
int ctls_activateTransaction(IN const int _timeout, IN BYTE *tags, IN int tagsLen)
ctls_retrieveCAPK
int ctls_retrieveCAPK(IN BYTE *capk, IN int capkLen, OUT BYTE *key, IN_OUT int *keyLen)
ctls_retrieveTerminalData
int ctls_retrieveTerminalData(OUT BYTE *tlv, IN_OUT int *tlvLen)
ctls_startTransaction
int ctls_startTransaction(IN double amount, IN double amtOther, IN int type, IN const int _timeout, IN BYTE *tags, IN int tagsLen)
device_getFirmwareVersion
int device_getFirmwareVersion(OUT char *firmwareVersion)
emv_registerCallBk
void emv_registerCallBk(pEMV_callBack pEMVf)
ctls_retrieveApplicationData
int ctls_retrieveApplicationData(IN BYTE *AID, IN int AIDLen, OUT BYTE *tlv, IN_OUT int *tlvLen)
device_getFirmwareVersion_Len
int device_getFirmwareVersion_Len(OUT char *firmwareVersion, IN_OUT int *firmwareVersionLen)
ctls_setConfigurationGroup
int ctls_setConfigurationGroup(IN BYTE *tlv, IN int tlvLen)
device_getIDGStatusCodeString
void device_getIDGStatusCodeString(IN int returnCode, OUT char *despcrition)
device_close
int device_close()
ctls_retrieveAIDList
int ctls_retrieveAIDList(OUT BYTE *AIDList, IN_OUT int *AIDListLen)
parseMSRData
void parseMSRData(IN BYTE *resData, IN int resLen, IN_OUT IDTMSRData *cardData)
config_getSerialNumber
int config_getSerialNumber(OUT char *sNumber)
pMSR_callBackp
void(* pMSR_callBackp)(int, IDTMSRData *)
Definition: libIDT_PipReader.h:45
pCSFS_callBack
void(* pCSFS_callBack)(BYTE status)
Definition: libIDT_PipReader.h:63
SDK_Version
char * SDK_Version()
device_isAttached
int device_isAttached(int deviceType)
pReadDataLog
void(* pReadDataLog)(BYTE *, int)
Definition: libIDT_PipReader.h:27
device_setMerchantRecord
int device_setMerchantRecord(int index, int enabled, char *merchantID, char *merchantURL)
ctls_removeApplicationData
int ctls_removeApplicationData(IN BYTE *AID, IN int AIDLen)