@@ -279,29 +279,9 @@ private void OnDisconnect(USBDevice device)
279279 internal static class CommandTypes
280280 {
281281 public const string Open = "OPN" ;
282- public const string Abort = "CAN" ;
283282 public const string Close = "CLO" ;
284- public const string Display = "DSP" ;
285283 public const string DisplayEx = "DEX" ;
286- public const string GetKey = "GKY" ;
287- public const string GetPIN = "GPN" ;
288- public const string RemoveCard = "RMC" ;
289- public const string Generic = "GEN" ;
290- public const string CheckEvent = "CKE" ;
291- public const string GetCard = "GCR" ;
292- public const string GoOnChip = "GOC" ;
293- public const string FinishChip = "FNC" ;
294- public const string ChipDirect = "CHP" ;
295- public const string ChangeParameter = "CNG" ;
296284 public const string GetInfo = "GIN" ;
297- public const string EncryptBuffer = "ENB" ;
298- public const string TableLoadInit = "TLI" ;
299- public const string TableLoadRec = "TLR" ;
300- public const string TableLoadEnd = "TLE" ;
301- public const string GetDUKPT = "GDU" ;
302- public const string GetTimeStamp = "GTS" ;
303- public const string DefineWKPAN = "DWK" ;
304- public const string Notification = "NTM" ;
305285 }
306286
307287 internal static class PinPadConstants
@@ -326,97 +306,8 @@ internal enum ReturnCodes : short
326306 {
327307 Ok = 0 ,
328308 Processing = 1 ,
329- Notify = 2 ,
330- F1 = 4 ,
331- F2 = 5 ,
332- F3 = 6 ,
333- F4 = 7 ,
334- Backspace = 8 ,
335- /* Basic errors 10 -29 */
336- InvalidCall = 10 ,
337- InvalidParameter = 11 ,
338- Timeout = 12 ,
339- Cancel = 13 ,
340309 AlreadyOpen = 14 ,
341310 NotOpen = 15 ,
342- ExecutionError = 16 ,
343- InvalidModel = 17 ,
344- NoFunction = 18 ,
345- TableExpired = 20 ,
346- TableError = 21 ,
347- NoApplication = 22 ,
348- ErrorRFU23 = 23 ,
349- ErrorRFU24 = 24 ,
350- ErrorRFU25 = 25 ,
351- ErrorRFU26 = 26 ,
352- ErrorRFU27 = 27 ,
353- ErrorRFU28 = 28 ,
354- ErrorRFU29 = 29 ,
355- /* Communication/Protocol Errors 30 - 39 */
356- PortError = 30 ,
357- CommunicationError = 31 ,
358- UnknownStatus = 32 ,
359- ResponseError = 33 ,
360- CommunicationTimeout = 34 ,
361- ErrorRFU35 = 35 ,
362- ErrorRFU36 = 36 ,
363- ErrorRFU37 = 37 ,
364- ErrorRFU38 = 38 ,
365- ErrorRFU39 = 39 ,
366- /* Pinpad basic errors 40 - 49 */
367- InternalError = 40 ,
368- MagStripeDataError = 41 ,
369- PINError = 42 ,
370- NoCard = 43 ,
371- PINBusy = 44 ,
372- ErrorRFU45 = 45 ,
373- ErrorRFU46 = 46 ,
374- ErrorRFU47 = 47 ,
375- ErrorRFU48 = 48 ,
376- ErrorRFU49 = 49 ,
377- /* Errors processing cards with CHIP (SAM) 50 - 59 */
378- SAMError = 50 ,
379- NoSAM = 51 ,
380- InvalidSAM = 52 ,
381- ErrorRFU53 = 53 ,
382- ErrorRFU54 = 54 ,
383- ErrorRFU55 = 55 ,
384- ErrorRFU56 = 56 ,
385- ErrorRFU57 = 57 ,
386- ErrorRFU58 = 58 ,
387- ErrorRFU59 = 59 ,
388- /* Errors procesing contact chip cards 60 - 79 */
389- DumbCard = 60 ,
390- CardError = 61 ,
391- InvalidCard = 62 ,
392- CardBlocked = 63 ,
393- CardNotAuthorized = 64 ,
394- CardExpired = 65 ,
395- CardStructureError = 66 ,
396- CardInvalidated = 67 ,
397- CardProblem = 68 ,
398- CardInvalidData = 69 ,
399- CardApplicationNotAvailable = 70 ,
400- CardApplicationNotAuthorized = 71 ,
401- NoBalance = 72 ,
402- LimitExceeded = 73 ,
403- CardNotEffective = 74 ,
404- VisaCashInvalidCurrency = 75 ,
405- FallbackError = 76 ,
406- ErrorRFU77 = 77 ,
407- ErrorRFU78 = 78 ,
408- ErrorRFU79 = 79 ,
409- /* Errors processing contactless cards 80 - 89 */
410- MultipleCTLS = 80 ,
411- CommunicationErrorCTLS = 81 ,
412- CardInvalidatedCTLS = 82 ,
413- CardProblemCTLS = 83 ,
414- CardApplicationNotAvailableCTLS = 84 ,
415- CarApplicationNotAuthorizedCTLS = 85 ,
416- ErrorRFU86 = 86 ,
417- ErrorRFU87 = 87 ,
418- ErrorRFU88 = 88 ,
419- ErrorRFU89 = 89
420311 }
421312
422313 internal sealed class DeviceInfo
0 commit comments