9 #import <Foundation/Foundation.h> 10 #import "IDTMSRData.h" 11 #import "IDT_Device.h" 18 - (void) dataInOutMonitor:(NSData*)data incoming:(BOOL)isIncoming;
27 - (void) deviceMessage:(NSString*)message;
30 -(void) updateStatus:(PK_STATUS_Type)type currentBlock:(
int)currentBlock totalBlocks:(
int)totalBlocks error:(RETURN_CODE)error;
58 -(RETURN_CODE) sendPKUpdate:(NSData*)pkFile;
76 -(RETURN_CODE) sendPKUpdateBLE:(NSData*)pkData;
95 - (void) pinRequest:(EMV_PIN_MODE_Types)mode key:(NSData*)key PAN:(NSData*)PAN startTO:(
int)startTO intervalTO:(
int)intervalTO language:(NSString*)language;
106 - (void) bluetoothPickerAlert:(UIAlertView*)view;
117 - (void) bluetoothDeviceNames:(NSArray*)names;
211 -(RETURN_CODE) activateTransaction:(NSMutableDictionary<NSString*,NSString*> *_Nullable)tags timeout:(
int)timeout;
238 - (void) pinpadData:(NSData*)value keySN:(NSData*)KSN event:(EVENT_PINPAD_Types)event;
253 - (void) lcdDisplay:(
int)mode lines:(NSArray*)lines;
269 - (void) emvTransactionData:(
IDTEMVData*)emvData errorCode:(
int)error;
276 @interface IDT_NEO2 : NSObject<IDT_Device_Delegate>{
280 @property(strong) id<IDT_NEO2_Delegate>
delegate;
357 -(RETURN_CODE) device_logRead:(NSData**)response;
368 -(RETURN_CODE) device_logEnable:(BOOL)enable;
379 -(RETURN_CODE) device_getRT1050FirmwareVersion:(NSString**)response;
390 -(RETURN_CODE) device_getBootloaderVersion:(NSString**)response;
440 -(RETURN_CODE) ctls_getConfigurationGroup:(
int)group response:(NSDictionary**)response;
454 -(RETURN_CODE) device_setMerchantRecord:(
int)index enabled:(
bool)enabled merchantID:(NSString*)merchantID merchantURL:(NSString*)merchantURL;
471 -(RETURN_CODE) device_getMerchantRecord:(
int)index record:(NSData**)record;
481 -(RETURN_CODE) device_getTransactionResults:(NSData**)results;
492 -(RETURN_CODE) device_getDeviceTreeVersion:(NSString**)deviceTree is1050:(BOOL)is1050;
503 -(RETURN_CODE) device_get1050FuseStatus:(NSData**)status;
514 -(RETURN_CODE) device_get1050BootloaderVersion:(NSString**)version;
525 -(RETURN_CODE) device_get1050DeviceTreeVersion:(NSString**)deviceTree;
557 -(RETURN_CODE) config_checkDUKPTKey:(Byte)keyIndex value:(NSData**)val;
570 -(RETURN_CODE) config_getDEKVariantType:(Byte*)type;
585 -(RETURN_CODE) config_setDEKVariantType:(Byte)type;
596 -(RETURN_CODE) config_getDUKPT_KSN:(NSData**)KSN;
607 -(RETURN_CODE) config_getSalt_KCV:(NSData**)KCV;
624 -(RETURN_CODE) config_setRKLKeys:(
short) keyNumber tr31:(NSData*)tr31 nonce:(NSData*)nonce hmac:(NSData*)hmac kv:(NSData**)kv nonceDevice:(NSData**)nonce_device hmacDevice:(NSData**)hmac_device;
637 -(RETURN_CODE) config_setKeyslot_PEK_DEK:(BOOL)isPEK keyslot:(Byte)keySlot;
648 -(RETURN_CODE) config_getKeyslot_PEK_DEK:(NSData**)keyslotPEK keyslotDEK:(NSData**)keyslotDEK;
662 -(RETURN_CODE) config_getDUKPT_DEK_Attribution:(Byte)keyslot mode:(Byte*)mode outputModeWorkingKey:(Byte*)outputMode_workingKey variantKeyUsage:(Byte*)variant_keyUsage;
675 -(RETURN_CODE) config_setDUKPT_DEK_Attribution_AES:(Byte)keyslot working_Key:(Byte)workingKey key_Usage:(Byte)keyUsage;
688 -(RETURN_CODE) config_setDUKPT_DEK_Attribution_TDES:(Byte)keyslot output_Mode:(Byte)outputMode variant:(Byte)variant;
711 -(RETURN_CODE) ctls_removeApplicationData:(NSString*)AID;
723 -(RETURN_CODE) ctls_removeCAPK:(NSData*)capk;
744 -(RETURN_CODE) ctls_updateBalance:(NSData*)statusCode authCode:(NSData*)authCode date:(NSData*)date time:(NSData*)time;
757 -(RETURN_CODE) ctls_getAllConfigGroups:(NSData**)response;
774 -(RETURN_CODE) ctls_getAllConfigurationGroups:(NSDictionary<NSString*, NSDictionary*>**)response;
788 -(RETURN_CODE) ctls_removeConfigurationGroup:(
int)group;
801 -(RETURN_CODE) ctls_retrieveAIDList:(NSArray**)response;
813 -(RETURN_CODE) ctls_retrieveApplicationData:(NSString*)AID response:(NSDictionary**)response;
832 -(RETURN_CODE) ctls_retrieveCAPK:(NSData*)capk key:(NSData**)key;
844 -(RETURN_CODE) ctls_retrieveCAPKList:(NSArray**)keys;
858 -(RETURN_CODE) ctls_retrieveTerminalData:(NSData**)tlv;
875 -(RETURN_CODE) ctls_setApplicationData:(NSData*)tlv;
896 -(RETURN_CODE) emv_setCAPK:(
CAKey)key;
915 -(RETURN_CODE) ctls_setCAPK:(NSData*)key;
931 -(RETURN_CODE) ctls_setConfigurationGroup:(NSData*)tlv;
945 -(RETURN_CODE) ctls_setTerminalData:(NSData*)tlv;
975 -(RETURN_CODE) ctls_startTransaction:(
double)amount type:(
int)type timeout:(
int)timeout tags:(NSMutableDictionary *)tags;
987 -(RETURN_CODE) ctls_resetConfigurationGroup:(
int)group;
1067 -(RETURN_CODE) icc_getKeyFormatForICCDUKPT:(NSData**)format;
1084 -(RETURN_CODE) icc_setKeyFormatForICCDUKPT:(NSData*)encryption;
1091 -(RETURN_CODE) updateFirmwareNeo2:(FIRMWARE_TYPE)type data:(NSData*)firmwareData;
1111 -(RETURN_CODE) device_getFirmwareVersion:(NSString**)response;
1121 -(RETURN_CODE) emv_getBatteryVoltage:(NSString**)response;
1131 -(RETURN_CODE) emv_getBatteryPercentage:(NSString**)response;
1155 -(bool) device_enableBLEDeviceSearch:(NSUUID*)identifier;
1176 -(void) device_setBLEFriendlyName:(NSString*)friendlyName;
1217 -(RETURN_CODE) device_getAutoPollTransactionResults:(
IDTEMVData**)result;
1228 -(RETURN_CODE) device_extendedErrorCondition:(BOOL)enable;
1242 -(NSString *) device_getResponseCodeString: (
int) errorCode;
1258 -(bool) device_isConnected:(IDT_DEVICE_Types)device;
1273 -(RETURN_CODE) device_sendIDGCommand:(
unsigned char)command subCommand:(
unsigned char)subCommand data:(NSData*)data response:(NSData**)response;
1289 -(RETURN_CODE) device_sendIDGCommandV3:(
unsigned char)command subCommand:(
unsigned char)subCommand data:(NSData*)data response:(NSData**)response;
1301 -(void) setServiceScanFilter:(NSArray<CBUUID *> *) filter;
1323 -(RETURN_CODE) device_setPassThrough:(BOOL)enablePassThrough;
1357 -(RETURN_CODE) device_pollForToken:(Byte)seconds card:(Byte**)card serialNumber:(NSData**)serialNumber;
1369 -(RETURN_CODE) device_antennaControl:(
bool)turnON;
1383 -(RETURN_CODE) device_exchangeContactlessData:(NSData*)sendData receiveData:(NSData**)receiveData;
1395 -(RETURN_CODE) device_setSpecialFunctionOrFeature:(NSData*)feature addRequirement:(NSData*)addRequirement;
1408 -(RETURN_CODE) device_getSpecialFunctionOrFeature:(NSData**)feature addRequirement:(NSData**)addRequirement;
1431 -(RETURN_CODE) device_setTerminalData:(NSData*)tags;
1453 -(RETURN_CODE) device_retrieveTerminalData:(NSData**)responseData;
1468 -(RETURN_CODE) device_queryFile:(NSString*)directory filename:(NSString*)filename isSD:(BOOL)isSD exists:(BOOL*)exists timestamp:(NSDate**)timestamp fileSize:(
int*)fileSize;
1480 -(RETURN_CODE) device_readFileFromSD:(NSString*)directory filename:(NSString*)filename fileData:(NSData**)fileData;
1503 -(RETURN_CODE) device_addTLVToTerminalData:(NSData*)tlv;
1515 -(RETURN_CODE) device_setBurstMode:(
int) mode;
1528 -(RETURN_CODE) device_setPollMode:(
int) mode;
1556 -(RETURN_CODE) emv_authenticateTransaction:(NSData*)tags;
1573 -(RETURN_CODE) emv_callbackResponseLCD:(
int)mode selection:(
unsigned char) selection;
1591 -(RETURN_CODE) emv_callbackResponsePIN:(EMV_PIN_MODE_Types)mode KSN:(NSData*)KSN PIN:(NSData*)PIN;
1635 -(RETURN_CODE) emv_completeOnlineEMVTransaction:(BOOL)isSuccess hostResponseTags:(NSData*)tags;
1647 -(void) emv_disableAutoAuthenticateTransaction:(BOOL)disable;
1669 -(RETURN_CODE) emv_getEMVL2Version:(NSString**)response;
1691 -(RETURN_CODE) emv_removeApplicationData:(NSString*)AID;
1713 -(RETURN_CODE) emv_removeCAPK:(NSString*)rid index:(NSString*)index ;
1725 -(RETURN_CODE) device_getPollMode:(NSData**)mode;
1736 -(RETURN_CODE) device_getTransArmorID:(NSString**)TID;
1746 -(RETURN_CODE) emv_getEMVKernelCheckValue:(NSString**)response;
1757 -(RETURN_CODE) emv_getEMVKernelVersion:(NSString**)response;
1769 -(RETURN_CODE) emv_callbackResponsePIN_ETC:(EMV_PIN_MODE_Types)type ksn:(NSData*)KSN pin:(NSData*)PIN;
1780 -(RETURN_CODE) emv_callbackResponseKSN:(NSData*)KSN;
1791 -(RETURN_CODE) emv_verifyDUKPTLoaded:(NSData*)KCV;
1802 -(RETURN_CODE) emv_getEMVKernelVersionExt:(NSString**)response;
1822 -(RETURN_CODE) device_enableL80PassThrough:(BOOL)enablePassThrough;
1864 -(RETURN_CODE) device_getProductType:(NSData**)type;
1881 -(RETURN_CODE) device_getProcessorType:(NSData**)type;
1904 -(RETURN_CODE) device_getHardwareInfo:(NSString**)response;
1915 -(RETURN_CODE) device_getUIDofMCU:(NSString**)response;
1935 -(RETURN_CODE) device_enableL100PassThrough:(BOOL)enablePassThrough;
1946 -(RETURN_CODE) device_setTransArmorID:(NSString*)TID;
1957 -(RETURN_CODE) device_listenForNotifications:(BOOL)enable;
1974 -(RETURN_CODE) device_controlLED:(Byte)indexLED control:(Byte)control;
1985 -(RETURN_CODE) device_certificateType:(
int*)type;
1997 -(RETURN_CODE) device_deleteFile:(NSString*)filename isSD:(BOOL)isSD;
2008 -(RETURN_CODE) device_deleteDirectory:(NSString*)filename;
2022 -(RETURN_CODE) device_listDirectory:(NSString*)directoryName recursive:(BOOL)recursive onSD:(BOOL)onSD directory:(NSString**)directory;
2033 -(RETURN_CODE) device_createDirectory:(NSString*)directoryName;
2045 -(RETURN_CODE) device_lowPowerMode:(BOOL)stopMode wakeOnTrans:(BOOL)wakeOnTrans;
2089 -(RETURN_CODE) device_controlUserInterface:(NSData*)values;
2104 -(RETURN_CODE) device_loadCertCA:(Byte)type CertData:(NSData*)cert;
2140 -(RETURN_CODE) device_rrcRunApp:(NSString*)appName;
2152 -(RETURN_CODE) device_rrcInstallApp:(NSString*)appName;
2162 -(RETURN_CODE) device_rrcUninstallApp:(NSString*)appName;
2175 -(RETURN_CODE) device_rrcDownloadApp:(NSString*)appName appData:(NSData*)appData;
2190 -(RETURN_CODE) device_getMsrSecurePara:(BOOL)b0 b1:(BOOL)b1 b2:(BOOL)b2 b3:(BOOL)b3 tlv:(NSData**)tlv;
2201 -(RETURN_CODE) device_getModuleVer:(NSString**)moduleVer;
2234 -(RETURN_CODE) device_enaBlueLED:(NSData*)dataCmd;
2276 -(RETURN_CODE) device_getLightSensorVal:(UInt16*)lightVal;
2287 -(RETURN_CODE) device_setTransArmorEncryption:(NSData*)cert;
2301 -(RETURN_CODE) adf_getModuleBytes:(ADF_TYPE)type adfInfo:(NSArray<NSData*>**)adfInfo;
2315 -(RETURN_CODE) adf_getModuleInfo:(ADF_TYPE)type adfInfo:(NSArray**)adfInfo;
2328 -(RETURN_CODE) adf_eraseFlash:(ADF_TYPE)type;
2339 -(RETURN_CODE) adf_setJTAG:(BOOL)enable;
2350 -(RETURN_CODE) adf_setADFMode:(BOOL)enable;
2361 -(RETURN_CODE) adf_getADFMode:(BOOL*)enable;
2380 -(RETURN_CODE) msr_getMSRTrack:(
int*)val;
2391 -(RETURN_CODE) msr_getConfiguration:(NSData**)config;
2402 -(RETURN_CODE) msr_setConfiguration:(NSData*)config;
2413 -(RETURN_CODE) msr_retrieveWhiteList:(NSData**)value;
2432 -(RETURN_CODE) msr_setMSRTrack:(
int)val;
2445 -(RETURN_CODE) emv_setTerminalMajorConfiguration:(
int)configuration;
2458 -(RETURN_CODE) emv_getTerminalMajorConfiguration:(NSUInteger**)configuration;
2520 -(RETURN_CODE) emv_retrieveAIDList:(NSArray**)response;
2551 -(RETURN_CODE) emv_retrieveApplicationData:(NSString*)AID response:(NSDictionary**)responseAID;
2587 -(RETURN_CODE) emv_retrieveCAPKFile:(NSString*)rid index:(NSString*)index response:(NSData**)response;
2608 -(RETURN_CODE) emv_retrieveCAPKList:(NSArray**)response;
2632 -(RETURN_CODE) emv_retrieveCAPK:(NSString*)rid index:(NSString*)index response:(
CAKey**)response;
2653 -(RETURN_CODE) emv_retrieveCRLList:(NSMutableArray**)response;
2680 -(RETURN_CODE) emv_retrieveTerminalData:(NSDictionary**)responseData;
2703 -(RETURN_CODE) emv_retrieveTransactionResult:(NSData*)tags retrievedTags:(NSDictionary**)retrievedTags;
2751 -(RETURN_CODE) emv_setApplicationData:(NSString*)aidName configData:(NSDictionary*)data;
2772 -(RETURN_CODE) emv_setCAPKFile:(NSData*)file;
2797 -(RETURN_CODE) emv_setCRLEntries:(NSData*)data;
2847 -(RETURN_CODE) emv_setTerminalData:(NSDictionary*)data;
2890 -(RETURN_CODE) emv_startTransaction:(
double)amount amtOther:(
double)amtOther type:(
int)type timeout:(
int)timeout tags:(NSData*)tags forceOnline:(BOOL)forceOnline fallback:(BOOL)fallback;
2904 -(RETURN_CODE) emv_exchangeCerts:(NSData**)cert nonce:(NSData**)nonce signature:(NSData**)signature;
2915 -(RETURN_CODE) emv_getEMVConfigurationCheckValue:(NSString**)response;
2926 -(RETURN_CODE) emv_callbackResponseMSR:(NSData*)MSR;
2939 -(RETURN_CODE) emv_generateDUKPT:(NSData*)cert signature:(NSData*)signature key:(NSData**)key;
2951 -(RETURN_CODE) config_getSerialNumber:(NSString**)response;
2967 -(RETURN_CODE) icc_exchangeAPDU:(NSData*)dataAPDU response:(
APDUResponse**)response;
2998 -(RETURN_CODE) icc_getICCReaderStatus:(
ICCReaderStatus**)readerStatus;
3015 -(RETURN_CODE) icc_powerOnICC:(NSData**)response;
3033 -(RETURN_CODE) icc_powerOffICC:(NSString**)error;
3099 -(RETURN_CODE) device_startTransaction:(
double)amount type:(
int)type timeout:(
int)timeout tags:(NSData*)tags;
3147 -(RETURN_CODE) pin_capturePin:(
int)type PAN:(NSString*)PAN minPIN:(
int)minPIN maxPIN:(
int)maxPIN message:(NSString*)message;
3164 -(RETURN_CODE) config_setBluetoothParameters:(NSString*)name oldPW:(NSString*)oldPW newPW:(NSString*)newPW;
3178 -(RETURN_CODE) felica_authentication:(NSData*)key;
3195 -(RETURN_CODE) felica_readWithMac:(
int)numBlocks blockList:(NSData*)blockList blocks:(NSData**)blocks;
3210 -(RETURN_CODE) felica_SendCommand:(NSData*)command response:(NSData**)response;
3224 -(RETURN_CODE) felica_writeWithMac:(
int)blockNumber data:(NSData*)data;
3241 -(RETURN_CODE) felica_read:(NSData*)serviceCode numBlocks:(
int)numBlocks blockList:(NSData*)blockList blocks:(NSData**)blocks;
3259 -(RETURN_CODE) felica_write:(NSData*)serviceCode blockCount:(
int)blockCount blockList:(NSData*)blockList data:(NSData*)data statusFlag:(NSData**)statusFlag;
3304 -(RETURN_CODE) ctls_nfcCommand:(NSData*)systemCode response:(NSData**)response;
3321 - (void)scanForBLEDevices:(NSTimeInterval)scanTime serviceUUIDs:(nullable NSArray<CBUUID *> *)serviceUUIDs options:(nullable NSDictionary<NSString *,
id> *)options;
3338 - (void)scanForBLEDeviceNames:(NSTimeInterval)scanTime serviceUUIDs:(nullable NSArray<CBUUID *> *)serviceUUIDs options:(nullable NSDictionary<NSString *,
id> *)options;
3352 -(RETURN_CODE) felica_requestService:(NSData*)nodeCode response:(NSData**)response;
3362 - (void)setServiceUUID:(nullable NSArray<CBUUID *> *)serviceUUIDs;
3384 -(RETURN_CODE) pin_captureAmountInput:(
int)minPIN maxPIN:(
int)maxPIN message:(NSString*)message signature:(NSData*)signature;
3405 -(RETURN_CODE) pin_captureNumericInput:(
bool)mask minPIN:(
int)minPIN maxPIN:(
int)maxPIN message:(NSString*)message signature:(NSData*)signature;
3420 + (NSString*) createFastEMVData:(
IDTEMVData*)emvData;
RETURN_CODE device_rebootDevice()
RETURN_CODE device_cancelTransaction()
void deviceConnected()
Fires when device connects. If a connection is established before the delegate is established (no del...
RETURN_CODE emv_removeCRLList()
RETURN_CODE emv_removeTerminalData()
id< IDT_NEO2_Delegate > delegate
Definition: IDT_NEO2.h:277
RETURN_CODE device_disBlueLED()
Definition: IDTMSRData.h:21
RETURN_CODE emv_cancelTransaction()
RETURN_CODE device_enterStandbyMode()
Definition: APDUResponse.h:14
RETURN_CODE device_rrcDisconnect()
RETURN_CODE emv_removeAllApplicationData()
Definition: IDT_NEO2.h:14
RETURN_CODE msr_cancelMSRSwipe()
RETURN_CODE pin_captureFunctionKey()
Definition: IDT_NEO2.h:276
Definition: IDTCommon.h:13
Definition: IDTCommon.h:42
RETURN_CODE ctls_cancelTransaction()
RETURN_CODE device_pingDevice()
RETURN_CODE msr_startMSRSwipe()
RETURN_CODE ctls_removeAllCAPK()
RETURN_CODE device_onYellowLED()
RETURN_CODE device_logClear()
RETURN_CODE device_resetNVM()
void device_disconnectBLE()
RETURN_CODE device_buzzerOnOff()
bool device_disableBLEDeviceSearch()
RETURN_CODE pin_cancelPin()
NSUUID * device_connectedBLEDevice()
RETURN_CODE device_rrcConnect()
RETURN_CODE device_offYellowLED()
IDT_NEO2 * sharedController()
void deviceDisconnected()
Fires when device disconnects.
Definition: IDTEMVData.h:16
NSString * device_getBLEFriendlyName()