CardAccessConfigurationRegister

The CardAccessConfigurationRegister 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 CardRegisterClient. If no other installable device drivers own the configuration for the specified socket and function, then a NULL value is permitted.
hSocket
Specifies a 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
Points to the byte to write or to the location to store a byte when reading.

Return Values

If the function succeeds, the return value is CERR_SUCCESS; otherwise, it is one of the following values:

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