MvsSDK

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MvIpCfgStatic = 0x05000000 // MvIpCfgStatic: \~chinese 静态 \~english Static
	MvIpCfgDhcp   = 0x06000000 // MvIpCfgDhcp: \~chinese DHCP \~english DHCP
	MvIpCfgLla    = 0x04000000 // MvIpCfgLla: \~chinese LLA \~english LLA
)

GigEVision IP Configuration

View Source
const (
	MvNetTransDriver = 0x00000001 // MvNetTransDriver: \~chinese 驱动 \~english Driver
	MvNetTransSocket = 0x00000002 // MvNetTransSocket: \~chinese Socket \~english Socket
)

GigEVision Net Transfer Mode

View Source
const (
	MvCamlBaudrate9600    = 0x00000001 // MvCamlBaudrate9600: \~chinese 9600 \~english 9600
	MvCamlBaudrate19200   = 0x00000002 // MvCamlBaudrate19200: \~chinese 19200 \~english 19200
	MvCamlBaudrate38400   = 0x00000004 // MvCamlBaudrate38400: \~chinese 38400 \~english 38400
	MvCamlBaudrate57600   = 0x00000008 // MvCamlBaudrate57600: \~chinese 57600 \~english 57600
	MvCamlBaudrate115200  = 0x00000010 // MvCamlBaudrate115200: \~chinese 115200 \~english 115200
	MvCamlBaudrate230400  = 0x00000020 // MvCamlBaudrate230400: \~chinese 230400 \~english 230400
	MvCamlBaudrate460800  = 0x00000040 // MvCamlBaudrate460800: \~chinese 460800 \~english 460800
	MvCamlBaudrate921600  = 0x00000080 // MvCamlBaudrate921600: \~chinese 921600 \~english 921600
	MvCamlBaudrateAutomax = 0x40000000 // MvCamlBaudrateAutomax: \~chinese 最大值 \~english Auto Max

)

CameraLink Baud Rates (CLUINT32)

View Source
const (
	MvExceptionDevDisconnect = 0x00008001 // MvExceptionDevDisconnect: \~chinese 设备断开连接 \~english The device is disconnected
	MvExceptionVersionCheck  = 0x00008002 // MvExceptionVersionCheck: \~chinese SDK与驱动版本不匹配 \~english SDK does not match the driver version
)

Exception message type

View Source
const (
	MvLayerUnknowDevice          = 0x00000000 // MvUnknowDevice: \~chinese 未知设备类型,保留意义 \~english Unknown Device Type, Reserved
	MvLayerGigeDevice            = 0x00000001 // MvGigeDevice: \~chinese GigE设备 \~english GigE Device
	MvLayer1394Device            = 0x00000002 // Mv1394Device: \~chinese 1394-a/b 设备 \~english 1394-a/b Device
	MvLayerUsbDevice             = 0x00000004 // MvUsbDevice: \~chinese USB 设备 \~english USB Device
	MvLayerCameralinkDevice      = 0x00000008 // MvCameralinkDevice: \~chinese CameraLink设备 \~english CameraLink Device
	MvLayerVirGigeDevice         = 0x00000010 // MvVirGigeDevice: \~chinese 虚拟GigE设备 \~english Virtual GigE Device
	MvLayerVirUsbDevice          = 0x00000020 // MvVirUsbDevice: \~chinese 虚拟USB设备 \~english Virtual USB Device
	MvLayerGentlGigeDevice       = 0x00000040 // MvGentlGigeDevice: \~chinese 自研网卡下GigE设备 \~english GenTL GigE Device
	MvLayerGentlCameralinkDevice = 0x00000080 // MvGentlCameralinkDevice: \~chinese CameraLink相机设备 \~english GenTL CameraLink Camera Device
	MvLayerGentlCxpDevice        = 0x00000100 // MvGentlCxpDevice: \~chinese CoaXPress设备 \~english GenTL CoaXPress Device
	MvLayerGentlXofDevice        = 0x00000200 // MvGentlXofDevice: \~chinese XoF设备 \~english GenTL XoF Device
)

Device Transport Layer Protocol Type

