PURPOSE
Modifies the settings of a PCMCIA bus controller.
PROTOTYPE
DWORD WD_PcmciaControl(
HANDLE hWD,
WD_PCMCIA_CONTROL *pPcmciaControl);
PARAMETERS
| Name | Type | Input/Output |
|---|---|---|
| HANDLE | Input | |
| WD_PCMCIA_CONTROL* | Input | |
| DWORD | N/A | |
| |
WD_PCMCIA_SLOT | Input |
| BYTE | Input | |
| BYTE | Input | |
| BYTE | Input | |
| BYTE | N/A | |
| BYTE | Input | |
| BYTE | Input | |
| BYTE | Input | |
| BYTE | Input | |
| DWORD | Input |
DESCRIPTION
| Name | Description |
|---|---|
| hWD | Handle to WinDriver's kernel-mode driver as received from WD_Open() [5.2] |
| pPcmciaControl | PCMCIA bus controller information structure: |
| A PCMCIA device location information structure, which can be acquired by calling WD_PcmciaScanCards() [2.5] | |
| Bus number (0 based) | |
| Socket number (0 based) | |
| Function number (0 based) | |
| The access speed to the PCMCIA bus. Can be any of the following WD_PCMCIA_ACC_SPEED enumeration values: |
|
| The PCMCIA bus width. Can be any of the following
WD_PCMCIA_ACC_WIDTH enumeration values: |
|
| The power level of the PCMCIA controller's Voltage Power Pin
(Vpp). Can be any of the following WD_PCMCIA_VPP
enumeration values: |
|
| The offset in the PCMCIA device's memory from which the memory mapping begins |
RETURN VALUE
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise [A].
EXAMPLE
WD_PCMCIA_CONTROL pcmciaControl;
BZERO(pcmciaControl);
pcmciaControl.pcmciaSlot = pcmciaSlot; /* pcmciaSlot recieved from
WD_PcmciaScanDevices() */
pcmciaControl.uAccessSpeed = WD_PCMCIA_ACC_SPEED_DEFAULT;
pcmciaControl.uBusWidth = WD_PCMCIA_ACC_WIDTH_DEFAULT;
pcmciaControl.uVppLevel = WD_PCMCIA_VPP_AS_VCC;
pcmciaControl.dwCardBase = 0x0;
WD_PcmciaControl(hWD, &pcmciaControl);