SDIOConnectInterrupt (Windows CE 5.0)
This function specifies a function to be called when an SDIO card interrupt occurs.
SD_API_STATUS SDIOConnectInterrupt( SD_DEVICE_HANDLEhDevice,
PSD_INTERRUPT_CALLBACKpIsrFunction);
Parameters
- hHandle
[in] Handle to an SD bus device. - pIsrFunction
[in] Pointer to callback function to perform interrupt processing.
Return Values
A return value of type SD_API_STATUS indicates success or failure.
Remarks
This function registers an interrupt callback to be invoked when the function is interrupting. The function also unmasks the interrupt by writing to the interrupt enable register in the common register space.
There are no restrictions on function calls that can be made from the interrupt callback. However, the interrupt callback should be written to minimize execution time as much as is practical. Doing so will reduce interrupt latency for other functions on the card.
The client driver is responsible for clearing the source of the interrupt before exiting the interrupt callback. Failure to do this will result in the immediate re-assertion of the interrupt.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Sdcardddk.h.
Link Library: Sdcardlib.lib.
See Also
Secure Digital Card Driver Functions
Send Feedback on this topic to the authors