View Source
const (
	MvAccessExclusive                  = 1 // MvAccessExclusive: \~chinese 独占权限,其他APP只允许读CCP寄存器 \~english Exclusive authority, other APP is only allowed to read the CCP register
	MvAccessExclusiveWithSwitch        = 2 // MvAccessExclusiveWithSwitch: \~chinese 可以从5模式下抢占权限,然后以独占权限打开 \~english You can seize the authority from the 5 mode, and then open with exclusive authority
	MvAccessControl                    = 3 // MvAccessControl: \~chinese 控制权限,其他APP允许读所有寄存器 \~english Control authority, allows other APP reading all registers
	MvAccessControlWithSwitch          = 4 // MvAccessControlWithSwitch: \~chinese 可以从5的模式下抢占权限,然后以控制权限打开 \~english You can seize the authority from the 5 mode, and then open with control authority
	MvAccessControlSwitchEnable        = 5 // MvAccessControlSwitchEnable: \~chinese 以可被抢占的控制权限打开 \~english Open with seized control authority
	MvAccessControlSwitchEnableWithKey = 6 // MvAccessControlSwitchEnableWithKey: \~chinese 可以从5的模式下抢占权限,然后以可被抢占的控制权限打开 \~english You can seize the authority from the 5 mode, and then open with seized control authority
	MvAccessMonitor                    = 7 // MvAccessMonitor: \~chinese 读模式打开设备,适用于控制权限下 \~english Open with read mode and is available under control authority
)

Device Access Mode

