#
Junjie
4 天以前 0ecd4a0ec8c4c5585cbd8975d7786c5618814381
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
## @~chinese 设备类型定义    @~english Device Type Definition
MV_UNKNOW_DEVICE                             = 0x00000000  ## @~chinese 未知设备类型,保留意义       @~english Unknown Device Type, Reserved
MV_GIGE_DEVICE                               = 0x00000001  ## @~chinese GigE设备                     @~english GigE Device
MV_1394_DEVICE                               = 0x00000002  ## @~chinese 1394-a/b 设备                @~english 1394-a/b Device
MV_USB_DEVICE                                = 0x00000004  ## @~chinese USB 设备                     @~english USB Device
MV_CAMERALINK_DEVICE                         = 0x00000008  ## @~chinese CameraLink设备               @~english CameraLink Device
MV_VIR_GIGE_DEVICE                           = 0x00000010  ## @~chinese 虚拟GigE设备               @~english Virtual GigE Device
MV_VIR_USB_DEVICE                            = 0x00000020  ## @~chinese 虚拟USB设备                @~english Virtual USB Device
MV_GENTL_GIGE_DEVICE                         = 0x00000040  ## @~chinese 自研网卡下GigE设备          @~english GenTL GigE Device
MV_GENTL_CAMERALINK_DEVICE                   = 0x00000080  ## @~chinese CameraLink设备            @~english GenTL CameraLink Device
MV_GENTL_CXP_DEVICE                          = 0x00000100  ## @~chinese CoaXPress设备             @~english GenTL CoaXPress Device
MV_GENTL_XOF_DEVICE                          = 0x00000200  ## @~chinese XoF设备                   @~english GenTL XoF Device
MV_GENTL_VIR_DEVICE                          = 0x00000800  ## @~chinese 虚拟采集卡下的设备,不支持虚拟GEV采集卡下的设备                   @~english GenTL Virtual Device,not supports GenTL virtual GigE device
 
## @~chinese 采集卡类型         @~english Interface type
MV_GIGE_INTERFACE                    = 0x00000001          ## @~chinese GigE Vision采集卡        @~english GigE Vision interface
MV_CAMERALINK_INTERFACE              = 0x00000004          ## @~chinese Camera Link采集卡        @~english Camera Link interface
MV_CXP_INTERFACE                     = 0x00000008          ## @~chinese CoaXPress采集卡          @~english CoaXPress interface
MV_XOF_INTERFACE                     = 0x00000010          ## @~chinese XoFLink采集卡            @~english XoFLink interface
MV_VIR_INTERFACE                     = 0x00000020          ## @~chinese 虚拟采集卡            @~english Virtual interface
MV_LC_INTERFACE                      = 0x00000040          ## @~chinese 光源控制卡            @~english Light Controller interface
 
 
 
INFO_MAX_BUFFER_SIZE                         = 64          ## @~chinese 最大的数据信息大小           @~english Maximum data information size
 
MV_MAX_TLS_NUM                               = 8           ## @~chinese 最多支持的传输层实例个数     @~english The maximum number of supported transport layer instances
MV_MAX_DEVICE_NUM                            = 256         ## @~chinese 最大支持的设备个数           @~english The maximum number of supported devices
 
MV_MAX_INTERFACE_NUM                         = 64          #< \~chinese 最大支持的采集卡数量  @~english The maximum number of Frame Grabber interface supported
 
MV_MAX_SERIAL_PORT_NUM                       = 64          ## @~chinese 最大支持的串口数量  @~english The maximum number of serial port supported
 
MV_MAX_GENTL_IF_NUM                          = 256         ## @~chinese 最大支持的GenTL数量          @~english The maximum number of GenTL supported
MV_MAX_GENTL_DEV_NUM                         = 256         ## @~chinese 最大支持的GenTL设备数量      @~english The maximum number of GenTL devices supported
 
## @~chinese 设备的访问模式    @~english Device Access Mode
## @~chinese 独占权限,其他APP只允许读CCP寄存器                        @~english Exclusive authority, other APP is only allowed to read the CCP register
MV_ACCESS_Exclusive                          = 1
## @~chinese 可以从5模式下抢占权限,然后以独占权限打开                 @~english You can seize the authority from the 5 mode, and then open with exclusive authority
MV_ACCESS_ExclusiveWithSwitch                = 2
## @~chinese 控制权限,其他APP允许读所有寄存器                         @~english Control authority, allows other APP reading all registers
MV_ACCESS_Control                            = 3
## @~chinese 可以从5的模式下抢占权限,然后以控制权限打开               @~english You can seize the authority from the 5 mode, and then open with control authority
MV_ACCESS_ControlWithSwitch                  = 4
## @~chinese 以可被抢占的控制权限打开                                  @~english Open with seized control authority
MV_ACCESS_ControlSwitchEnable                = 5
## @~chinese 可以从5的模式下抢占权限,然后以可被抢占的控制权限打开     @~english You can seize the authority from the 5 mode, and then open with seized control authority
MV_ACCESS_ControlSwitchEnableWithKey         = 6
## @~chinese 读模式打开设备,适用于控制权限下                          @~english Open with read mode and is available under control authority
MV_ACCESS_Monitor                            = 7
 
