Macros
Macro Definition

Definitions for some constants. More...

Macros

#define MV_UNKNOW_DEVICE   0x00000000
 Unknown device type. More...
 
#define MV_GIGE_DEVICE   0x00000001
 GigE device. More...
 
#define MV_1394_DEVICE   0x00000002
 1394-a/b device. More...
 
#define MV_USB_DEVICE   0x00000004
 USB device. More...
 
#define MV_CAMERALINK_DEVICE   0x00000008
 CameraLink device (serial port). More...
 
#define MV_VIR_GIGE_DEVICE   0x00000010
 Virtual GigE device. More...
 
#define MV_VIR_USB_DEVICE   0x00000020
 Virtual USB device. More...
 
#define MV_GENTL_GIGE_DEVICE   0x00000040
 GenTL GigE device, which is supported by some frame grabbers. More...
 
#define MV_GENTL_CAMERALINK_DEVICE   0x00000080
 GenTL CameraLink Device. More...
 
#define MV_GENTL_CXP_DEVICE   0x00000100
 GenTL CoaXPress Device. More...
 
#define MV_GENTL_XOF_DEVICE   0x00000200
 GenTL XoF Device. More...
 
#define INFO_MAX_BUFFER_SIZE   64
 Maximum data information size. More...
 
#define MV_MAX_TLS_NUM   8
 The maximum number of supported transport layer instances. More...
 
#define MV_MAX_DEVICE_NUM   256
 The maximum number of supported devices. More...
 
#define MV_MAX_INTERFACE_NUM   64
 The maximum number of supported frame grabbers. More...
 
#define MV_MAX_GENTL_IF_NUM   256
 The maximum number of supported GenTL APIs. More...
 
#define MV_MAX_GENTL_DEV_NUM   256
 The maximum number of supported GenTL devices. More...
 
#define MV_MAX_SERIAL_PORT_NUM   64
 The maximum number of supported serial ports. More...
 
#define MV_MAX_NODE_NUM   256
 The maximum number of nodes. More...
 
#define MV_MAX_NODE_NAME_LEN   64
 The maximum length of a node name. More...
 
#define MV_MAX_NODE_ERROR_NUM   64
 The maximum number of error nodes. More...
 
#define MV_GIGE_INTERFACE   0x00000001
 GigE Vision frame grabber. More...
 
#define MV_CAMERALINK_INTERFACE   0x00000004
 CameraLink frame grabber. More...
 
#define MV_CXP_INTERFACE   0x00000008
 CoaXPress frame grabber. More...
 
#define MV_XOF_INTERFACE   0x00000010
 XoFLink frame grabber. More...
 
#define MV_ACCESS_Exclusive   1
 Exclusive permission. Other apps are only allowed to read the CCP register. More...
 
#define MV_ACCESS_ExclusiveWithSwitch   2
 Preempt permission in mode 5, and then open with exclusive permission. More...
 
#define MV_ACCESS_Control   3
 Control permission. Other apps are allowed to read all registers. More...
 
#define MV_ACCESS_ControlWithSwitch   4
 Preempt permission in mode 5, and then open with control permission. More...
 
#define MV_ACCESS_ControlSwitchEnable   5
 Open with control permission that can be preempted. More...
 
#define MV_ACCESS_ControlSwitchEnableWithKey   6
 Preempt permission in mode 5, and then open with control permission that can be preempted. More...
 
#define MV_ACCESS_Monitor   7
 Open device with reading mode, applicable for controling permission. More...
 
#define MV_MATCH_TYPE_NET_DETECT   0x00000001
 Network flow and packet loss information. More...
 
#define MV_MATCH_TYPE_USB_DETECT   0x00000002
 Total byte number of USB3Vision camera received by host. More...
 
#define MV_IP_CFG_STATIC   0x05000000
 Static. More...
 
#define MV_IP_CFG_DHCP   0x06000000
 DHCP. More...
 
#define MV_IP_CFG_LLA   0x04000000
 LLA. More...
 