View Source
const (
	PixelTypeGvspBGR12Packed          = 36700187
	PixelTypeGvspCoord3DDepthPlusMask = -2112094207
	PixelTypeGvspRGB10V1Packed        = 35651612
	PixelTypeGvspBayerRG12Packed      = 17563691
	PixelTypeGvspRGB12Planar          = 36700195
	PixelTypeGvspYUV411Packed         = 34340894
	PixelTypeGvspYUV444Packed         = 35127328
	PixelTypeGvspBGR10Packed          = 36700185
	PixelTypeGvspYCBCR4228            = 34603067
	PixelTypeGvspYCBCR7094228         = 34603073
	PixelTypeGvspRGB12Packed          = 36700186
	PixelTypeGvspCoord3DABC32fPlanar  = 39846081
	PixelTypeGvspMono8Signed          = 17301506
	PixelTypeGvspYUV422YUYVPacked     = 34603058
	PixelTypeGvspMono4p               = 17039417
	PixelTypeGvspBayerGR12Packed      = 17563690
	PixelTypeGvspCoord3DABC32         = -2107625471
	PixelTypeGvspCoord3DAB32f         = -2109722622
	PixelTypeGvspYCBCR7094118CBYYCRYY = 34340930
	PixelTypeGvspYCBCR7094228CBYCRY   = 34603077
	PixelTypeGvspCoord3DAB32          = -2109722621
	PixelTypeGvspYCBCR6014228CBYCRY   = 34603076
	PixelTypeGvspYCBCR7098CBYCR       = 35127360
	PixelTypeGvspCoord3DAC32f         = 36176066
	PixelTypeGvspYCBCR8CBYCR          = 35127354
	PixelTypeGvspYCBCR4118CBYYCRYY    = 34340924
	PixelTypeGvspCoord3DABC32f        = 39846080
	PixelTypeGvspYUV422Packed         = 34603039
	PixelTypeGvspCoord3DABC16         = 36700345
	PixelTypeGvspRGB10Planar          = 36700194
	PixelTypeGvspRGB8Planar           = 35127329
	PixelTypeGvspRGB10Packed          = 36700184
	PixelTypeGvspCoord3DC32           = -2128596986
	PixelTypeGvspRGB16Packed          = 36700211
	PixelTypeGvspYCBCR4228CBYCRY      = 34603075
	PixelTypeGvspYCBCR6014118CBYYCRYY = 34340927
	PixelTypeGvspBGRA8Packed          = 35651607
	PixelTypeGvspJpeg                 = -2145910783
	PixelTypeGvspYCBCR6014228         = 34603070
	PixelTypeGvspCoord3DC32f          = 18874559
	PixelTypeGvspBayerGB12Packed      = 17563692
	PixelTypeGvspBayerRG16            = 17825839
	PixelTypeGvspBayerGB10Packed      = 17563688
	PixelTypeGvspRGB12V1Packed        = 35913780
	PixelTypeGvspRGB16Planar          = 36700196
	PixelTypeGvspBGR565Packed         = 34603062
	PixelTypeGvspMono16               = 17825799
	PixelTypeGvspBayerBG10            = 17825807
	PixelTypeGvspCoord3DAC32f64       = 37748930
	PixelTypeGvspRGBA8Packed          = 35651606
	PixelTypeGvspMono12               = 17825797
	PixelTypeGvspCoord3DA32f          = 18874557
	PixelTypeGvspYCBCR6018CBYCR       = 35127357
	PixelTypeGvspBayerGB16            = 17825840
	PixelTypeGvspCoord3DAC32          = -2109722620
	PixelTypeGvspBayerBG16            = 17825841
	PixelTypeGvspCoord3DAC32fPlanar   = 37748931
	PixelTypeGvspBayerBG10Packed      = 17563689
	PixelTypeGvspRGB8Packed           = 35127316
	PixelTypeGvspBGR8Packed           = 35127317
	PixelTypeGvspBayerGR16            = 17825838
	PixelTypeGvspBayerGR10Packed      = 17563686
	PixelTypeGvspMono8                = 17301505
	PixelTypeGvspMono14               = 17825829
	PixelTypeGvspBayerGB10            = 17825806
	PixelTypeGvspUndefined            = -1
	PixelTypeGvspBayerRG8             = 17301513
	PixelTypeGvspBayerGB12            = 17825810
	PixelTypeGvspMono12Packed         = 17563654
	PixelTypeGvspBayerBG8             = 17301515
	PixelTypeGvspBayerBG12Packed      = 17563693
	PixelTypeGvspMono1p               = 16842807
	PixelTypeGvspMono2p               = 16908344
	PixelTypeGvspRGB565Packed         = 34603061
	PixelTypeGvspRGB10V2Packed        = 35651613
	PixelTypeGvspBayerRG12            = 17825809
	PixelTypeGvspMono10Packed         = 17563652
	PixelTypeGvspBayerGR8             = 17301512
	PixelTypeGvspBayerGB8             = 17301514
	PixelTypeGvspBayerGR12            = 17825808
	PixelTypeGvspBayerGR10            = 17825804
	PixelTypeGvspBayerRG10            = 17825805
	PixelTypeGvspBayerBG12            = 17825811
	PixelTypeGvspCoord3DA32           = -2128596987
	PixelTypeGvspMono10               = 17825795
	PixelTypeGvspBayerRG10Packed      = 17563687
	PixelTypeGvspYUV420SPNV12         = 34373633
	PixelTypeGvspYUV420SPNV21         = 34373634
	PixelTypeGvspCoord3DC16           = 17825976
	PixelTypeGvspHBMono8              = -2130182143
	PixelTypeGvspHBMono10             = -2129657853
	PixelTypeGvspHBMono10Packed       = -2129919996
	PixelTypeGvspHBMono12             = -2129657851
	PixelTypeGvspHBMono12Packed       = -2129919994
	PixelTypeGvspHBMono16             = -2129657849
	PixelTypeGvspHBBayerGR8           = -2130182136
	PixelTypeGvspHBBayerRG8           = -2130182135
	PixelTypeGvspHBBayerGB8           = -2130182134
	PixelTypeGvspHBBayerBG8           = -2130182133
	PixelTypeGvspHBBayerRBGG8         = -2130182074
	PixelTypeGvspHBBayerGR10          = -2129657844
	PixelTypeGvspHBBayerRG10          = -2129657843
	PixelTypeGvspHBBayerGB10          = -2129657842
	PixelTypeGvspHBBayerBG10          = -2129657841
	PixelTypeGvspHBBayerGR12          = -2129657840
	PixelTypeGvspHBBayerRG12          = -2129657839
	PixelTypeGvspHBBayerGB12          = -2129657838
	PixelTypeGvspHBBayerBG12          = -2129657837
	PixelTypeGvspHBBayerGR10Packed    = -2129919962
	PixelTypeGvspHBBayerRG10Packed    = -2129919961
	PixelTypeGvspHBBayerGB10Packed    = -2129919960
	PixelTypeGvspHBBayerBG10Packed    = -2129919959
	PixelTypeGvspHBBayerGR12Packed    = -2129919958
	PixelTypeGvspHBBayerRG12Packed    = -2129919957
	PixelTypeGvspHBBayerGB12Packed    = -2129919956
	PixelTypeGvspHBBayerBG12Packed    = -2129919955
	PixelTypeGvspHBYUV422Packed       = -2112880609
	PixelTypeGvspHBYUV422YUYVPacked   = -2112880590
	PixelTypeGvspHBRGB8Packed         = -2112356332
	PixelTypeGvspHBBGR8Packed         = -2112356331
	PixelTypeGvspHBRGBA8Packed        = -2111832042
	PixelTypeGvspHBBGRA8Packed        = -2111832041
	PixelTypeGvspHBRGB16Packed        = -2110783437
	PixelTypeGvspHBBGR16Packed        = -2110783413
	PixelTypeGvspHBRGBA16Packed       = -2109734812
	PixelTypeGvspHBBGRA16Packed       = -2109734831
)
View Source
const InfoMaxBufferSize = 64
View Source
const MaxFrameSize = 10 * 1024 * 1024
View Source
const MvMaxDeviceNum = 256
View Source
const MvMaxNodeErrorNum = 64
View Source
const MvMaxNodeNameLen = 64
View Source
const MvMaxSymbolicLen = 64
View Source
const MvMaxXmlSymbolicNum = 64
View Source
const MvOK = 0x00000000

