| IDTech Universal SDK 1.0.35.027 API reference for C++

libIDT_SREDKey2.h
Go to the documentation of this file.
1 #ifndef __LIBIDT_SREDKEY2_H___
2 # define __LIBIDT_SREDKEY2_H___
3
4
5 # define IN
6 # define OUT
7 # define IN_OUT
8 # include "IDTDef.h"
9
17 typedef void (* pMessageHotplug)(int,
18 int);
19
25 typedef void (* pSendDataLog)(BYTE *,
26 int);
27
33 typedef void (* pReadDataLog)(BYTE *,
34 int);
35
41 typedef void (* pEMV_callBack)(int,
42 int,
43 BYTE *,
44 int,
45 IDTTransactionData *,
46 EMV_Callback *,
47 int);
48
54 typedef void (* pFW_callBack)(int,
55 int,
56 int,
57 int,
58 int);
59
64 typedef void (* pMSR_callBack)(int, IDTMSRData);
65
70 typedef void (* pMSR_callBackp)(int, IDTMSRData *);
71
76 typedef void (* pPIN_callBack)(int,
77 IDTPINData *);
78
83 typedef void (* pCMR_callBack)(int,
84 IDTCMRData *);
85
90 typedef void (* pCSFS_callBack)(BYTE status);
91
96 typedef void (* pLCD_callBack)(int,
97 IDTLCDItem *);
98
110 typedef void (* ftpComm_callBack)(int,
111 int,
112 int);
113
118 typedef void (* httpComm_callBack)(BYTE *,
119 int);
120
127 typedef void (* v4Comm_callBack)(BYTE,
128 BYTE,
129 BYTE *,
130 int);
131
132
133 # ifdef __cplusplus
134 extern "C" {
135 # endif
136
141 void
142 registerHotplugCallBk(pMessageHotplug pMsgHotplug);
143
149 void
150 registerLogCallBk(pSendDataLog pFSend,
151 pReadDataLog pFRead);
152
157 void
158 device_registerFWCallBk(pFW_callBack pFWf);
159
163 void
164 device_registerCameraCallBk(pCMR_callBack pCMRf);
165
169 void
170 device_registerCardStatusFrontSwitchCallBk(pCSFS_callBack pCSFSf);
171
175 void
176 emv_registerCallBk(pEMV_callBack pEMVf);
177
181 void
182 msr_registerCallBk(pMSR_callBack pMSRf);
183
187 void
188 msr_registerCallBkp(pMSR_callBackp pMSRf);
189
193 void
194 ctls_registerCallBk(pMSR_callBack pCTLSf);
195
199 void
200 ctls_registerCallBkp(pMSR_callBackp pCTLSf);
201
205 void
206 pin_registerCallBk(pPIN_callBack pPINf);
207
211 void
212 lcd_registerCallBk(pLCD_callBack pLCDf);
213
219 void
220 comm_registerHTTPCallback(httpComm_callBack cBack);
221
227 void
228 comm_registerV4Callback(v4Comm_callBack cBack);
229
234 char *
235 SDK_Version();
236
245 int
246 setAbsoluteLibraryPath(const char * absoluteLibraryPath);
247
259 int
260 device_setConfigPath(const char * path);
261
273 int
274 device_setNEO2DevicesConfigs(IN const char * configs,
275 IN int len);
276
284 int
285 device_init();
286
337 int
338 rs232_device_init(int deviceType, int port_number, int brate);
339
381 int
382 device_setCurrentDevice(int deviceType);
383
390 int
391 device_isAttached(int deviceType);
392
398 int
399 device_close();
400
458 void
459 device_getIDGStatusCodeString(IN int returnCode,
460 OUT char * despcrition);
461
466 int
467 device_isConnected();
468
479 int
480 device_getFirmwareVersion(OUT char * firmwareVersion);
481
491 int
492 device_getFirmwareVersion_Len(OUT char * firmwareVersion, IN_OUT int * firmwareVersionLen);
493
501 int
502 device_pingDevice();
503
508 int
509 device_getCurrentDeviceType();
510
527 int
528 device_SendDataCommandNEO(IN int cmd,
529 IN int subCmd,
530 IN BYTE * data,
531 IN int dataLen,
532 OUT BYTE * response,
533 IN_OUT int * respLen);
534
551 int
552 device_SendDataCommand(IN BYTE * cmd,
553 IN int cmdLen,
554 IN BYTE * data,
555 IN int dataLen,
556 OUT BYTE * response,
557 IN_OUT int * respLen);
558
568 int
569 device_rebootDevice();
570
587 int
588 device_SendDataCommandITP(IN BYTE * cmd,
589 IN int cmdLen,
590 IN BYTE * data,
591 IN int dataLen,
592 OUT BYTE * response,
593 IN_OUT int * respLen);
594
599 void
600 device_setTransactionExponent(int exponent);
601
666 int
667 device_getKeyStatus(int * newFormat,
668 BYTE * status,
669 int * statusLen);
670
698 int
699 device_updateFirmware(IN BYTE * firmwareData,
700 IN int firmwareDataLen,
701 IN char * firmwareName,
702 IN int encryptionType,
703 IN BYTE * keyBlob,
704 IN int keyBlobLen);
705
716 int
717 config_getModelNumber(OUT char * sNumber);
718
728 int
729 config_getModelNumber_Len(OUT char * sNumber, IN_OUT int * sNumberLen);
730
741 int
742 config_getSerialNumber(OUT char * sNumber);
743
753 int
754 config_getSerialNumber_Len(OUT char * sNumber, IN_OUT int * sNumberLen);
755
765 int
766 device_setSystemLanguage(char * language);
767
778 int
779 msr_setExpirationMask(int mask);
780
790 int
791 msr_getExpirationMask(BYTE * value);
792
801 int
802 msr_setClearPANID(BYTE val);
803
815 int
816 msr_getClearPANID(BYTE * value);
817
832 int
833 msr_setSwipeForcedEncryptionOption(int track1, int track2, int track3, int track3card0);
834
848 int
849 msr_getSwipeForcedEncryptionOption(BYTE * option);
850
865 int
866 msr_setSwipeMaskOption(int track1, int track2, int track3);
867
883 int
884 msr_getSwipeMaskOption(BYTE * option);
885
897 int
898 msr_getFunctionStatus(int * enable, int * isBufferMode, int * withNotification);
899
905 int
906 msr_disable();
907
908 # ifdef __cplusplus
909 }
910 # endif
911
912
913 #endif // ifndef __LIBIDT_SREDKEY2_H___
914
msr_setSwipeMaskOption
int msr_setSwipeMaskOption(int track1, int track2, int track3)
device_registerFWCallBk
void device_registerFWCallBk(pFW_callBack pFWf)
device_setCurrentDevice
int device_setCurrentDevice(int deviceType)
msr_setClearPANID
int msr_setClearPANID(BYTE val)
pLCD_callBack
void(* pLCD_callBack)(int, IDTLCDItem *)
Definition: libIDT_SREDKey2.h:96
device_init
int device_init()
ctls_registerCallBkp
void ctls_registerCallBkp(pMSR_callBackp pCTLSf)
config_getModelNumber_Len
int config_getModelNumber_Len(OUT char *sNumber, IN_OUT int *sNumberLen)
ctls_registerCallBk
void ctls_registerCallBk(pMSR_callBack pCTLSf)
device_pingDevice
int device_pingDevice()
msr_registerCallBk
void msr_registerCallBk(pMSR_callBack pMSRf)
msr_setSwipeForcedEncryptionOption
int msr_setSwipeForcedEncryptionOption(int track1, int track2, int track3, int track3card0)
OUT
#define OUT
IN
#define IN
device_SendDataCommand
int device_SendDataCommand(IN BYTE *cmd, IN int cmdLen, IN BYTE *data, IN int dataLen, OUT BYTE *response, IN_OUT int *respLen)
msr_getExpirationMask
int msr_getExpirationMask(BYTE *value)
device_setSystemLanguage
int device_setSystemLanguage(char *language)
IN_OUT
#define IN_OUT
msr_getSwipeMaskOption
int msr_getSwipeMaskOption(BYTE *option)
pMessageHotplug
void(* pMessageHotplug)(int, int)
Definition: libIDT_SREDKey2.h:17
device_getKeyStatus
int device_getKeyStatus(int *newFormat, BYTE *status, int *statusLen)
pMSR_callBack
void(* pMSR_callBack)(int, IDTMSRData)
Definition: libIDT_SREDKey2.h:64
device_isConnected
int device_isConnected()
msr_disable
int msr_disable()
comm_registerV4Callback
void comm_registerV4Callback(v4Comm_callBack cBack)
device_registerCardStatusFrontSwitchCallBk
void device_registerCardStatusFrontSwitchCallBk(pCSFS_callBack pCSFSf)
registerHotplugCallBk
void registerHotplugCallBk(pMessageHotplug pMsgHotplug)
device_setNEO2DevicesConfigs
int device_setNEO2DevicesConfigs(IN const char *configs, IN int len)
v4Comm_callBack
void(* v4Comm_callBack)(BYTE, BYTE, BYTE *, int)
Definition: libIDT_SREDKey2.h:127
msr_getFunctionStatus
int msr_getFunctionStatus(int *enable, int *isBufferMode, int *withNotification)
config_getSerialNumber_Len
int config_getSerialNumber_Len(OUT char *sNumber, IN_OUT int *sNumberLen)
device_registerCameraCallBk
void device_registerCameraCallBk(pCMR_callBack pCMRf)
device_SendDataCommandNEO
int device_SendDataCommandNEO(IN int cmd, IN int subCmd, IN BYTE *data, IN int dataLen, OUT BYTE *response, IN_OUT int *respLen)
setAbsoluteLibraryPath
int setAbsoluteLibraryPath(const char *absoluteLibraryPath)
config_getModelNumber
int config_getModelNumber(OUT char *sNumber)
emv_registerCallBk
void emv_registerCallBk(pEMV_callBack pEMVf)
pPIN_callBack
void(* pPIN_callBack)(int, IDTPINData *)
Definition: libIDT_SREDKey2.h:76
device_updateFirmware
int device_updateFirmware(IN BYTE *firmwareData, IN int firmwareDataLen, IN char *firmwareName, IN int encryptionType, IN BYTE *keyBlob, IN int keyBlobLen)
msr_registerCallBkp
void msr_registerCallBkp(pMSR_callBackp pMSRf)
httpComm_callBack
void(* httpComm_callBack)(BYTE *, int)
Definition: libIDT_SREDKey2.h:118
device_setConfigPath
int device_setConfigPath(const char *path)
SDK_Version
char * SDK_Version()
device_setTransactionExponent
void device_setTransactionExponent(int exponent)
pCSFS_callBack
void(* pCSFS_callBack)(BYTE status)
Definition: libIDT_SREDKey2.h:90
lcd_registerCallBk
void lcd_registerCallBk(pLCD_callBack pLCDf)
comm_registerHTTPCallback
void comm_registerHTTPCallback(httpComm_callBack cBack)
msr_getClearPANID
int msr_getClearPANID(BYTE *value)
pFW_callBack
void(* pFW_callBack)(int, int, int, int, int)
Definition: libIDT_SREDKey2.h:54
pReadDataLog
void(* pReadDataLog)(BYTE *, int)
Definition: libIDT_SREDKey2.h:33
device_SendDataCommandITP
int device_SendDataCommandITP(IN BYTE *cmd, IN int cmdLen, IN BYTE *data, IN int dataLen, OUT BYTE *response, IN_OUT int *respLen)
device_close
int device_close()
ftpComm_callBack
void(* ftpComm_callBack)(int, int, int)
Definition: libIDT_SREDKey2.h:110
msr_setExpirationMask
int msr_setExpirationMask(int mask)
pCMR_callBack
void(* pCMR_callBack)(int, IDTCMRData *)
Definition: libIDT_SREDKey2.h:83
pEMV_callBack
void(* pEMV_callBack)(int, int, BYTE *, int, IDTTransactionData *, EMV_Callback *, int)
Definition: libIDT_SREDKey2.h:41
device_isAttached
int device_isAttached(int deviceType)
pSendDataLog
void(* pSendDataLog)(BYTE *, int)
Definition: libIDT_SREDKey2.h:25
pMSR_callBackp
void(* pMSR_callBackp)(int, IDTMSRData *)
Definition: libIDT_SREDKey2.h:70
device_rebootDevice
int device_rebootDevice()
msr_getSwipeForcedEncryptionOption
int msr_getSwipeForcedEncryptionOption(BYTE *option)
registerLogCallBk
void registerLogCallBk(pSendDataLog pFSend, pReadDataLog pFRead)
device_getCurrentDeviceType
int device_getCurrentDeviceType()
device_getFirmwareVersion_Len
int device_getFirmwareVersion_Len(OUT char *firmwareVersion, IN_OUT int *firmwareVersionLen)
rs232_device_init
int rs232_device_init(int deviceType, int port_number, int brate)
device_getFirmwareVersion
int device_getFirmwareVersion(OUT char *firmwareVersion)
pin_registerCallBk
void pin_registerCallBk(pPIN_callBack pPINf)
device_getIDGStatusCodeString
void device_getIDGStatusCodeString(IN int returnCode, OUT char *despcrition)
config_getSerialNumber
int config_getSerialNumber(OUT char *sNumber)