You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cigarette/CigaretteSingle/MVS3.2.1/Include/MvErrorDefine.h

106 lines
6.9 KiB
C

#ifndef _MV_ERROR_DEFINE_H_
#define _MV_ERROR_DEFINE_H_
/********************************************************************/
/// \~chinese
/// \name <20><>ȷ<EFBFBD><EFBFBD><EBB6A8>
/// @{
/// \~english
/// \name Definition of correct code
/// @{
#define MV_OK 0x00000000 ///< \~chinese <20>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD>޴<EFBFBD><DEB4><EFBFBD> \~english Successed, no error
/// @}
/********************************************************************/
/// \~chinese
/// \name ͨ<>ô<EFBFBD><C3B4><EFBFBD><EFBFBD><EFBFBD><EBB6A8>:<3A><>Χ0x80000000-0x800000FF
/// @{
/// \~english
/// \name Definition of General error code
/// @{
#define MV_E_HANDLE 0x80000000 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD>ľ<EFBFBD><C4BE><EFBFBD> \~english Error or invalid handle
#define MV_E_SUPPORT 0x80000001 ///< \~chinese <20><>֧<EFBFBD>ֵĹ<D6B5><C4B9><EFBFBD> \~english Not supported function
#define MV_E_BUFOVER 0x80000002 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english Buffer overflow
#define MV_E_CALLORDER 0x80000003 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english Function calling order error
#define MV_E_PARAMETER 0x80000004 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD> \~english Incorrect parameter
#define MV_E_RESOURCE 0x80000006 ///< \~chinese <20><>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7> \~english Applying resource failed
#define MV_E_NODATA 0x80000007 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english No data
#define MV_E_PRECONDITION 0x80000008 ///< \~chinese ǰ<><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󣬻<EFBFBD><F3A3ACBB><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD>ѷ<EFBFBD><D1B7><EFBFBD><EFBFBD>仯 \~english Precondition error, or running environment changed
#define MV_E_VERSION 0x80000009 ///< \~chinese <20><EFBFBD><E6B1BE>ƥ<EFBFBD><C6A5> \~english Version mismatches
#define MV_E_NOENOUGH_BUF 0x8000000A ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4>ռ<D5BC><E4B2BB> \~english Insufficient memory
#define MV_E_ABNORMAL_IMAGE 0x8000000B ///< \~chinese <20>쳣ͼ<ECB3A3>񣬿<EFBFBD><F1A3ACBF><EFBFBD><EFBFBD>Ƕ<EFBFBD><C7B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english Abnormal image, maybe incomplete image because of lost packet
#define MV_E_LOAD_LIBRARY 0x8000000C ///< \~chinese <20><>̬<EFBFBD><CCAC><EFBFBD><EFBFBD>DLLʧ<4C><CAA7> \~english Load library failed
#define MV_E_NOOUTBUF 0x8000000D ///< \~chinese û<>п<EFBFBD><D0BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD> \~english No Avaliable Buffer
#define MV_E_ENCRYPT 0x8000000E ///< \~chinese <20><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD> \~english Encryption error
#define MV_E_UNKNOW 0x800000FF ///< \~chinese δ֪<CEB4>Ĵ<EFBFBD><C4B4><EFBFBD> \~english Unknown error
/// @}
/********************************************************************/
/// \~chinese
/// \name GenICamϵ<6D>д<EFBFBD><D0B4><EFBFBD>:<3A><>Χ0x80000100-0x800001FF
/// @{
/// \~english
/// \name GenICam Series Error Codes: Range from 0x80000100 to 0x800001FF
/// @{
#define MV_E_GC_GENERIC 0x80000100 ///< \~chinese ͨ<>ô<EFBFBD><C3B4><EFBFBD> \~english General error
#define MV_E_GC_ARGUMENT 0x80000101 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD> \~english Illegal parameters
#define MV_E_GC_RANGE 0x80000102 ///< \~chinese ֵ<><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Χ \~english The value is out of range
#define MV_E_GC_PROPERTY 0x80000103 ///< \~chinese <20><><EFBFBD><EFBFBD> \~english Property
#define MV_E_GC_RUNTIME 0x80000104 ///< \~chinese <20><><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english Running environment error
#define MV_E_GC_LOGICAL 0x80000105 ///< \~chinese <20>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD> \~english Logical error
#define MV_E_GC_ACCESS 0x80000106 ///< \~chinese <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english Node accessing condition error
#define MV_E_GC_TIMEOUT 0x80000107 ///< \~chinese <20><>ʱ \~english Timeout
#define MV_E_GC_DYNAMICCAST 0x80000108 ///< \~chinese ת<><D7AA><EFBFBD>쳣 \~english Transformation exception
#define MV_E_GC_UNKNOW 0x800001FF ///< \~chinese GenICamδ֪<CEB4><D6AA><EFBFBD><EFBFBD> \~english GenICam unknown error
/// @}
/********************************************************************/
/// \~chinese
/// \name GigE_STATUS<55><53>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>:<3A><>Χ0x80000200-0x800002FF
/// @{
/// \~english
/// \name GigE_STATUS Error Codes: Range from 0x80000200 to 0x800002FF
/// @{
#define MV_E_NOT_IMPLEMENTED 0x80000200 ///< \~chinese <20><><EFBFBD><EFBFBD><EEB2BB><EFBFBD>豸֧<E8B1B8><D6A7> \~english The command is not supported by device
#define MV_E_INVALID_ADDRESS 0x80000201 ///< \~chinese <20><><EFBFBD>ʵ<EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english The target address being accessed does not exist
#define MV_E_WRITE_PROTECT 0x80000202 ///< \~chinese Ŀ<><C4BF><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>д \~english The target address is not writable
#define MV_E_ACCESS_DENIED 0x80000203 ///< \~chinese <20><EFBFBD>޷<EFBFBD><DEB7><EFBFBD>Ȩ<EFBFBD><C8A8> \~english No permission
#define MV_E_BUSY 0x80000204 ///< \~chinese <20>豸æ<E8B1B8><C3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> \~english Device is busy, or network disconnected
#define MV_E_PACKET 0x80000205 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD> \~english Network data packet error
#define MV_E_NETER 0x80000206 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ش<EFBFBD><D8B4><EFBFBD> \~english Network error
#define MV_E_IP_CONFLICT 0x80000221 ///< \~chinese <20>豸IP<49><50>ͻ \~english Device IP conflict
/// @}
/********************************************************************/
/// \~chinese
/// \name USB_STATUS<55><53>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>:<3A><>Χ0x80000300-0x800003FF
/// @{
/// \~english
/// \name USB_STATUS Error Codes: Range from 0x80000300 to 0x800003FF
/// @{
#define MV_E_USB_READ 0x80000300 ///< \~chinese <20><>usb<73><62><EFBFBD><EFBFBD> \~english Reading USB error
#define MV_E_USB_WRITE 0x80000301 ///< \~chinese дusb<73><62><EFBFBD><EFBFBD> \~english Writing USB error
#define MV_E_USB_DEVICE 0x80000302 ///< \~chinese <20><EFBFBD>쳣 \~english Device exception
#define MV_E_USB_GENICAM 0x80000303 ///< \~chinese GenICam<61><6D><EFBFBD>ش<EFBFBD><D8B4><EFBFBD> \~english GenICam error
#define MV_E_USB_BANDWIDTH 0x80000304 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ô<EFBFBD><C3B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \~english Insufficient bandwidth, this error code is newly added
#define MV_E_USB_DRIVER 0x80000305 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δװ<CEB4><D7B0><EFBFBD><EFBFBD> \~english Driver mismatch or unmounted drive
#define MV_E_USB_UNKNOW 0x800003FF ///< \~chinese USBδ֪<CEB4>Ĵ<EFBFBD><C4B4><EFBFBD> \~english USB unknown error
/// @}
/********************************************************************/
/// \~chinese
/// \name <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>:<3A><>Χ0x80000400-0x800004FF
/// @{
/// \~english
/// \name Upgrade Error Codes: Range from 0x80000400 to 0x800004FF
/// @{
#define MV_E_UPG_FILE_MISMATCH 0x80000400 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD>̼<EFBFBD><CCBC><EFBFBD>ƥ<EFBFBD><C6A5> \~english Firmware mismatches
#define MV_E_UPG_LANGUSGE_MISMATCH 0x80000401 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD>̼<EFBFBD><CCBC><EFBFBD><EFBFBD>Բ<EFBFBD>ƥ<EFBFBD><C6A5> \~english Firmware language mismatches
#define MV_E_UPG_CONFLICT 0x80000402 ///< \~chinese <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ش˴<D8B4><CBB4><EFBFBD><EFBFBD><EFBFBD> \~english Upgrading conflicted (repeated upgrading requests during device upgrade)
#define MV_E_UPG_INNER_ERR 0x80000403 ///< \~chinese <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD> \~english Camera internal error during upgrade
#define MV_E_UPG_UNKNOW 0x800004FF ///< \~chinese <20><><EFBFBD><EFBFBD>ʱδ֪<CEB4><D6AA><EFBFBD><EFBFBD> \~english Unknown error during upgrade
/// @}
#endif //_MV_ERROR_DEFINE_H_