Variables

This section is empty.

Functions

func EnumDevices

func EnumDevices(nTLayerType uint32) (MvErrorCode, []MvCcDeviceInfo)

EnumDevices 枚举设备,支持枚举对应采集卡上的相机

func EnumDevicesEx

func EnumDevicesEx(nTLayerType uint32, strManufacturerName string) (MvErrorCode, []MvCcDeviceInfo)

func EnumDevicesEx2

func EnumDevicesEx2(nTLayerType uint32, strManufacturerName string, enSortMethod int) (MvErrorCode, []MvCcDeviceInfo)

func EnumerateTls

func EnumerateTls() int32

EnumerateTls 获取支持的传输层 return 当前支持的传输层协议类型和数值总和

func GetSDKVersion

func GetSDKVersion() uint32

GetSDKVersion 获取SDK版本信息接口

func IsDeviceAccessible

func IsDeviceAccessible(pstDevInfo MvCcDeviceInfo, nAccessMode uint32) bool

Types

type Device

type Device struct {
	// contains filtered or unexported fields
}

func (*Device) CloseDevice

func (d *Device) CloseDevice() MvErrorCode

func (*Device) CreateHandle

func (d *Device) CreateHandle(pstDevInfo MvCcDeviceInfo) MvErrorCode

func (*Device) CreateHandleWithoutLog

func (d *Device) CreateHandleWithoutLog(pstDevInfo MvCcDeviceInfo) MvErrorCode

func (*Device) DestroyHandle

func (d *Device) DestroyHandle() MvErrorCode

func (*Device) GetDeviceInfo

func (d *Device) GetDeviceInfo() (MvErrorCode, MvCcDeviceInfo)

GetDeviceInfo 获取设备信息,返回:MV_ERROR ,MV_CC_DEVICE_INFO

func (*Device) IsDeviceConnected

func (d *Device) IsDeviceConnected() bool

func (*Device) NewDeviceControl

func (d *Device) NewDeviceControl() *DeviceControl

func (*Device) NewDeviceImage

func (d *Device) NewDeviceImage() *DeviceImage

func (*Device) OpenDevice

func (d *Device) OpenDevice(nAccessMode uint32, nSwitchoverKey uint16) MvErrorCode

type DeviceControl

type DeviceControl struct {
	*Device
}

func (*DeviceControl) FeatureLoad

func (d *DeviceControl) FeatureLoad(fileName string) MvErrorCode

func (*DeviceControl) FeatureLoadEx

func (d *DeviceControl) FeatureLoadEx(fileName string) MvErrorCode

func (*DeviceControl) FeatureSave

func (d *DeviceControl) FeatureSave(fileName string) MvErrorCode

func (*DeviceControl) GetBoolValue

func (d *DeviceControl) GetBoolValue(key string) (MvErrorCode, bool)

func (*DeviceControl) GetEnumEntrySymbolic

func (d *DeviceControl) GetEnumEntrySymbolic(key string) (MvErrorCode, MvccEnumEntry)

func (*DeviceControl) GetEnumValue

func (d *DeviceControl) GetEnumValue(key string) (MvErrorCode, MvccEnumValue)

func (*DeviceControl) GetFloatValue

func (d *DeviceControl) GetFloatValue(key string) (MvErrorCode, MvccFloatValue)

func (*DeviceControl) GetGenICamXML

func (d *DeviceControl) GetGenICamXML(buf *[]byte, size int64) (MvErrorCode, uint32)

func (*DeviceControl) GetIntValueEx

func (d *DeviceControl) GetIntValueEx(key string) (MvErrorCode, MvccIntValueEx)

func (*DeviceControl) GetNodeAccessMode

func (d *DeviceControl) GetNodeAccessMode(name string) (MvErrorCode, int)

func (*DeviceControl) GetNodeInterfaceType

func (d *DeviceControl) GetNodeInterfaceType(name string) (MvErrorCode, int)

func (*DeviceControl) GetStringValue

func (d *DeviceControl) GetStringValue(key string) (MvErrorCode, MvccStringValue)

func (*DeviceControl) InvalidateNodes

func (d *DeviceControl) InvalidateNodes() MvErrorCode

func (*DeviceControl) OpenParamsGUI

func (d *DeviceControl) OpenParamsGUI() MvErrorCode

