-
5.7. Camera Control
5.7.1. Power on/off Camera
Function Description:
Power on/off Camera.
Function call:
BOOL IOC_Camera_PowerOn();
BOOL IOC_Camera_PowerOff();
Return code:
TRUE = Success
FALSE = Unsupported
5.7.2. Camera Reset
Function Description:
Reset Camera.
Function call:
BOOL IOC_Camera_Reset();
Return code:
TRUE = Success
FALSE = Unsupported
Example:
#include “ioc_ioctl.h”
HANDLE gIOControlDriverHandle;
…
gIOControlDriverHandle = CreateFile(L”IOC1:”, GENERIC_READ |
GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, 0);
If (gIOControlDriverHandle == INVALID_HANDLE_VALUE)
{
// IO device not found, function not supported,
// error process
}
…
…
IOC_Camera_PowerOn();
IOC_Camera_Reset();
…
IOC_Camera_PowerOff();
…
CloseHandle(gIOControlDriverHandle);
…