ContactlessCard_UserErrorCode.h 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef _CONTACTLESSCARD_USER_ERRORCODE_H
  2. #define _CONTACTLESSCARD_USER_ERRORCODE_H
  3. #pragma once
  4. #define ContactlessCard_UserErrorCode_Start 0x21300200
  5. #define ContactlessCard_UserErrorCode_Reset_Failed (ContactlessCard_UserErrorCode_Start + 1) //Reset失败
  6. #define ContactlessCard_UserErrorCode_GetDevInfo_Failed (ContactlessCard_UserErrorCode_Start + 2) //获取设备信息失败
  7. #define ContactlessCard_UserErrorCode_LOGWARN_TERM_INFO (ContactlessCard_UserErrorCode_Start + 3) //硬件信息告警
  8. #define ContactlessCard_UserErrorCode_NO_ADAPTER_FILE (ContactlessCard_UserErrorCode_Start + 4) //未找到适配器文件
  9. #define ContactlessCard_UserErrorCode_ZssDeviceInfo (ContactlessCard_UserErrorCode_Start + 5) //中世顺机型信息告警
  10. #define ContactlessCard_UserErrorCode_RootInfo (ContactlessCard_UserErrorCode_Start + 6) //root信息
  11. #define ContactlessCard_UserErrorCode_FORGET_FETCH (ContactlessCard_UserErrorCode_Start + 7) //客户忘记取卡
  12. #define ContactlessCard_UserErrorCode_DllLoadFailed (ContactlessCard_UserErrorCode_Start + 8) //加载CMBPrint.dll失败
  13. //预留一部分用于CardAssist.cpp中的报错告警
  14. //自ContactlessCard_UserErrorCode_Start + 11 ~ ContactlessCard_UserErrorCode_Start + 20
  15. #define ContactlessCard_UserErrorCode_ActiveContactlessICCard_Failed (ContactlessCard_UserErrorCode_Start + 11) //DetectIfICCard调用ContactIC失败
  16. #define ContactlessCard_UserErrorCode_RFTypeABCommand_Failed (ContactlessCard_UserErrorCode_Start + 12) //BuildSupportedAppList调用RFTypeABCommand失败
  17. #define ContactlessCard_UserErrorCode_ICCommand_RecvData_Invalid (ContactlessCard_UserErrorCode_Start + 13) //APDU接收到的数据无效
  18. #define ContactlessCard_UserErrorCode_BuildSupportedAppList_Failed (ContactlessCard_UserErrorCode_Start + 14) //BuildSupportedAppList失败
  19. //Error_DevNotAvailable情况
  20. #define ContactlessCard_UserErrorCode_Read_OpenFailed (ContactlessCard_UserErrorCode_Start + 21) //设备未打开,读卡失败
  21. #define ContactlessCard_UserErrorCode_Cancel_OpenFailed (ContactlessCard_UserErrorCode_Start + 22) //设备未打开,取消失败
  22. #define ContactlessCard_UserErrorCode_Exit_OpenFailed (ContactlessCard_UserErrorCode_Start + 23) //设备未打开,退出失败
  23. #define ContactlessCard_UserErrorCode_DevOpen_Success (ContactlessCard_UserErrorCode_Start + 31) //设备打开成功
  24. #define ContactlessCard_UserErrorCode_DevOpen_Failed (ContactlessCard_UserErrorCode_Start + 32) //设备打开失败
  25. #define ContactlessCard_UserErrorCode_Read_TimeOut (ContactlessCard_UserErrorCode_Start + 33) //读卡寻卡超时
  26. #define ContactlessCard_UserErrorCode_Read_Not_IC (ContactlessCard_UserErrorCode_Start + 34) //读卡检测,非IC卡
  27. #define ContactlessCard_UserErrorCode_Read_Cancel (ContactlessCard_UserErrorCode_Start + 35) //读卡取消
  28. #define ContactlessCard_UserErrorCode_Forget_Fectch_Card (ContactlessCard_UserErrorCode_Start + 36) //吐卡超时未取卡
  29. //实际root配置
  30. //#define ContactlessCard_UserErrorCode_Real_Root_Config (ContactlessCard_UserErrorCode_Start + 36) //实际root配置
  31. #define ContactlessCard_UserErrorCode_ReadAccount (ContactlessCard_UserErrorCode_Start + 37) //读到卡片信息
  32. #define ContactlessCard_UserErrorCode_EntityInStateCannotProcess (CardIssuerStore_UserErrorCode_Start + 38) //卡机当前状态无法处理此请求
  33. #define ContactlessCard_UserErrorCode_GetDevStatus_Fail (CardIssuerStore_UserErrorCode_Start + 39) //循环取卡机状态失败
  34. #define ContactlessCard_UserErrorCode_CardAssistLoadFailed (ContactlessCard_UserErrorCode_Start + 40) //加载卡集对象失败
  35. #define ContactlessCard_UserErrorCode_SplitTrack2_Fail (ContactlessCard_UserErrorCode_Start + 41) //拆解磁条2信息失败
  36. #define ContactlessCard_UserErrorCode_ParseIC_Data_Fail (ContactlessCard_UserErrorCode_Start + 42) //ic数据解析异常
  37. //非接流程状态报错
  38. #define ContactlessCard_UserErrorCode_PROCESS_IDLE 0x21300402 //当前处于卡机无卡空闲状态,无法处理此请求
  39. #define ContactlessCard_UserErrorCode_PROCESS_HOLD 0x21300404 //当前处于卡机有卡等待状态,无法处理此请求
  40. #define ContactlessCard_UserErrorCode_PROCESS_READ 0x21300405 //当前处于正在读卡状态,无法处理此请求
  41. #define ContactlessCard_UserErrorCode_PROCESS_EJECT 0x21300406 //当前处于正在吐卡状态,无法处理此请求
  42. #define ContactlessCard_UserErrorCode_PROCESS_WAIT_FETCH 0x21300407 //当前处于正在取卡状态,无法处理此请求
  43. #define ContactlessCard_UserErrorCode_PROCESS_CAPTURE 0x21300408 //当前处于正在吞卡状态,无法处理此请求
  44. #define ContactlessCard_UserErrorCode_PROCESS_FAULT 0x21300409 //当前处于卡机故障异常状态,无法处理此请求
  45. #define ContactlessCard_UserErrorCode_PROCESS_READ_JS 0x2130040A //当前处于正在读卡状态,无法处理此请求,请稍后再试
  46. #define ContactlessCard_UserErrorCode_PROCESS_EJECT_JS 0x2130040B //当前处于正在取卡状态,无法处理此请求,请稍后再试
  47. #endif //_CONTACTLESSCARD_USER_ERRORCODE_H