Machine Vision Camera SDK (C) Developer Guide
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
nAccessMode
[IN] Device access mode, it is exclusive mode by default, see the table below for details.
Macro Definition
Value
Description
MV_ACCESS_Exclusive
1
Exclusive permission, for other apps, the
CCP register is only allowed to be read
MV_ACCESS_ExclusiveWithSwitch
2
Preempt permission in mode 5, and then
open with exclusive permission
MV_ACCESS_Control
3
Control permission, for other apps, all
registers are allowed to be read
MV_ACCESS_ControlWithSwitch
4
Preempt permission in mode 5, and then
open with control permission
MV_ACCESS_ControlSwitchEnable
5
Open with control permission that can
be preempted
MV_ACCESS_
ControlSwitchEnableWithKey
6
Preempt permission in mode 5, and then
open with control permission that can
be preempted
MV_ACCESS_Monitor
7
Open device with reading mode, suitable
under control permission
nSwitchoverKey
[IN] Key for switching permissions, it is null by default, and it is valid when access mode
supports permission switching (2/4/6 mode).
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
You can find the specific device and connect according to inputted device parameters.
When calling this API, the parameters nAccessMode and nSwitchoverKey are optional, and the
device access mode is exclusive by default. Currently the device does not support the following
preemption modes: MV_ACCESS_ExclusiveWithSwitch, MV_ACCESS_ControlWithSwitch, and
MV_ACCESS_ControlSwitchEnableWithKey.
For USB3Vision device, the parameters nAccessMode and nSwitchoverKey are invalid.
See Also
MV_CC_CloseDevice
26
    "