Share via


SDIOConnectInterrupt (Compact 2013)

3/26/2014

This function specifies a function to be called when a secure digital input output (SDIO) card interrupt occurs.

Syntax

SD_API_STATUS SDIOConnectInterrupt(
  SD_DEVICE_HANDLE hDevice,
  PSD_INTERRUPT_CALLBACK pIsrFunction
);

Parameters

  • hHandle
    [in] Handle to a secure digital (SD) bus device.
  • pIsrFunction
    [in] Pointer to callback function to perform interrupt processing.

Return Value

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

Header

sdcardddk.h

Library

sdcardlib.lib

See Also

Reference

Secure Digital (SD) Card Driver Functions