Contents

getInterruptType

Returns the type of interrupt used for a device supplying hardware interrupts.

Declaration

virtual IOReturn getInterruptType(
 intsource,
 int *interruptType);

Parameters

  • source:

    The index of the interrupt source in the device.

  • interruptType:

    The interrupt type for the interrupt source will be stored here by getInterruptType.

    kIOInterruptTypeEdge will be returned for edge-trigggered sources.

    kIOInterruptTypeLevel will be returned for level-trigggered sources.

Return Value

An IOReturn code (kIOReturnNoInterrupt is returned if the source is not valid).

See Also

Miscellaneous