PDCARD_SOCKET_STATE
This structure is used by the PDCardGetSocket and PDCardSetSocket functions to retrieve or change the specified socket's characteristics.
typedef struct {
UINT8 fSocketCaps;
UINT8 fInterruptEvents;
UINT8 fNotifyEvents;
UINT8 fControlCaps;
UINT8 fInterfaceType;
UINT8 fIREQRouting;
UINT8 fVcc;
UINT8 uVpp1;
UINT8 uVpp2;
} PDCARD_SOCKET_STATE;
Members
fSocketCaps
Specifies socket capabilities.fInterruptEvents
Specifies a status change interrupt mask. The initial state of this member indicates which events can cause a status change interrupt. The events are shown in the following table.Event mask Description EVENT_MASK_WRITE_PROTECT Write-protect state EVENT_MASK_CARD_LOCK Card lock state EVENT_MASK_EJECT_REQ Ejection request EVENT_MASK_INSERT_REQ Insertion request EVENT_MASK_BATTERY_DEAD Battery dead EVENT_MASK_BATTERY_LOW Battery low EVENT_MASK_CARD_READY Ready change EVENT_MASK_CARD_DETECT Card detect EVENT_MASK_POWER_MGMT Power management change EVENT_MASK_RESET Card reset EVENT_MASK_STATUS_CHANGE Card-generated status change interrupt fNotifyEvents
Specifies latched socket state. The events are shown in the following table.Event mask Description EVENT_MASK_WRITE_PROTECT Write-protect state EVENT_MASK_CARD_LOCK Card lock state EVENT_MASK_EJECT_REQ Ejection request EVENT_MASK_INSERT_REQ Insertion request EVENT_MASK_BATTERY_DEAD Battery dead EVENT_MASK_BATTERY_LOW Battery low EVENT_MASK_CARD_READY Ready change EVENT_MASK_CARD_DETECT Card detect EVENT_MASK_POWER_MGMT Power management change EVENT_MASK_RESET Card reset EVENT_MASK_STATUS_CHANGE Card-generated status change interrupt fControlCaps
Control capabilities.fInterfaceType
Specifies memory-only or memory and I/O.fIREQRouting
Enable or disable IREQ.fVcc
Vcc power entry index and status.uVpp1
Vpp1 power entry index into a PDCARD_POWERENTRY array that is returned by PDCardInquireAdapter.uVpp2
Vpp2 power entry index into a PDCARD_POWERENTRY array that is returned by PDCardInquireAdapter.
Remarks
It supports the implementation of the driver described in the sample PC Card socket driver.
The EVENT_MASK_POWER_MGMT, EVENT_MASK_RESET and EVENT_MASK_STATUS_CHANGE event masks should not be generated by the socket itself, that is, they will not fit in the fInterruptEvent and the fNotifyEvents members of the PDCARD_SOCKET_STATE structure.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Sockserv.h.
See Also
PDCardGetSocket | PDCardSetSocket | PDCARD_SOCKET_STATE
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.