ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data


ADMXRC_RegisterInterruptEvent

Prototype

ADMXRC_STATUS
ADMXRC_RegisterInterruptEvent(
    ADMXRC_HANDLE Card,
    HANDLE        Event);

Arguments

Argument Type Purpose
Card In Handle of card for which to register the event
Event In Specifies the event to register for interrupts

Return value

Value Meaning
ADMXRC_SUCCESS The event was successfully registered
ADMXRC_INVALID_HANDLE The Card handle or Event handle was not valid

Description

This function registers a Win32 event for capturing interrupts from the FPGA.

Event must be a valid Win32 event handle. The type of the event can be manual or auto reset, depending on the needs of the application.

After an event is registered using ADMXRC_RegisterInterruptEvent, it is signalled by the driver whenever an FPGA interrupt occurs. Applications can thus be notified of interrupts from the FPGA by waiting on a registered event. Any number of events can be registered this way, but typically only one is ever required by an application.

To unregister an event, specify the same event in a call to ADMXRC_UnregisterInterruptEvent.

 


 Top of page