#define MV_NET_TRANS_DRIVER   0x00000001
 Driver. More...
 
#define MV_NET_TRANS_SOCKET   0x00000002
 Socket. More...
 
#define MV_CAML_BAUDRATE_9600   0x00000001
 9600 baud. More...
 
#define MV_CAML_BAUDRATE_19200   0x00000002
 19200 baud. More...
 
#define MV_CAML_BAUDRATE_38400   0x00000004
 38400 baud. More...
 
#define MV_CAML_BAUDRATE_57600   0x00000008
 57600 baud. More...
 
#define MV_CAML_BAUDRATE_115200   0x00000010
 115200 baud. More...
 
#define MV_CAML_BAUDRATE_230400   0x00000020
 230400 baud. More...
 
#define MV_CAML_BAUDRATE_460800   0x00000040
 460800 baud. More...
 
#define MV_CAML_BAUDRATE_921600   0x00000080
 921600 baud. More...
 
#define MV_CAML_BAUDRATE_AUTOMAX   0x40000000
 Maximum value. More...
 
#define MV_EXCEPTION_DEV_DISCONNECT   0x00008001
 The device is disconnected. More...
 
#define MV_EXCEPTION_VERSION_CHECK   0x00008002
 SDK does not match the driver version. More...
 
#define MAX_EVENT_NAME_SIZE   128
 Maximum length of event name. More...
 
#define MV_MAX_XML_SYMBOLIC_NUM   64
 Maximum number of XML symbols. More...
 
#define MV_MAX_SYMBOLIC_LEN   64
 Corresponding symbol length of the maximum enumeration item. More...
 
#define MV_MAX_SPLIT_NUM   8
 Maximum number of images that can be split from the source image in multi-light control mode. More...
 
#define MV_MAX_ENUM_SYMBOLIC_NUM   256
 Corresponding symbol quantity of the maximum enumeration item. More...
 
#define MV_GVSP_PIX_MONO   0x01000000
 Mono format. More...
 
#define MV_GVSP_PIX_RGB   0x02000000
 RGB format. More...
 
#define MV_GVSP_PIX_COLOR   0x02000000
 COLOR format. More...
 
#define MV_GVSP_PIX_CUSTOM   0x80000000
 CUSTOM format. More...
 
#define MV_GVSP_PIX_COLOR_MASK   0xFF000000
 COLOR_MASK format. More...
 
#define MV_PIXEL_BIT_COUNT(n)   ((n) << 16)
 The valid number of bits a pixel takes, which can be used to calculate the memory needed to store the image. More...
 

Detailed Description

Definitions for some constants.

Macro Definition Documentation

◆ MV_UNKNOW_DEVICE

#define MV_UNKNOW_DEVICE   0x00000000

Unknown device type.

◆ MV_GIGE_DEVICE

#define MV_GIGE_DEVICE   0x00000001

◆ MV_1394_DEVICE

#define MV_1394_DEVICE   0x00000002

1394-a/b device.

◆ MV_USB_DEVICE

#define MV_USB_DEVICE   0x00000004

◆ MV_CAMERALINK_DEVICE

#define MV_CAMERALINK_DEVICE   0x00000008

CameraLink device (serial port).

◆ MV_VIR_GIGE_DEVICE

#define MV_VIR_GIGE_DEVICE   0x00000010

Virtual GigE device.

◆ MV_VIR_USB_DEVICE

#define MV_VIR_USB_DEVICE   0x00000020

Virtual USB device.

◆ MV_GENTL_GIGE_DEVICE

#define MV_GENTL_GIGE_DEVICE   0x00000040

◆ MV_GENTL_CAMERALINK_DEVICE

#define MV_GENTL_CAMERALINK_DEVICE   0x00000080

◆ MV_GENTL_CXP_DEVICE

#define MV_GENTL_CXP_DEVICE   0x00000100

◆ MV_GENTL_XOF_DEVICE

#define MV_GENTL_XOF_DEVICE   0x00000200

