
Machine Vision Camera SDK (C) Developer Guide
API Definition
bool MV_CC_IsDeviceAccessible(
MV_CC_DEVICE_INFO *pstDevInfo,
unsigned int
nAccessMode
);
Parameters
pstDevInfo
[IN] Device information, see the structure MV_CC_DEVICE_INFO for details.
nAccessMode
[IN] Access type, see the table below for details.
Macro Definition
MV_ACCESS_Exclusive
Value
1
MV_ACCESS_
2
ExclusiveWithSwitch
MV_ACCESS_Control
3
MV_ACCESS_
4
ControlWithSwitch
MV_ACCESS_
5
ControlSwitchEnable
MV_ACCESS_
6
ControlSwitchEnableWithKey
MV_ACCESS_Monitor
7
Description
Exclusive permission, for other apps, the
CCP register is only allowed to be read
Preempt permission in mode 5, and then
open with exclusive permission
Control permission, for other apps, all
registers are allowed to be read
Preempt permission in mode 5, and then
open with control permission
Open with control permission that can be
preempted
Preempt permission in mode 5, and then
open with control permission that can be
preempted
Open device with reading mode, suitable
under control permission
Return Value
Return true to indicate the device is accessible, and return false to indicate no permission or the
device is offline.
Remarks
● You can read the device CCP register value to check the current access permission.
● Return false if the device does not support the modes MV_ACCESS_ExclusiveWithSwitch,
MV_ACCESS_ControlWithSwitch, MV_ACCESS_ControlSwitchEnableWithKey. Currently the
22



































































































































































































































































































































































































