CardRequestIRQ
Other versions of this page are also available for the following:
8/28/2008
This function registers an interrupt service callback function for the specified socket and function pair.
Syntax
STATUS CardRequestIRQ(
CARD_CLIENT_HANDLE hCardClient,
CARD_SOCKET_HANDLE hSocket,
CARD_ISR ISRFunction,
UINT32 uISRContextData
);
Parameters
- hCardClient
[in] Client handle obtained from the CardRegisterClient function.
- hSocket
[in] Handle to a socket and function pair.
- ISRFunction
[in] Pointer to the interrupt callback function for the specified socket and function pair. This parameter is required.
- uISRContextData
[in] Specifies context data to be passed to the interrupt callback function.
Return Value
CERR_SUCCESS indicates success. One of the following values indicates failure:
- CERR_BAD_ARGS
Indicates that the pointer specified for ISRFunction is not valid.
- CERR_BAD_HANDLE
Indicates that the driver handle specified for hCardClient is not valid.
- CERR_BAD_SOCKET
Indicates that the socket identifier specified for hSocket is not valid or that no PC Card is inserted.
- CERR_IN_USE
Indicates that another driver owns the configuration or interrupt.
- CERR_OUT_OF_RESOURCE
Indicates that insufficient memory is available to record the request.
Remarks
This function sets up the interrupt callback function exclusively for the requesting driver. The device determines the interrupt source, determines which function on a socket interrupted, and calls the appropriate interrupt callback function.
Only I/O drivers can request interrupt notifications. Interrupts are not signaled until the PC Card is configured for the I/O interface by a call to the CardRequestConfiguration function.
Requirements
Header | cardserv.h |
Library | Cardserv.lib |
Windows Embedded CE | Windows CE 1.0 and later |
See Also
Reference
CardReleaseConfiguration
CardReleaseIRQ
CardRegisterClient
CardRequestConfiguration