◆ INFO_MAX_BUFFER_SIZE

#define INFO_MAX_BUFFER_SIZE   64

Maximum data information size.

◆ MV_MAX_TLS_NUM

#define MV_MAX_TLS_NUM   8

The maximum number of supported transport layer instances.

◆ MV_MAX_DEVICE_NUM

#define MV_MAX_DEVICE_NUM   256

The maximum number of supported devices.

Examples
QuickSoftwareTrigger.cpp.

◆ MV_MAX_INTERFACE_NUM

#define MV_MAX_INTERFACE_NUM   64

The maximum number of supported frame grabbers.

◆ MV_MAX_GENTL_IF_NUM

#define MV_MAX_GENTL_IF_NUM   256

The maximum number of supported GenTL APIs.

◆ MV_MAX_GENTL_DEV_NUM

#define MV_MAX_GENTL_DEV_NUM   256

The maximum number of supported GenTL devices.

◆ MV_MAX_SERIAL_PORT_NUM

#define MV_MAX_SERIAL_PORT_NUM   64

The maximum number of supported serial ports.

◆ MV_MAX_NODE_NUM

#define MV_MAX_NODE_NUM   256

The maximum number of nodes.

◆ MV_MAX_NODE_NAME_LEN

#define MV_MAX_NODE_NAME_LEN   64

The maximum length of a node name.

◆ MV_MAX_NODE_ERROR_NUM

#define MV_MAX_NODE_ERROR_NUM   64

The maximum number of error nodes.

◆ MV_GIGE_INTERFACE

#define MV_GIGE_INTERFACE   0x00000001

GigE Vision frame grabber.

Examples
Events_Interface.cpp, InterfaceAndDeviceDemo.cpp, and InterfaceDemo.cpp.

◆ MV_CAMERALINK_INTERFACE

#define MV_CAMERALINK_INTERFACE   0x00000004

CameraLink frame grabber.

Examples
Events_Interface.cpp, InterfaceAndDeviceDemo.cpp, and InterfaceDemo.cpp.

◆ MV_CXP_INTERFACE

#define MV_CXP_INTERFACE   0x00000008

◆ MV_XOF_INTERFACE

#define MV_XOF_INTERFACE   0x00000010

◆ MV_ACCESS_Exclusive

#define MV_ACCESS_Exclusive   1

Exclusive permission. Other apps are only allowed to read the CCP register.

Examples
ForceIP.cpp, and ForceIPEx.cpp.

◆ MV_ACCESS_ExclusiveWithSwitch

#define MV_ACCESS_ExclusiveWithSwitch   2

Preempt permission in mode 5, and then open with exclusive permission.

◆ MV_ACCESS_Control

#define MV_ACCESS_Control   3

Control permission. Other apps are allowed to read all registers.

Examples
MultiCast.cpp.

◆ MV_ACCESS_ControlWithSwitch

#define MV_ACCESS_ControlWithSwitch   4

Preempt permission in mode 5, and then open with control permission.

◆ MV_ACCESS_ControlSwitchEnable

#define MV_ACCESS_ControlSwitchEnable   5

Open with control permission that can be preempted.

◆ MV_ACCESS_ControlSwitchEnableWithKey

#define MV_ACCESS_ControlSwitchEnableWithKey   6

Preempt permission in mode 5, and then open with control permission that can be preempted.

◆ MV_ACCESS_Monitor

#define MV_ACCESS_Monitor   7

Open device with reading mode, applicable for controling permission.

Examples
MultiCast.cpp.

◆ MV_MATCH_TYPE_NET_DETECT

#define MV_MATCH_TYPE_NET_DETECT   0x00000001

Network flow and packet loss information.

◆ MV_MATCH_TYPE_USB_DETECT

#define MV_MATCH_TYPE_USB_DETECT   0x00000002

Total byte number of USB3Vision camera received by host.

◆ MV_IP_CFG_STATIC

#define MV_IP_CFG_STATIC   0x05000000

