MvErrorDefine.h 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. 
  2. #ifndef _MV_ERROR_DEFINE_H_
  3. #define _MV_ERROR_DEFINE_H_
  4. #include "MvISPErrorDefine.h"
  5. /********************************************************************/
  6. /// \~chinese
  7. /// \name 正确码定义
  8. /// @{
  9. /// \~english
  10. /// \name Definition of correct code
  11. /// @{
  12. #define MV_OK 0x00000000 ///< \~chinese 成功,无错误 \~english Successed, no error
  13. /// @}
  14. /********************************************************************/
  15. /// \~chinese
  16. /// \name 通用错误码定义:范围0x80000000-0x800000FF
  17. /// @{
  18. /// \~english
  19. /// \name Definition of General error code
  20. /// @{
  21. #define MV_E_HANDLE 0x80000000 ///< \~chinese 错误或无效的句柄 \~english Error or invalid handle
  22. #define MV_E_SUPPORT 0x80000001 ///< \~chinese 不支持的功能 \~english Not supported function
  23. #define MV_E_BUFOVER 0x80000002 ///< \~chinese 缓存已满 \~english Buffer overflow
  24. #define MV_E_CALLORDER 0x80000003 ///< \~chinese 函数调用顺序错误 \~english Function calling order error
  25. #define MV_E_PARAMETER 0x80000004 ///< \~chinese 错误的参数 \~english Incorrect parameter
  26. #define MV_E_RESOURCE 0x80000006 ///< \~chinese 资源申请失败 \~english Applying resource failed
  27. #define MV_E_NODATA 0x80000007 ///< \~chinese 无数据 \~english No data
  28. #define MV_E_PRECONDITION 0x80000008 ///< \~chinese 前置条件有误,或运行环境已发生变化 \~english Precondition error, or running environment changed
  29. #define MV_E_VERSION 0x80000009 ///< \~chinese 版本不匹配 \~english Version mismatches
  30. #define MV_E_NOENOUGH_BUF 0x8000000A ///< \~chinese 传入的内存空间不足 \~english Insufficient memory
  31. #define MV_E_ABNORMAL_IMAGE 0x8000000B ///< \~chinese 异常图像,可能是丢包导致图像不完整 \~english Abnormal image, maybe incomplete image because of lost packet
  32. #define MV_E_LOAD_LIBRARY 0x8000000C ///< \~chinese 动态导入DLL失败 \~english Load library failed
  33. #define MV_E_NOOUTBUF 0x8000000D ///< \~chinese 没有可输出的缓存 \~english No Avaliable Buffer
  34. #define MV_E_ENCRYPT 0x8000000E ///< \~chinese 加密错误 \~english Encryption error
  35. #define MV_E_OPENFILE 0x8000000F ///< \~chinese 打开文件出现错误 \~english open file error
  36. #define MV_E_BUF_IN_USE 0x80000010 ///< \~chinese 缓存地址已使用 \~english Buffer already in use
  37. #define MV_E_BUF_INVALID 0x80000011 ///< \~chinese 无效的缓存地址 \~english Buffer address invalid
  38. #define MV_E_NOALIGN_BUF 0x80000012 ///< \~chinese 缓存对齐异常 \~english Buffer alignmenterror error
  39. #define MV_E_NOENOUGH_BUF_NUM 0x80000013 ///< \~chinese 缓存个数不足 \~english Insufficient cache count
  40. #define MV_E_PORT_IN_USE 0x80000014 ///< \~chinese 串口被占用 \~english Port is in use
  41. #define MV_E_IMAGE_DECODEC 0x80000015 ///< \~chinese 解码错误(SDK校验图像异常)\~english Decoding error (SDK verification image exception)
  42. #define MV_E_UINT32_LIMIT 0x80000016 /// \~chinese 图像大小超过unsigned int返回,接口不支持
  43. #define MV_E_IMAGE_HEIGHT 0x80000017 /// \~chinese 图像高度异常(残帧丢弃) \~english image height anomaly (discard incomplete images)
  44. #define MV_E_NOENOUGH_DDR 0x80000018 ///< \~chinese DDR缓存不足 \~english The DDR cache is Insufficient
  45. #define MV_E_NOENOUGH_STREAM 0x80000019 ///< \~chinese 流通道不足 \~english The stream channel is Insufficient
  46. #define MV_E_NORESPONSE 0x8000001A ///< \~chinese 设备无响应 \~english No response from device
  47. #define MV_E_UNKNOW 0x800000FF ///< \~chinese 未知的错误 \~english Unknown error
  48. /// @}
  49. /********************************************************************/
  50. /// \~chinese
  51. /// \name GenICam系列错误:范围0x80000100-0x800001FF
  52. /// @{
  53. /// \~english
  54. /// \name GenICam Series Error Codes: Range from 0x80000100 to 0x800001FF
  55. /// @{
  56. #define MV_E_GC_GENERIC 0x80000100 ///< \~chinese 通用错误 \~english General error
  57. #define MV_E_GC_ARGUMENT 0x80000101 ///< \~chinese 参数非法 \~english Illegal parameters
  58. #define MV_E_GC_RANGE 0x80000102 ///< \~chinese 值超出范围 \~english The value is out of range
  59. #define MV_E_GC_PROPERTY 0x80000103 ///< \~chinese 属性 \~english Property
  60. #define MV_E_GC_RUNTIME 0x80000104 ///< \~chinese 运行环境有问题 \~english Running environment error
  61. #define MV_E_GC_LOGICAL 0x80000105 ///< \~chinese 逻辑错误 \~english Logical error
  62. #define MV_E_GC_ACCESS 0x80000106 ///< \~chinese 节点访问条件有误 \~english Node accessing condition error
  63. #define MV_E_GC_TIMEOUT 0x80000107 ///< \~chinese 超时 \~english Timeout
  64. #define MV_E_GC_DYNAMICCAST 0x80000108 ///< \~chinese 转换异常 \~english Transformation exception
  65. #define MV_E_GC_UNKNOW 0x800001FF ///< \~chinese GenICam未知错误 \~english GenICam unknown error
  66. /// @}
  67. /********************************************************************/
  68. /// \~chinese
  69. /// \name GigE_STATUS对应的错误码:范围0x80000200-0x800002FF
  70. /// @{
  71. /// \~english
  72. /// \name GigE_STATUS Error Codes: Range from 0x80000200 to 0x800002FF
  73. /// @{
  74. #define MV_E_NOT_IMPLEMENTED 0x80000200 ///< \~chinese 命令不被设备支持 \~english The command is not supported by device
  75. #define MV_E_INVALID_ADDRESS 0x80000201 ///< \~chinese 访问的目标地址不存在 \~english The target address being accessed does not exist
  76. #define MV_E_WRITE_PROTECT 0x80000202 ///< \~chinese 目标地址不可写 \~english The target address is not writable
  77. #define MV_E_ACCESS_DENIED 0x80000203 ///< \~chinese 设备无访问权限 \~english No permission
  78. #define MV_E_BUSY 0x80000204 ///< \~chinese 设备忙,或网络断开 \~english Device is busy, or network disconnected
  79. #define MV_E_PACKET 0x80000205 ///< \~chinese 网络包数据错误 \~english Network data packet error
  80. #define MV_E_NETER 0x80000206 ///< \~chinese 网络相关错误 \~english Network error
  81. #define MV_E_SUPPORT_MODIFY_DEVICE_IP 0x8000020E ///< 在固定IP模式下不支持修改设备IP模式 \~english Current Mode Not Support Modify Ip
  82. #define MV_E_KEY_VERIFICATION 0x8000020F ///< \~chinese 秘钥校验错误 \~english SwitchKey error
  83. #define MV_E_IP_CONFLICT 0x80000221 ///< \~chinese 设备IP冲突 \~english Device IP conflict
  84. /// @}
  85. /********************************************************************/
  86. /// \~chinese
  87. /// \name USB_STATUS对应的错误码:范围0x80000300-0x800003FF
  88. /// @{
  89. /// \~english
  90. /// \name USB_STATUS Error Codes: Range from 0x80000300 to 0x800003FF
  91. /// @{
  92. #define MV_E_USB_READ 0x80000300 ///< \~chinese 读usb出错 \~english Reading USB error
  93. #define MV_E_USB_WRITE 0x80000301 ///< \~chinese 写usb出错 \~english Writing USB error
  94. #define MV_E_USB_DEVICE 0x80000302 ///< \~chinese 设备异常 \~english Device exception
  95. #define MV_E_USB_GENICAM 0x80000303 ///< \~chinese GenICam相关错误 \~english GenICam error
  96. #define MV_E_USB_BANDWIDTH 0x80000304 ///< \~chinese 带宽不足 \~english Insufficient bandwidth
  97. #define MV_E_USB_DRIVER 0x80000305 ///< \~chinese 驱动不匹配或者未装驱动 \~english Driver mismatch or unmounted drive
  98. #define MV_E_USB_UNKNOW 0x800003FF ///< \~chinese USB未知的错误 \~english USB unknown error
  99. /// @}
  100. /********************************************************************/
  101. /// \~chinese
  102. /// \name 升级时对应的错误码:范围0x80000400-0x800004FF
  103. /// @{
  104. /// \~english
  105. /// \name Upgrade Error Codes: Range from 0x80000400 to 0x800004FF
  106. /// @{
  107. #define MV_E_UPG_FILE_MISMATCH 0x80000400 ///< \~chinese 升级固件不匹配 \~english Firmware mismatches
  108. #define MV_E_UPG_LANGUSGE_MISMATCH 0x80000401 ///< \~chinese 升级固件语言不匹配 \~english Firmware language mismatches
  109. #define MV_E_UPG_CONFLICT 0x80000402 ///< \~chinese 升级冲突(设备已经在升级了再次请求升级即返回此错误) \~english Upgrading conflicted (repeated upgrading requests during device upgrade)
  110. #define MV_E_UPG_INNER_ERR 0x80000403 ///< \~chinese 升级时设备内部出现错误 \~english Camera internal error during upgrade
  111. #define MV_E_UPG_UNKNOW 0x800004FF ///< \~chinese 升级时未知错误 \~english Unknown error during upgrade
  112. /// @}
  113. #endif //_MV_ERROR_DEFINE_H_