func (*DeviceControl) ReadMemory

func (d *DeviceControl) ReadMemory(buf *[]byte, addr int64, size int64) MvErrorCode

func (*DeviceControl) SetBoolValue

func (d *DeviceControl) SetBoolValue(key string, value bool) MvErrorCode

func (*DeviceControl) SetCommandValue

func (d *DeviceControl) SetCommandValue(key string) MvErrorCode

func (*DeviceControl) SetEnumValue

func (d *DeviceControl) SetEnumValue(key string, value uint32) MvErrorCode

func (*DeviceControl) SetEnumValueByString

func (d *DeviceControl) SetEnumValueByString(key string, value string) MvErrorCode

func (*DeviceControl) SetFloatValue

func (d *DeviceControl) SetFloatValue(key string, value float32) MvErrorCode

func (*DeviceControl) SetIntValueEx

func (d *DeviceControl) SetIntValueEx(key string, value int64) MvErrorCode

func (*DeviceControl) SetStringValue

func (d *DeviceControl) SetStringValue(key string, value string) MvErrorCode

func (*DeviceControl) WriteMemory

func (d *DeviceControl) WriteMemory(buf *[]byte, addr int64, size int64) MvErrorCode

type DeviceImage

type DeviceImage struct {
	*Device
}

func (*DeviceImage) ClearImageBuffer

func (d *DeviceImage) ClearImageBuffer() MvErrorCode

func (*DeviceImage) FreeImageBuffer

func (d *DeviceImage) FreeImageBuffer(pFrame *MvFrameOut) MvErrorCode

func (*DeviceImage) GetImageBuffer

func (d *DeviceImage) GetImageBuffer(waitTime uint32, pFrame *MvFrameOut) MvErrorCode

func (*DeviceImage) GetImageForBGR

func (d *DeviceImage) GetImageForBGR(data *[]byte, dataSize uint32, timeOut int32) (MvErrorCode, MVFrameOutInfoEx)

func (*DeviceImage) GetImageForRGB

func (d *DeviceImage) GetImageForRGB(data *[]byte, dataSize uint32, timeOut int32) (MvErrorCode, MVFrameOutInfoEx)

func (*DeviceImage) GetOneFrameTimeout

func (d *DeviceImage) GetOneFrameTimeout(pData *[MaxFrameSize]byte, pDataSize uint32, timeOut uint32) (MvErrorCode, MVFrameOutInfoEx)

func (*DeviceImage) GetValidImageNum

func (d *DeviceImage) GetValidImageNum() (MvErrorCode, uint32)

func (*DeviceImage) SetGrabStrategy

func (d *DeviceImage) SetGrabStrategy(enGrabStrategy uint32) MvErrorCode

func (*DeviceImage) SetImageNodeNum

func (d *DeviceImage) SetImageNodeNum(num uint32) MvErrorCode

func (*DeviceImage) StartGrabbing

func (d *DeviceImage) StartGrabbing() MvErrorCode

func (*DeviceImage) StopGrabbing

func (d *DeviceImage) StopGrabbing() MvErrorCode

type MVCCPixelConvertParamEx

type MVCCPixelConvertParamEx struct {
	Width     uint32
	Height    uint32
	SrcPixel  uint32
	DstPixel  uint32
	SrcData   unsafe.Pointer
	SrcLen    uint32
	DstBuffer unsafe.Pointer
	DstLen    uint32
	DstSize   uint32
	Res       [4]uint32
}

type MVFrameOutInfoEx

type MVFrameOutInfoEx struct {
	Width     uint16
	Height    uint16
	PixelType uint32

	FrameNum         uint32
	DevTimeStampHigh uint32
	DevTimeStampLow  uint32
	Reserved0        uint32
	HostTimeStamp    int64

	FrameLen uint32

	SecondCount uint32
	CycleCount  uint32
	CycleOffset uint32

	Gain              float32
	ExposureTime      float32
	AverageBrightness uint32

	Red   uint32
	Green uint32
	Blue  uint32

	FrameCounter uint32
	TriggerIndex uint32

	Input  uint32
	Output uint32

	OffsetX     uint16
	OffsetY     uint16
	ChunkWidth  uint16
	ChunkHeight uint16

	LostPacket uint32

	UnparsedChunkNum uint32

	UnparsedChunkContent unsafe.Pointer // This is the void* pUnparsedChunkContent in the union

	ExtendWidth  uint32
	ExtendHeight uint32

	Reserved [34]uint32
	// contains filtered or unexported fields
}

type MvCamlDevInfo

