| IDTech Universal SDK 1.0.35.027 API reference for C++

libIDT_Vendi.h
Go to the documentation of this file.
1 #ifndef __LIBIDT_VENDI_H___
2 # define __LIBIDT_VENDI_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 msr_registerCallBk(pMSR_callBack pMSRf);
120
124 void
125 msr_registerCallBkp(pMSR_callBackp pMSRf);
126
130 void
131 ctls_registerCallBk(pMSR_callBack pCTLSf);
132
136 void
137 ctls_registerCallBkp(pMSR_callBackp pCTLSf);
138
142 void
143 pin_registerCallBk(pPIN_callBack pPINf);
144
148 void
149 device_registerCameraCallBk(pCMR_callBack pCMRf);
150
154 void
155 device_registerCardStatusFrontSwitchCallBk(pCSFS_callBack pCSFSf);
156
162 void
163 comm_registerHTTPCallback(httpComm_callBack cBack);
164
170 void
171 comm_registerV4Callback(v4Comm_callBack cBack);
172
177 char *
178 SDK_Version();
179
188 int
189 setAbsoluteLibraryPath(const char * absoluteLibraryPath);
190
198 int
199 device_init();
200
242 int
243 device_setCurrentDevice(int deviceType);
244
251 int
252 device_isAttached(int deviceType);
253
259 int
260 device_close();
261
262
322 void
323 device_getIDGStatusCodeString(IN int returnCode, OUT char * despcrition);
324
325
330 int
331 device_isConnected();
332
343 int
344 device_getFirmwareVersion(OUT char * firmwareVersion);
345
355 int
356 device_getFirmwareVersion_Len(OUT char * firmwareVersion, IN_OUT int * firmwareVersionLen);
357
366 int
367 device_pingDevice();
368
411 int
412 device_controlUserInterface(IN BYTE * values);
413
419 int
420 device_getCurrentDeviceType();
421
422
424 // * Send a Command to device
425 // *
426 // * Sends a command to the device .
427 // *
428 // * @param cmd buffer of command to execute.
429 // * @param cmdLen, the length of the buffer cmd.
430 // *
431 // * @param data buffer of IDG command data.
432 // * @param dataLen, the length of the buffer data.
433 // *
434 // * @param response Response data
435 // * @param respLen, the length of Response data
436 //
437 // * @return RETURN_CODE: Values can be parsed with device_getIDGStatusCodeString()
438 // */
439 //
440 // int device_SendDataCommand(IN BYTE* cmd, IN int cmdLen, IN BYTE* data, IN int dataLen, OUT BYTE* response, IN_OUT int *respLen);
441
458 int
459 device_SendDataCommandNEO(IN int cmd, IN int subCmd, IN BYTE * data, IN int dataLen, OUT BYTE * response,
460 IN_OUT int * respLen);
461
472 int
473 device_enablePassThrough(int enablePassThrough);
474
485 int
486 device_setBurstMode(IN BYTE mode);
487
497 int
498 device_setPollMode(IN BYTE mode);
499
508 int
509 device_getSDKWaitTime();
510
520 void
521 device_setSDKWaitTime(int waitTime);
522
531 int
532 device_getThreadStackSize();
533
541 void
542 device_setThreadStackSize(int threadSize);
543
557 int
558 device_setMerchantRecord(int index, int enabled, char * merchantID, char * merchantURL);
559
581 int
582 device_getMerchantRecord(IN int index,
583 OUT BYTE * record);
584
605 int
606 device_getMerchantRecord_Len(IN int index,
607 OUT BYTE * record, IN_OUT int * recordLen);
608
618 int
619 device_getTransactionResults(IDTMSRData * cardData);
620
631 int
632 config_getSerialNumber(OUT char * sNumber);
633
643 int
644 config_getSerialNumber_Len(OUT char * sNumber, IN_OUT int * sNumberLen);
645
646
704 int
705 ctls_startTransaction(IN double amount, IN double amtOther, IN int type, IN const int _timeout, IN BYTE * tags,
706 IN int tagsLen);
707
708
763 int
764 ctls_activateTransaction(IN const int _timeout, IN BYTE * tags, IN int tagsLen);
765
766
777 int
778 ctls_cancelTransaction();
779
780
793 int
794 ctls_retrieveApplicationData(IN BYTE * AID, IN int AIDLen, OUT BYTE * tlv, IN_OUT int * tlvLen);
795
811 int
812 ctls_setApplicationData(IN BYTE * tlv, IN int tlvLen);
813
823 int
824 ctls_removeApplicationData(IN BYTE * AID, IN int AIDLen);
825
835 int
836 ctls_removeAllApplicationData();
837
849 int
850 ctls_retrieveAIDList(OUT BYTE * AIDList, IN_OUT int * AIDListLen);
851
865 int
866 ctls_retrieveTerminalData(OUT BYTE * tlv, IN_OUT int * tlvLen);
867
882 int
883 ctls_setTerminalData(IN BYTE * tlv, IN int tlvLen);
884
906 int
907 ctls_retrieveCAPK(IN BYTE * capk, IN int capkLen, OUT BYTE * key, IN_OUT int * keyLen);
908
927 int
928 ctls_setCAPK(IN BYTE * capk, IN int capkLen);
929
940 int
941 ctls_removeCAPK(IN BYTE * capk, IN int capkLen);
942
951 int
952 ctls_removeAllCAPK();
953
964 int
965 ctls_retrieveCAPKList(OUT BYTE * keys, IN_OUT int * keysLen);
966
982 int
983 ctls_setConfigurationGroup(IN BYTE * tlv, IN int tlvLen);
984
999 int
1000 ctls_getConfigurationGroup(IN int group, OUT BYTE * tlv, OUT int * tlvLen);
1001
1014 int
1015 ctls_getAllConfigurationGroups(OUT BYTE * tlv, IN_OUT int * tlvLen);
1016
1027 int
1028 ctls_removeConfigurationGroup(int group);
1029
1035 int
1036 msr_cancelMSRSwipe();
1037
1045 int
1046 msr_startMSRSwipe(IN int _timeout);
1047
1048
1055 void
1056 parseMSRData(IN BYTE * resData, IN int resLen, IN_OUT IDTMSRData * cardData);
1057
1058 # ifdef __cplusplus
1059 }
1060 # endif
1061
1062
1063 #endif // ifndef __LIBIDT_VENDI_H___
1064
device_pingDevice
int device_pingDevice()
v4Comm_callBack
void(* v4Comm_callBack)(BYTE, BYTE, BYTE *, int)
Definition: libIDT_Vendi.h:90
device_init
int device_init()
pMSR_callBackp
void(* pMSR_callBackp)(int, IDTMSRData *)
Definition: libIDT_Vendi.h:45
ctls_setCAPK
int ctls_setCAPK(IN BYTE *capk, IN int capkLen)
device_registerCardStatusFrontSwitchCallBk
void device_registerCardStatusFrontSwitchCallBk(pCSFS_callBack pCSFSf)
device_isConnected
int device_isConnected()
device_setBurstMode
int device_setBurstMode(IN BYTE mode)
ctls_removeCAPK
int ctls_removeCAPK(IN BYTE *capk, IN int capkLen)
OUT
#define OUT
ctls_retrieveTerminalData
int ctls_retrieveTerminalData(OUT BYTE *tlv, IN_OUT int *tlvLen)
device_getMerchantRecord
int device_getMerchantRecord(IN int index, OUT BYTE *record)
IN_OUT
#define IN_OUT
pCMR_callBack
void(* pCMR_callBack)(int, IDTCMRData *)
Definition: libIDT_Vendi.h:57
ctls_retrieveAIDList
int ctls_retrieveAIDList(OUT BYTE *AIDList, IN_OUT int *AIDListLen)
ctls_cancelTransaction
int ctls_cancelTransaction()
device_registerCameraCallBk
void device_registerCameraCallBk(pCMR_callBack pCMRf)
ctls_retrieveApplicationData
int ctls_retrieveApplicationData(IN BYTE *AID, IN int AIDLen, OUT BYTE *tlv, IN_OUT int *tlvLen)
pCSFS_callBack
void(* pCSFS_callBack)(BYTE status)
Definition: libIDT_Vendi.h:63
comm_registerHTTPCallback
void comm_registerHTTPCallback(httpComm_callBack cBack)
pReadDataLog
void(* pReadDataLog)(BYTE *, int)
Definition: libIDT_Vendi.h:27
ctls_registerCallBkp
void ctls_registerCallBkp(pMSR_callBackp pCTLSf)
device_setMerchantRecord
int device_setMerchantRecord(int index, int enabled, char *merchantID, char *merchantURL)
ctls_registerCallBk
void ctls_registerCallBk(pMSR_callBack pCTLSf)
device_getIDGStatusCodeString
void device_getIDGStatusCodeString(IN int returnCode, OUT char *despcrition)
config_getSerialNumber
int config_getSerialNumber(OUT char *sNumber)
setAbsoluteLibraryPath
int setAbsoluteLibraryPath(const char *absoluteLibraryPath)
msr_registerCallBk
void msr_registerCallBk(pMSR_callBack pMSRf)
device_setThreadStackSize
void device_setThreadStackSize(int threadSize)
pin_registerCallBk
void pin_registerCallBk(pPIN_callBack pPINf)
device_setPollMode
int device_setPollMode(IN BYTE mode)
parseMSRData
void parseMSRData(IN BYTE *resData, IN int resLen, IN_OUT IDTMSRData *cardData)
msr_cancelMSRSwipe
int msr_cancelMSRSwipe()
device_isAttached
int device_isAttached(int deviceType)
device_getSDKWaitTime
int device_getSDKWaitTime()
pEMV_callBack
void(* pEMV_callBack)(int, int, BYTE *, int, IDTTransactionData *, EMV_Callback *, int)
Definition: libIDT_Vendi.h:33
ctls_startTransaction
int ctls_startTransaction(IN double amount, IN double amtOther, IN int type, IN const int _timeout, IN BYTE *tags, IN int tagsLen)
ctls_getConfigurationGroup
int ctls_getConfigurationGroup(IN int group, OUT BYTE *tlv, OUT int *tlvLen)
ctls_removeAllApplicationData
int ctls_removeAllApplicationData()
SDK_Version
char * SDK_Version()
pSendDataLog
void(* pSendDataLog)(BYTE *, int)
Definition: libIDT_Vendi.h:21
device_getFirmwareVersion
int device_getFirmwareVersion(OUT char *firmwareVersion)
ctls_retrieveCAPKList
int ctls_retrieveCAPKList(OUT BYTE *keys, IN_OUT int *keysLen)
device_setCurrentDevice
int device_setCurrentDevice(int deviceType)
ctls_removeApplicationData
int ctls_removeApplicationData(IN BYTE *AID, IN int AIDLen)
ftpComm_callBack
void(* ftpComm_callBack)(int, int, int)
Definition: libIDT_Vendi.h:76
device_getFirmwareVersion_Len
int device_getFirmwareVersion_Len(OUT char *firmwareVersion, IN_OUT int *firmwareVersionLen)
device_setSDKWaitTime
void device_setSDKWaitTime(int waitTime)
ctls_retrieveCAPK
int ctls_retrieveCAPK(IN BYTE *capk, IN int capkLen, OUT BYTE *key, IN_OUT int *keyLen)
pPIN_callBack
void(* pPIN_callBack)(int, IDTPINData *)
Definition: libIDT_Vendi.h:51
pMSR_callBack
void(* pMSR_callBack)(int, IDTMSRData)
Definition: libIDT_Vendi.h:39
emv_registerCallBk
void emv_registerCallBk(pEMV_callBack pEMVf)
device_close
int device_close()
registerHotplugCallBk
void registerHotplugCallBk(pMessageHotplug pMsgHotplug)
pMessageHotplug
void(* pMessageHotplug)(int, int)
Definition: libIDT_Vendi.h:15
ctls_removeAllCAPK
int ctls_removeAllCAPK()
device_getMerchantRecord_Len
int device_getMerchantRecord_Len(IN int index, OUT BYTE *record, IN_OUT int *recordLen)
comm_registerV4Callback
void comm_registerV4Callback(v4Comm_callBack cBack)
device_getThreadStackSize
int device_getThreadStackSize()
ctls_activateTransaction
int ctls_activateTransaction(IN const int _timeout, IN BYTE *tags, IN int tagsLen)
msr_registerCallBkp
void msr_registerCallBkp(pMSR_callBackp pMSRf)
config_getSerialNumber_Len
int config_getSerialNumber_Len(OUT char *sNumber, IN_OUT int *sNumberLen)
IN
#define IN
ctls_setTerminalData
int ctls_setTerminalData(IN BYTE *tlv, IN int tlvLen)
ctls_setConfigurationGroup
int ctls_setConfigurationGroup(IN BYTE *tlv, IN int tlvLen)
device_getCurrentDeviceType
int device_getCurrentDeviceType()
ctls_setApplicationData
int ctls_setApplicationData(IN BYTE *tlv, IN int tlvLen)
device_getTransactionResults
int device_getTransactionResults(IDTMSRData *cardData)
ctls_removeConfigurationGroup
int ctls_removeConfigurationGroup(int group)
device_controlUserInterface
int device_controlUserInterface(IN BYTE *values)
msr_startMSRSwipe
int msr_startMSRSwipe(IN int _timeout)
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_getAllConfigurationGroups
int ctls_getAllConfigurationGroups(OUT BYTE *tlv, IN_OUT int *tlvLen)
httpComm_callBack
void(* httpComm_callBack)(BYTE *, int)
Definition: libIDT_Vendi.h:82
device_enablePassThrough
int device_enablePassThrough(int enablePassThrough)
registerLogCallBk
void registerLogCallBk(pSendDataLog pFSend, pReadDataLog pFRead)