CardAccessConfigurationRegister

This function reads or writes the function and configuration registers of a PC Card.

Syntax

STATUS CardAccessConfigurationRegister(
CARD_CLIENT_HANDLE
hCardClient, CARD_SOCKET_HANDLE
hSocket, UINT8 rw_flag, UINT8 offset, UINT8 *pValue );

Parameters

hCardClient
Specifies a client handle obtained from the CardRegisterClient function. If no other stream interface drivers own the configuration for the specified socket and function, a null value is permitted.
hSocket
Handle to the socket and function pair whose registers are to be accessed.
rw_flag
Specifies the operation to perform, either CARD_FCR_READ or CARD_FCR_WRITE.
offset
Specifies which register to access.
pValue
Pointer to the byte to write or to the location to store a byte when reading.

Return Values

CERR_SUCCESS indicates success. One of the following values indicates failure:

CERR_BAD_SOCKET
Indicates that the identifier specified for the hSocket member of the CARD_EVENT_MASK_PARMS structure is invalid or that there is no PC Card inserted in the socket.
CERR_BAD_HANDLE
Indicates that the driver handle specified for hCardClient is invalid.
CERR_BAD_OFFSET
Indicates that the value specified for offset is invalid.
CERR_IN_USE
Indicates that another stream interface driver owns the configuration for this socket and function.

Driver Name

PCMCIA