-
7.5.4. Inquire PCMCIA/CF slot status
Function Description:
This function returns PCMCIA/CF slot enable/disable status. Terminal assigns
physical slot 0 to CF and slot1 to PCMCIA, which is reversed compared with
previous products. The following function is kept for compatible reason. It
takes the same uSocket value as previous products, but reversed internally.
Function call:
BOOL
GetPCMCIAStatus(UINT
uSocket)
Parameters(Input)
uSocket:
UINT:
0 = PCMCIA slot.
(PA966/PA962/PA982 only)
1 = Compact flash slot.
Return
bEnable :
BOOL:
TRUE = Slot is enabled.
FALSE = Slot is disable.
7.5.5. Inquire IO slot status
Function Description:
This function returns slot enable/disable status. It is recommended to use
with function GetPCMCIASlotID() for platform independent reason.
Function call:
BOOL
GetPCMCIAStatus1(UINT
uSocket)
Parameters(Input)
uSocket:
UINT:
slot to be applied.
Return
bEnable :
BOOL:
TRUE = specified slot is enabled.
FALSE = specified slot is disable.
Example
To check PCMCIA slot status,
#define PCMCIA_SOCKET 0
(PA966/PA962/PA982 only)
#define CF_SOCKET
1
if (GetPCMCIAStatus1(GetPCMCIASlotID(PCMCIA_SLOT))) {
}
7.5.6. Disable PCMCIA/CF slot when resume
Function Description:
This function will disable the specified slot after resume even though that
slot is enabled before suspend..
Function call:
void DisablePCMCIAUponResume( UINT uSocket, BOOL bDisable);
Parameters(Input)
uSocket:
UINT:
1 = physical socket 1
0 = for physical socket 0
bDisable:
BOOL:
TRUE disable on resume
FALSE
enable
on
resume
Return
none