Machine Vision Camera SDK (C) Developer Guide
MV_USB_GetTransferWays
Get the number of transmission channels for USB3 vision device.
API Definition
int MV_USB_GetTransferWays(
void
*handle,
unsigned int
*pTransferWays
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
pTransferWays
[OUT] The number of transmission channels, range: [1,10]
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
You can call this API to get the number of streaming nodes, for different pixel formats, the default
values are different. For example, for 2 MP camera, the default value of MONO8 is 3, YUV is 2, RGB
is 1, and other pixel format is 8.
MV_USB_RegisterStreamExceptionCallBack
Register the callback function for receiving the stream exceptions.
API Definition
int MV_USB_RegisterStreamExceptionCallBack(
void
*handle,
void
*cbException,
void
*pUser
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
120
    "