-
5.6. PCMCIA Control
MR650 provides a build-in CF slot. Using following macros to check/enable/disable this slot.
5.6.1. Check CF Slot
Function Description:
To check CF slot status.
Function call:
BOOL GetPCMCIA0Status(DWORD *pStatus);
Parameters(Output):
pStatus:
DWORD *
: CF slot enable/disable status
Return code:
TRUE = Success
FALSE = Unsupported
Example:
#include
“
ioc_ioctl.h
"
…
DWORD dwStatus;
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
}
…
…
GetPCMCIA0Status(&dwStatus);
if (dwStatus == 0)
{
// CF disabled
}
else
{
// CF enabled
}
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 ...