Static.

Examples
ForceIP.cpp, and ForceIPEx.cpp.

◆ MV_IP_CFG_DHCP

#define MV_IP_CFG_DHCP   0x06000000

DHCP.

◆ MV_IP_CFG_LLA

#define MV_IP_CFG_LLA   0x04000000

LLA.

◆ MV_NET_TRANS_DRIVER

#define MV_NET_TRANS_DRIVER   0x00000001

Driver.

◆ MV_NET_TRANS_SOCKET

#define MV_NET_TRANS_SOCKET   0x00000002

Socket.

◆ MV_CAML_BAUDRATE_9600

#define MV_CAML_BAUDRATE_9600   0x00000001

9600 baud.

◆ MV_CAML_BAUDRATE_19200

#define MV_CAML_BAUDRATE_19200   0x00000002

19200 baud.

◆ MV_CAML_BAUDRATE_38400

#define MV_CAML_BAUDRATE_38400   0x00000004

38400 baud.

◆ MV_CAML_BAUDRATE_57600

#define MV_CAML_BAUDRATE_57600   0x00000008

57600 baud.

◆ MV_CAML_BAUDRATE_115200

#define MV_CAML_BAUDRATE_115200   0x00000010

115200 baud.

◆ MV_CAML_BAUDRATE_230400

#define MV_CAML_BAUDRATE_230400   0x00000020

230400 baud.

◆ MV_CAML_BAUDRATE_460800

#define MV_CAML_BAUDRATE_460800   0x00000040

460800 baud.

◆ MV_CAML_BAUDRATE_921600

#define MV_CAML_BAUDRATE_921600   0x00000080

921600 baud.

◆ MV_CAML_BAUDRATE_AUTOMAX

#define MV_CAML_BAUDRATE_AUTOMAX   0x40000000

Maximum value.

◆ MV_EXCEPTION_DEV_DISCONNECT

#define MV_EXCEPTION_DEV_DISCONNECT   0x00008001

The device is disconnected.

Examples
ReconnectDemo.cpp.

◆ MV_EXCEPTION_VERSION_CHECK

#define MV_EXCEPTION_VERSION_CHECK   0x00008002

SDK does not match the driver version.

◆ MAX_EVENT_NAME_SIZE

#define MAX_EVENT_NAME_SIZE   128

Maximum length of event name.

◆ MV_MAX_XML_SYMBOLIC_NUM

#define MV_MAX_XML_SYMBOLIC_NUM   64

Maximum number of XML symbols.

◆ MV_MAX_SYMBOLIC_LEN

#define MV_MAX_SYMBOLIC_LEN   64

Corresponding symbol length of the maximum enumeration item.

◆ MV_MAX_SPLIT_NUM

#define MV_MAX_SPLIT_NUM   8

Maximum number of images that can be split from the source image in multi-light control mode.

◆ MV_MAX_ENUM_SYMBOLIC_NUM

#define MV_MAX_ENUM_SYMBOLIC_NUM   256

Corresponding symbol quantity of the maximum enumeration item.

◆ MV_GVSP_PIX_MONO

#define MV_GVSP_PIX_MONO   0x01000000

Mono format.

◆ MV_GVSP_PIX_RGB

#define MV_GVSP_PIX_RGB   0x02000000

RGB format.

◆ MV_GVSP_PIX_COLOR

#define MV_GVSP_PIX_COLOR   0x02000000

COLOR format.

◆ MV_GVSP_PIX_CUSTOM

#define MV_GVSP_PIX_CUSTOM   0x80000000

CUSTOM format.

◆ MV_GVSP_PIX_COLOR_MASK

#define MV_GVSP_PIX_COLOR_MASK   0xFF000000

COLOR_MASK format.

◆ MV_PIXEL_BIT_COUNT

#define MV_PIXEL_BIT_COUNT (   n)    ((n) << 16)

The valid number of bits a pixel takes, which can be used to calculate the memory needed to store the image.