| IDTech Universal SDK 1.0.35.027 API reference for C++

Initialize SDK and Set the Target Device

Perform device_init() to initialize the SDK, establish the callbacks, and use the device_setCurrentDevice() function to specify the device to use.

int main(void) {
int r = 0;
printf("Initializing SDK...\n");
r = device_init();
if ( r != RETURN_CODE_DO_SUCCESS ) {
printf(" Fail to init!\n");
return 0;
}
emv_registerCallBk(EMV_callBack);
msr_registerCallBk(MSR_callBack);
device_setCurrentDevice(IDT_DEVICE_SPECTRUM_PRO)
return 0;
}