Functions
Camera Link Camera

APIs only supported by Camera Link cameras. More...

Functions

MV_CAMCTRL_API int __stdcall MV_CAML_SetDeviceBaudrate (IN void *handle, IN unsigned int nBaudrate)
 Set device baud rate. More...
 
MV_CAMCTRL_API int __stdcall MV_CAML_GetDeviceBaudrate (IN void *handle, IN OUT unsigned int *pnCurrentBaudrate)
 Returns baud rate of the current device. More...
 
MV_CAMCTRL_API int __stdcall MV_CAML_GetSupportBaudrates (IN void *handle, IN OUT unsigned int *pnBaudrateAblity)
 Get supported baud rates of the connection between device and PC. More...
 
MV_CAMCTRL_API int __stdcall MV_CAML_SetGenCPTimeOut (IN void *handle, IN unsigned int nMillisec)
 Set the waiting time of serial port operation. More...
 
MV_CAMCTRL_API int __stdcall MV_CAML_GetSerialPortList (IN OUT MV_CAML_SERIAL_PORT_LIST *pstSerialPortList)
 Get serial port information list. More...
 
MV_CAMCTRL_API int __stdcall MV_CAML_SetEnumSerialPorts (IN MV_CAML_SERIAL_PORT_LIST *pstSerialPortList)
 Specify the serial ports for enumeration. More...
 

Detailed Description

APIs only supported by Camera Link cameras.

Function Documentation

◆ MV_CAML_SetDeviceBaudrate()

MV_CAMCTRL_API int __stdcall MV_CAML_SetDeviceBaudrate ( IN void *  handle,
IN unsigned int  nBaudrate 
)

Set device baud rate.

Parameters
handle[IN] Device handle.
nBaudrate[IN] Baud rate to set. Refer to the 'CameraParams.h' for parameter definitions. For example, #define MV_CAML_BAUDRATE_9600 0x00000001
CamercaLink Baud Rate Definition Value Baud Rate
MV_CAML_BAUDRATE_9600 0x00000001 9600
MV_CAML_BAUDRATE_19200 0x00000002 19200
MV_CAML_BAUDRATE_38400 0x00000004 38400
MV_CAML_BAUDRATE_57600 0x00000008 57600
MV_CAML_BAUDRATE_115200 0x00000010 115200
MV_CAML_BAUDRATE_230400 0x00000020 230400
MV_CAML_BAUDRATE_460800 0x00000040 460800
MV_CAML_BAUDRATE_921600 0x00000080 921600
MV_CAML_BAUDRATE_AUTOMAX 0x40000000 Max. value
Returns
Return MV_OK for success, and return corresponding error code for failure.
Remarks
Supports calling this API when the device is not connected; when the device is accessed via GenTL protocol, call this API after the device is connected.
Due to factors like firmware / system / external interference, high baud rate configured may lead to communication exceptions; it is recommended to set the baud rate no higher than 115200.

◆ MV_CAML_GetDeviceBaudrate()

MV_CAMCTRL_API int __stdcall MV_CAML_GetDeviceBaudrate ( IN void *  handle,
IN OUT unsigned int *  pnCurrentBaudrate 
)

Returns baud rate of the current device.

Parameters
handle[IN] Device handle.
pnCurrentBaudrate[IN][OUT] Baud rate information. Refer to the 'CameraParams.h' for parameter definitions, for example, #define MV_CAML_BAUDRATE_9600 0x00000001
Returns
Return MV_OK for success, and return corresponding error code for failure.
Remarks
You can call this API only when the device is not connected.

◆ MV_CAML_GetSupportBaudrates()

MV_CAMCTRL_API int __stdcall MV_CAML_GetSupportBaudrates ( IN void *  handle,
IN OUT unsigned int *  pnBaudrateAblity 
)

Get supported baud rates of the connection between device and PC.

Parameters
handle[IN] Device handle.
pnBaudrateAblity[IN][OUT] Information of the supported baud rates or operation results. Refer to 'CameraParams.h' for single value definitions, for example, MV_CAML_BAUDRATE_9600 0x00000001
Returns
Return MV_OK for success, and return corresponding error code for failure.
Remarks
You can call this API only when the device is not connected.

◆ MV_CAML_SetGenCPTimeOut()

MV_CAMCTRL_API int __stdcall MV_CAML_SetGenCPTimeOut ( IN void *  handle,
IN unsigned int  nMillisec 
)

Set the waiting time of serial port operation.

Parameters
handle[IN] Device handle.
nMillisec[IN] Waiting time of serial port operation, unit: ms.
Returns
Return MV_OK for success, and return corresponding error code for failure.

◆ MV_CAML_GetSerialPortList()

MV_CAMCTRL_API int __stdcall MV_CAML_GetSerialPortList ( IN OUT MV_CAML_SERIAL_PORT_LIST pstSerialPortList)

Get serial port information list.

Parameters
pstSerialPortList[IN][OUT] Serial port information list
Returns
Return MV_OK for success, and return corresponding error code for failure.
Note
This API is used to get local serial port information.

◆ MV_CAML_SetEnumSerialPorts()

MV_CAMCTRL_API int __stdcall MV_CAML_SetEnumSerialPorts ( IN MV_CAML_SERIAL_PORT_LIST pstSerialPortList)

Specify the serial ports for enumeration.

Parameters
pstSerialPortList[IN] Serial port information list
Returns
Return MV_OK for success, and return corresponding error code for failure.
Note
This API is used to set the specified serial port of Camera Link device enumeration.