type MvCamlDevInfo struct {
	PortID           [InfoMaxBufferSize]byte
	ModelName        [InfoMaxBufferSize]byte
	FamilyName       [InfoMaxBufferSize]byte
	DeviceVersion    [InfoMaxBufferSize]byte
	ManufacturerName [InfoMaxBufferSize]byte
	SerialNumber     [InfoMaxBufferSize]byte
	Reserved         [38]uint32
}

type MvCcDeviceInfo

type MvCcDeviceInfo struct {
	MajorVer    uint16
	MinorVer    uint16
	MacAddrHigh uint32
	MacAddrLow  uint32
	TLayerType  uint32
	DevTypeInfo uint32
	Reserved    [3]uint32
	SpecialInfo sSpecialInfo
}

type MvCmlDeviceInfo

type MvCmlDeviceInfo struct {
	InterfaceID      [InfoMaxBufferSize]byte
	VendorName       [InfoMaxBufferSize]byte
	ModelName        [InfoMaxBufferSize]byte
	ManufacturerInfo [InfoMaxBufferSize]byte
	DeviceVersion    [InfoMaxBufferSize]byte
	SerialNumber     [InfoMaxBufferSize]byte
	UserDefinedName  [InfoMaxBufferSize]byte
	DeviceID         [InfoMaxBufferSize]byte
	Reserved         [7]uint32
}

type MvCxpDeviceInfo

type MvCxpDeviceInfo struct {
	InterfaceID      [InfoMaxBufferSize]byte
	VendorName       [InfoMaxBufferSize]byte
	ModelName        [InfoMaxBufferSize]byte
	ManufacturerInfo [InfoMaxBufferSize]byte
	DeviceVersion    [InfoMaxBufferSize]byte
	SerialNumber     [InfoMaxBufferSize]byte
	UserDefinedName  [InfoMaxBufferSize]byte
	DeviceID         [InfoMaxBufferSize]byte
	Reserved         [7]uint32
}

type MvErrorCode

