Files
d330viewer/include/dkam_camera_error.h
2026-01-14 18:07:26 +08:00

131 lines
7.0 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/********************************************************************************
Copyright : XianZhisensorTechnologiesCo.,Ltd
File Name :camera_error
Description: Privide information of error
Author : Yaming Wang
Version : 1.0
Data : 2019-11-
History :
*********************************************************************************/
#ifndef DKAM_CAMERA_ERROR_H_
#define DKAM_CAMERA_ERROR_H_
//局域网内未发现相机
#define SUCCESS 0
//#define MALLOC_ERROR -1
#define INVALID_PARAMETER -2
#define NETWORK_INTERFACE_CONTROLLER_ERROR -3 //网卡错误
#define FORCE_IP_TIMEOUT -4
#define NO_CAMERA -5
#define INIT_SOCKET_ERROR -6
#define SOCKET_BIND_ERROR -7
#define TEST_PACKET_SEND_ERROR -8
//#define GET_XML_URL_ERROR -9
#define XML_DATA_ERROR -10
#define CAMERA_DISCONNECT -11
//#define CREATE_LOG_ERROR -12
#define GET_MTU_ERROR -13
//#define GET_PACK_SIZE_ERROR -14
#define USER_CONFIG_FILE_ERROR -15
//#define SET_CAMERA_ATTRIBUTION_ERROR -16
#define CAMERA_ATTRIBUTION_ERROR -17
//#define TRIGGER_ERROR -18
#define CREATE_THREAD_ERROR -19
//#define STREAM_ON_ERROR -20
#define NO_REGISTER -21
#define UNIMPLEMENTED_PIXEL_FORMAT -22
//#define ACQUISITION_START_ERROR -23
//#define ACQUISITION_STOP_ERROR -24
//#define SET_ROI_ERROR -25
//#define STREAM_OFF_ERROR -26
//#define DISCONNECT_ERROR -27
//#define GET_NODE_MAX_VALUE_ERROR -28
//#define GET_NODE_MIN_VALUE_ERROR -29
//#define SET_HEART_BEAT_TIMEOUT_ERROR -30
//#define GET_HEART_BEAT_TIMEOUT_ERROR -31
//gvsp
//#define SELECT_TIMEOUT -32
//#define INVALID_CHANNEL_INDEX -33
#define CAPTURE_TIMEOUT -34
#define CAPTURE_ERROR -35
#define INET_PTON_ERROR -36
#define WRITE_REG_TIMEOUT -37
#define READ_REG_TIMEOUT -38
#define WRITE_MEM_TIMEOUT -39
#define READ_MEM_TIMEOUT -40
//save_data
#define SAVE_ERROR -41
#define OPEN_FILE_ERROR -42
//#define SAVE_XML_ERROR -43
#define FTP_OPEN_ERROR -44
#define FTP_CONNECT_ERROR -45
#define FTP_PUT_ERROR -46
#define FTP_GET_ERROR -47
//#define CAMERA_REBOOT_ERROR -48
#define DIFFERENT_NETWORK_SEGMENT -49
#define NULL_PTR -50
//#define GET_NODE_INC_VALUE_ERROR -51
//#define WRITE_REG_ERROR -52 //修改完未用
//#define READ_REG_ERROR -53 //修改完未用
//#define WRITE_MEM_ERROR -54 //修改完未用
//#define READ_MEM_ERROR -55 //修改完未用
#define RECEIVE_ERROR -56
//#define GET_CAM_INTERN_PARAM_ERROR -57
//#define GET_CAM_EXTERN_PARAM_ERROR -58
//#define FUSION_ERROR -59 //修改完未用
#define GET_CCP_STATUS_ERROR -60
#define LAST_TRIGGER_NOT_END -61
#define CONNECTED_BY_OTHERS -62
#define REGISTER_ACCESS_ERROR -63
#define CREATE_DISCOVER_OBJ_ERROR -97
#define CREATE_STREAM_OBJ_ERROR -98
#define CREATE_CAMERA_OBJ_ERROR -99
#define GEV_STATUS_SUCCESS 0x0000 //命令执行成功
#define GEV_STATUS_PACKET_RESEND 0x0100 //重发包
#define GEV_STATUS_NOT_IMPLEMENTED 0x8001 //设备不支持该命令
#define GEV_STATUS_INVALID_PARAMETER 0x8002 //参数无效
#define GEV_STATUS_INVALID_ADDRESS 0x8003 //试图访问不存在的地址空间位置
#define GEV_STATUS_WRITE_PROTECT 0x8004 //寄存器地址无法写入
#define GEV_STATUS_BAD_ALIGNMENT 0x8005 //地址偏移量或数据大小对齐错误
#define GEV_STATUS_ACCESS_DENIED 0x8006 //试图访问永久/暂时无法访问的地址
#define GEV_STATUS_BUSY 0x8007 //请求繁忙
#define GEV_STATUS_LOCAL_PROBLEM 0x8008
#define GEV_STATUS_MSG_MISMATCH 0x8009
#define GEV_STATUS_INVALID_PROTOCOL 0x800A
#define GEV_STATUS_NO_MSG 0x800B
#define GEV_STATUS_PACKET_UNAVAILABLE 0x800C //请求的数据包不可用
#define GEV_STATUS_DATA_OVERRUN 0x800D //GVSP发送器内部存储器溢出
#define GEV_STATUS_INVALID_HEADER 0x800E
#define GEV_STATUS_WRONG_CONFIG 0x800F
#define GEV_STATUS_PACKET_NOT_YET_AVAILABLE 0x8010 //尚未获取请求的数据包
#define GEV_STATUS_PACKET_AND_PREV_REMOVED_FROM_MEMORY 0x8011 //请求的数据包和所有先前的数据包不再可用并已从GVSP发送器存储器中丢失
#define GEV_STATUS_PACKET_REMOVED_FROM_MEMORY 0x8012 //请求的数据包不可用且从GVSP发送器存储器中丢失
#define GEV_STATUS_NO_REF_TIME 0x8013 //设备未与主时钟同步以用作时间参考
#define GEV_STATUS_PACKET_TEMPORARILY_UNAVAILABLE 0x8014 //由于临时宽带问题,此时无法重新发送数据包,应在将来再次请求
#define GEV_STATUS_OVERFLOW 0x8015 //设备队列或数据包数据已溢出
#define GEV_STATUS_ACTION_LATE 0x8016 //在已经过去的时间请求里请求的预定动作命令
#define GEV_STATUS_LEADER_TRAILER_OVERFLOW 0x8017 //数据头包或数据尾包的数据包大小不足以放入用于传输该块的所有信息
#define GEV_STATUS_SLERROR 0xC001 //光机异常
#define GEV_STATUS_CMOSERROR 0xC002 //CMOS异常
#define GEV_STATUS_GPUERROR 0xC003 //GPU异常
#define GEV_STATUS_OTHERERROR 0xC004 //其他异常
#define GEV_STATUS_UPDATEERROR 0xC005
#define GEV_STATUS_ERROR 0xCFFF //一般错误
#endif //!DKAM_CAMERA_ERROR_H_