-
5.5.2. Control Module 1 Power
Function Description:
When system is operated on battery, power saving is necessary. Module 1 power control is
assigned to finger printer module in MR650.
Function call:
BOOL IOC_PowerModule1(BOOL On);
Parameters(Input):
pStatus:
DWORD *
: Optical status
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_PowerModule1(TRUE);
// power on module 1
IOC_PowerModule1(FALSE); // power off module 1
…
CloseHandle(gIOControlDriverHandle);
…
Содержание MR650
Страница 1: ...MR650 Programming Manual V 1 12 1 16 2008 ...
Страница 7: ... 7 13 FUNCTION KEY SETTING ON REGISTRY 65 14 UPDATE NOTES 66 ...
Страница 16: ... it is for internal use send messages ...
Страница 33: ... Be aware to release handles when program ends ...