type MvErrorCode int
const (
	MvEHandle MvErrorCode = 0x80000000 // MvEHandle: \~chinese 错误或无效的句柄 \~english Error or invalid handle

	MvESupport MvErrorCode = 0x80000001 // MvESupport: \~chinese 不支持的功能 \~english Not supported function

	MvEBufOver MvErrorCode = 0x80000002 // MvEBufOver: \~chinese 缓存已满 \~english Buffer overflow

	MvECallOrder MvErrorCode = 0x80000003 // MvECallOrder: \~chinese 函数调用顺序错误 \~english Function calling order error

	MvEParameter MvErrorCode = 0x80000004 // MvEParameter: \~chinese 错误的参数 \~english Incorrect parameter

	MvEResource MvErrorCode = 0x80000006 // MvEResource: \~chinese 资源申请失败 \~english Applying resource failed

	MvENoData MvErrorCode = 0x80000007 // MvENoData: \~chinese 无数据 \~english No data

	MvEPrecondition MvErrorCode = 0x80000008 // MvEPrecondition: \~chinese 前置条件有误,或运行环境已发生变化 \~english Precondition error, or running environment changed

	MvEVersion MvErrorCode = 0x80000009 // MvEVersion: \~chinese 版本不匹配 \~english Version mismatches

	MvENoEnoughBuf MvErrorCode = 0x8000000A // MvENoEnoughBuf: \~chinese 传入的内存空间不足 \~english Insufficient memory

	MvEAbnormalImage MvErrorCode = 0x8000000B // MvEAbnormalImage: \~chinese 异常图像,可能是丢包导致图像不完整 \~english Abnormal image, maybe incomplete image because of lost packet

	MvELoadLibrary MvErrorCode = 0x8000000C // MvELoadLibrary: \~chinese 动态导入DLL失败 \~english Load library failed

	MvENoOutBuf MvErrorCode = 0x8000000D // MvENoOutBuf: \~chinese 没有可输出的缓存 \~english No Available Buffer

	MvEEncrypt MvErrorCode = 0x8000000E // MvEEncrypt: \~chinese 加密错误 \~english Encryption error

	MvEOpenFile MvErrorCode = 0x8000000F // MvEOpenFile: \~chinese 打开文件出现错误 \~english Open file error

	MvEBufInUse MvErrorCode = 0x80000010 // MvEBufInUse: \~chinese 缓存地址已使用 \~english Buffer already in use

	MvEBufInvalid MvErrorCode = 0x80000011 // MvEBufInvalid: \~chinese 无效的缓存地址 \~english Buffer address invalid

	MvENoAlignBuf MvErrorCode = 0x80000012 // MvENoAlignBuf: \~chinese 缓存对齐异常 \~english Buffer alignment error

	MvENoEnoughBufNum MvErrorCode = 0x80000013 // MvENoEnoughBufNum: \~chinese 缓存个数不足 \~english Insufficient cache count

	MvEPortInUse MvErrorCode = 0x80000014 // MvEPortInUse: \~chinese 串口被占用 \~english Port is in use

	MvEImageDecodec MvErrorCode = 0x80000015 // MvEImageDecodec: \~chinese 解码错误(SDK校验图像异常) \~english Decoding error (SDK verification image exception)

	MvEUnknow MvErrorCode = 0x800000FF // MvEUnknow: \~chinese 未知的错误 \~english Unknown error
)
const (
	MvEGcGeneric MvErrorCode = 0x80000100 // MvEGcGeneric: \~chinese 通用错误 \~english General error

	MvEGcArgument MvErrorCode = 0x80000101 // MvEGcArgument: \~chinese 参数非法 \~english Illegal parameters

	MvEGcRange MvErrorCode = 0x80000102 // MvEGcRange: \~chinese 值超出范围 \~english The value is out of range

	MvEGcProperty MvErrorCode = 0x80000103 // MvEGcProperty: \~chinese 属性 \~english Property

	MvEGcRuntime MvErrorCode = 0x80000104 // MvEGcRuntime: \~chinese 运行环境有问题 \~english Running environment error

	MvEGcLogical MvErrorCode = 0x80000105 // MvEGcLogical: \~chinese 逻辑错误 \~english Logical error

	MvEGcAccess MvErrorCode = 0x80000106 // MvEGcAccess: \~chinese 节点访问条件有误 \~english Node accessing condition error

	MvEGcTimeout MvErrorCode = 0x80000107 // MvEGcTimeout: \~chinese 超时 \~english Timeout

	MvEGcDynamicCast MvErrorCode = 0x80000108 // MvEGcDynamicCast: \~chinese 转换异常 \~english Transformation exception

	MvEGcUnknow MvErrorCode = 0x800001FF // MvEGcUnknow: \~chinese GenICam未知错误 \~english GenICam unknown error
)
const (
	MvENotImplemented MvErrorCode = 0x80000200 // MvENotImplemented: \~chinese 命令不被设备支持 \~english The command is not supported by device

	MvEInvalidAddress MvErrorCode = 0x80000201 // MvEInvalidAddress: \~chinese 访问的目标地址不存在 \~english The target address being accessed does not exist

	MvEWriteProtect MvErrorCode = 0x80000202 // MvEWriteProtect: \~chinese 目标地址不可写 \~english The target address is not writable

	MvEAccessDenied MvErrorCode = 0x80000203 // MvEAccessDenied: \~chinese 设备无访问权限 \~english No permission

	MvEBusy MvErrorCode = 0x80000204 // MvEBusy: \~chinese 设备忙,或网络断开 \~english Device is busy, or network disconnected

	MvEPacket MvErrorCode = 0x80000205 // MvEPacket: \~chinese 网络包数据错误 \~english Network data packet error

	MvENetEr MvErrorCode = 0x80000206 // MvENetEr: \~chinese 网络相关错误 \~english Network error

	MvEKeyVerification MvErrorCode = 0x8000020F // MvEKeyVerification: \~chinese 秘钥校验错误 \~english SwitchKey error

	MvEIpConflict MvErrorCode = 0x80000221 // MvEIpConflict: \~chinese 设备IP冲突 \~english Device IP conflict
)
const (
	MvEUsbRead MvErrorCode = 0x80000300 // MvEUsbRead: \~chinese 读usb出错 \~english Reading USB error

	MvEUsbWrite MvErrorCode = 0x80000301 // MvEUsbWrite: \~chinese 写usb出错 \~english Writing USB error

	MvEUsbDevice MvErrorCode = 0x80000302 // MvEUsbDevice: \~chinese 设备异常 \~english Device exception

	MvEUsbGenicam MvErrorCode = 0x80000303 // MvEUsbGenicam: \~chinese GenICam相关错误 \~english GenICam error

	MvEUsbBandwidth MvErrorCode = 0x80000304 // MvEUsbBandwidth: \~chinese 带宽不足 \~english Insufficient bandwidth

	MvEUsbDriver MvErrorCode = 0x80000305 // MvEUsbDriver: \~chinese 驱动不匹配或者未装驱动 \~english Driver mismatch or unmounted drive

	MvEUsbUnknow MvErrorCode = 0x800003FF // MvEUsbUnknow: \~chinese USB未知的错误 \~english USB unknown error
)
const (
	MvEUpgFileMismatch MvErrorCode = 0x80000400 // MvEUpgFileMismatch: \~chinese 升级固件不匹配 \~english Firmware mismatches

	MvEUpgLanguageMismatch MvErrorCode = 0x80000401 // MvEUpgLanguageMismatch: \~chinese 升级固件语言不匹配 \~english Firmware language mismatches

	MvEUpgConflict MvErrorCode = 0x80000402 // MvEUpgConflict: \~chinese 升级冲突(设备已经在升级了再次请求升级即返回此错误) \~english Upgrading conflicted (repeated upgrading requests during device upgrade)

	MvEUpgInnerErr MvErrorCode = 0x80000403 // MvEUpgInnerErr: \~chinese 升级时设备内部出现错误 \~english Camera internal error during upgrade

	MvEUpgUnknow MvErrorCode = 0x800004FF // MvEUpgUnknow: \~chinese 升级时未知错误 \~english Unknown error during upgrade
)

