-
7.8.2 Enable/Disable PCMCIA or CF slot
Function Description:
This function enables/disables PCMCIA or CF slot. PA96x/PA982 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:
void EnablePCMCIASlot(UINT uSocket, BOOL bEnable)
Parameters(Input)
uSocket:
UINT:
0 = PCMCIA slot.
(PA962/PA966/PA982 only)
1
=
Compact
flash
slot.
bEnable :
BOOL:
TRUE = enable specified slot.
FALSE = disable specified slot.
7.8.3 Enable/Disable IO slots
Function Description:
This function enables/disables IO slots. It is recommended to use with function
GetPCMCIASlotID() for platform independent reason.
Function call:
void EnablePCMCIASlot1(UINT uSocket, BOOL bEnable)
Parameters(Input)
uSocket: UINT:
slot
to
be
applied.
bEnable :
BOOL:
TRUE = enable specified slot.
FALSE = disable specified slot.
Example
To disable PCMCIA slot and enable CF slot,
#define PCMCIA_SOCKET 0
(PA966/PA962/PA982 only)
#define CF_SOCKET
1
EnablePCMCIASlot1(GetPCMCIASlotID(PCMCIA_SLOT),FALSE);
EnablePCMCIASlot1(GetPCMCIASlotID(CF_SLOT),TRUE);
7.8.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.