Struct DSCUSERINTFUNCTION

Universal Driver Documentation
Structure containing information about the user interrupt function and execution time.

Structure Definition

 typedef struct {

    DSCUserInterruptFunction func;
    BYTE int_mode;
    DWORD int_type;  

 } DSCUSERINTFUNCTION;

 typedef void (*DSCUserInterruptFunction) (void* parameter);

 // int_mode: user interrupt execution time choices
 #define USER_INT_CANCEL    0
 #define USER_INT_AFTER     1
 #define USER_INT_INSTEAD   2

 // int_type: which interrupt type to attach to
 #define INT_TYPE_AD       0x01
 #define INT_TYPE_DA       0x02
 #define INT_TYPE_DIOIN    0x04
 #define INT_TYPE_USER     0x08
 #define INT_TYPE_COUNTER  0x10
 #define INT_TYPE_DIOOUT   0x20
 #define INT_TYPE_OPTO     0x40

Structure Members

NameDescription
funcPointer to user interrupt function of type DSCUserInterruptFunction
int_modeSelects the execution time for the user interrupt function. Select from the choices in the list above. There is no "before" option.
int_typeSelects the interrupt type to attach this function to (e.g. A/D interrupts, D/A interrupts, DIO interrupts, etc.)


This page was last modified 15:43, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.