## @~chinese 信息类型                  @~english Information Type
MV_MATCH_TYPE_NET_DETECT                     = 0x00000001  ## @~chinese 网络流量和丢包信息              @~english Network traffic and packet loss information
MV_MATCH_TYPE_USB_DETECT                     = 0x00000002  ## @~chinese host接收到来自U3V设备的字节总数 @~english The total number of bytes host received from U3V device
 
## @~chinese GigEVision IP配置    @~english GigEVision IP Configuration
MV_IP_CFG_STATIC                             = 0x05000000  ## @~chinese 静态         @~english Static
MV_IP_CFG_DHCP                               = 0x06000000  ## @~chinese DHCP         @~english DHCP
MV_IP_CFG_LLA                                = 0x04000000  ## @~chinese LLA          @~english LLA
 
## @~chinese GigEVision网络传输模式    @~english GigEVision Net Transfer Mode
MV_NET_TRANS_DRIVER                          = 0x00000001  ## @~chinese 驱动         @~english Driver
MV_NET_TRANS_SOCKET                          = 0x00000002  ## @~chinese Socket       @~english Socket
 
## @~chinese CameraLink波特率    @~english CameraLink Baud Rates (CLUINT32)
MV_CAML_BAUDRATE_9600                        = 0x00000001  ## @~chinese 9600         @~english 9600
MV_CAML_BAUDRATE_19200                       = 0x00000002  ## @~chinese 19200        @~english 19200
MV_CAML_BAUDRATE_38400                       = 0x00000004  ## @~chinese 38400        @~english 38400
MV_CAML_BAUDRATE_57600                       = 0x00000008  ## @~chinese 57600        @~english 57600
MV_CAML_BAUDRATE_115200                      = 0x00000010  ## @~chinese 115200       @~english 115200
MV_CAML_BAUDRATE_230400                      = 0x00000020  ## @~chinese 230400       @~english 230400
MV_CAML_BAUDRATE_460800                      = 0x00000040  ## @~chinese 460800       @~english 460800
MV_CAML_BAUDRATE_921600                      = 0x00000080  ## @~chinese 921600       @~english 921600
MV_CAML_BAUDRATE_AUTOMAX                     = 0x40000000  ## @~chinese 最大值       @~english Auto Max
 
## @~chinese 异常消息类型    @~english Exception message type
MV_EXCEPTION_DEV_DISCONNECT                  = 0x00008001  ## @~chinese 设备断开连接              @~english The device is disconnected
MV_EXCEPTION_VERSION_CHECK                   = 0x00008002  ## @~chinese SDK与驱动版本不匹配       @~english SDK does not match the driver version
 
 
MAX_EVENT_NAME_SIZE                          = 128         ## @~chinese 设备Event事件名称最大长度 @~english Max length of event name
MV_MAX_NODE_NUM                              = 1024        ## @~chinese 最大节点个数              @~english Max Number of Nodes
MV_MAX_NODE_NAME_LEN                         = 64          ## @~chinese 节点名称的最大长度        @~english Max Length of a Node Name
MV_MAX_NODE_ERROR_NUM                        = 64          ## @~chinese 最大错误个数              @~english Max Number of Error
 
 
MV_MAX_XML_SYMBOLIC_NUM                      = 64          ## @~chinese 最大XML符号数                @~english Max XML Symbolic Number
MV_MAX_ENUM_SYMBOLIC_NUM                     = 256         ## @~chinese 最大枚举条目对应的符号数量   @~english Max Enum Entry Symbolic Number 
MV_MAX_SYMBOLIC_LEN                          = 64          ## @~chinese 最大枚举条目对应的符号长度     @~english Max Enum Entry Symbolic Number
 
MV_MAX_SPLIT_NUM                             = 8           ## @~chinese 分时曝光时最多将源图像拆分的个数 @~english The maximum number of source image to be split in time-division exposure