Functions
GenTL

GenTL related APIs. More...

Functions

MV_CAMCTRL_API int __stdcall MV_CC_EnumInterfacesByGenTL (IN OUT MV_GENTL_IF_INFO_LIST *pstIFList, IN const char *strGenTLPath)
 Enumerate interfaces via GenTL. More...
 
MV_CAMCTRL_API int __stdcall MV_CC_UnloadGenTLLibrary (IN const char *pGenTLPath)
 Unload the CTI library. More...
 
MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesByGenTL (IN MV_GENTL_IF_INFO *pstIFInfo, IN OUT MV_GENTL_DEV_INFO_LIST *pstDevList)
 Enumerate devices via GenTL interface. More...
 
MV_CAMCTRL_API int __stdcall MV_CC_CreateHandleByGenTL (IN OUT void **handle, IN const MV_GENTL_DEV_INFO *pstDevInfo)
 Create a device handle via GenTL device information. More...
 

Detailed Description

GenTL related APIs.

Function Documentation

◆ MV_CC_EnumInterfacesByGenTL()

MV_CAMCTRL_API int __stdcall MV_CC_EnumInterfacesByGenTL ( IN OUT MV_GENTL_IF_INFO_LIST pstIFList,
IN const char *  strGenTLPath 
)

Enumerate interfaces via GenTL.

Parameters
pstIFList[IN][OUT] Interfaces list.
strGenTLPath[IN] GenTL CTI file path.
Returns
Return MV_OK for success, and return corresponding error code for failure.
Remarks
The memory of the interfaces list is allocated within the SDK. When this API is called by multiple threads, the memory of the device list will be released and applied. It is recommended to avoid multi-thread enumeration.
MvProducerU3V.cti and MvProducerGEV.cti calling are unsupported.

◆ MV_CC_UnloadGenTLLibrary()

MV_CAMCTRL_API int __stdcall MV_CC_UnloadGenTLLibrary ( IN const char *  pGenTLPath)

Unload the CTI library.

Parameters
pGenTLPath[IN] The storage path of CTI files.
Returns
Return MV_OK for success, and return corresponding error code for failure.
Remarks
Make sure that all devices enumerated by the CTI file are closed before calling this API, otherwise, an error will occur.

◆ MV_CC_EnumDevicesByGenTL()

MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesByGenTL ( IN MV_GENTL_IF_INFO pstIFInfo,
IN OUT MV_GENTL_DEV_INFO_LIST pstDevList 
)

Enumerate devices via GenTL interface.

Parameters
pstIFInfo[IN] Interface information.
pstDevList[IN][OUT] Device List.
Returns
Return MV_OK for success, and return corresponding error code for failure.
Remarks
The memory of the list is allocated within the SDK. When this API is called by multiple threads, the memory of the device list will be released and applied. It is recommended to avoid multi-thread enumeration.

◆ MV_CC_CreateHandleByGenTL()

MV_CAMCTRL_API int __stdcall MV_CC_CreateHandleByGenTL ( IN OUT void **  handle,
IN const MV_GENTL_DEV_INFO pstDevInfo 
)

Create a device handle via GenTL device information.

Parameters
handle[IN][OUT] Device handle.
pstDevInfo[IN] Device Information.
Returns
Return MV_OK for success, and return corresponding error code for failure.
Remarks
Create required resources within library and initialize internal module according to input device information.