func Finalize

func Finalize() MvErrorCode

Finalize 反初始化SDK,释放资源

func Initialize

func Initialize() MvErrorCode

Initialize 初始化SDK

type MvFrameOut

type MvFrameOut struct {
	Addr      unsafe.Pointer
	FrameInfo MVFrameOutInfoEx
	Res       [16]uint32
}

type MvGigeDeviceInfo

type MvGigeDeviceInfo struct {
	IpCfgOption              uint32
	IpCfgCurrent             uint32
	CurrentIp                uint32
	CurrentSubNetMask        uint32
	DefultGateWay            uint32
	ManufacturerName         [32]byte
	ModelName                [32]byte
	DeviceVersion            [32]byte
	ManufacturerSpecificInfo [48]byte
	SerialNumber             [16]byte
	UserDefinedName          [16]byte
	NetExport                uint32
	Reserved                 [4]uint32
}

type MvUsb3DeviceInfo

type MvUsb3DeviceInfo struct {
	CrtlInEndPoint   uint8
	CrtlOutEndPoint  uint8
	StreamEndPoint   uint8
	EventEndPoint    uint8
	IdVendor         uint16
	IdProduct        uint16
	DeviceNumber     uint32
	DeviceGUID       [InfoMaxBufferSize]byte
	VendorName       [InfoMaxBufferSize]byte
	ModelName        [InfoMaxBufferSize]byte
	FamilyName       [InfoMaxBufferSize]byte
	DeviceVersion    [InfoMaxBufferSize]byte
	ManufacturerName [InfoMaxBufferSize]byte
	SerialNumber     [InfoMaxBufferSize]byte
	UserDefinedName  [InfoMaxBufferSize]byte
	BcdUSB           uint32
	DeviceAddress    uint32
	Reserved         [2]uint32
}

type MvXofDeviceInfo

type MvXofDeviceInfo struct {
	InterfaceID      [InfoMaxBufferSize]byte
	VendorName       [InfoMaxBufferSize]byte
	ModelName        [InfoMaxBufferSize]byte
	ManufacturerInfo [InfoMaxBufferSize]byte
	DeviceVersion    [InfoMaxBufferSize]byte
	SerialNumber     [InfoMaxBufferSize]byte
	UserDefinedName  [InfoMaxBufferSize]byte
	DeviceID         [InfoMaxBufferSize]byte
	Reserved         [7]uint32
}

type MvccEnumEntry

type MvccEnumEntry struct {
	Value    uint32
	Symbolic [MvMaxSymbolicLen]byte
	Reserved [4]uint32
}

type MvccEnumValue

type MvccEnumValue struct {
	CurValue     uint32
	SupportedNum uint32
	SupportValue [MvMaxXmlSymbolicNum]uint32
	Reserved     [4]uint32
}

type MvccFloatValue

type MvccFloatValue struct {
	CurValue float32
	Max      float32
	Min      float32
	Reserved [4]uint32
}

type MvccIntValueEx

type MvccIntValueEx struct {
	CurValue int64
	Max      int64
	Min      int64
	Inc      int64
	Reserved [16]uint32
}

type MvccNodeError

type MvccNodeError struct {
	Name     [MvMaxNodeNameLen]byte
	ErrType  int32
	Reserved [4]uint32
}

type MvccNodeErrorList

type MvccNodeErrorList struct {
	ErrorNum  uint32
	NodeError [MvMaxNodeErrorNum]MvccNodeError
	Reserved  [4]uint32
}

type MvccStringValue

type MvccStringValue struct {
	CurValue  [256]byte
	MaxLength int64
	Reserved  [2]uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL