Program Interface Library AR_SETINTERRUPTS
CEI-100/CEI-200/CEI-x20 User’s Manual 147
AR_SETINTERRUPTS
CEI_INT32 ar_setinterrupts (CEI_UINT32 cardnum, CEI_UINT32
channel, CEI_INT32 TransRcv, CEI_UINT32 Count, CEI_UINT32
Mask);
This function is available only when you are using the Enhanced API for
the CEI-520/520A/620/820/820TX.
The entry point, AR_SETINTERRUPTS, is used to set the interrupt on
“N” labels received or transmitted controls or to setup the interrupt on
discrete input value change.
Entries are still made to the interrupt queue if enabled by this function,
even if the hardware interrupt hasn’t been enabled.
ARS_INVBOARD Board number invalid.
ARS_BRDNOTLOAD Board not initialized.
ARS_NO_HW_SUPRT Board does not support this function.
ARS_NORMAL Successful completion of function.
ARS_BOARD_MUTEX Failed to acquire/release the board lock.
cardnum (input) board number of interest.
channel (input) channel to modify (0-based).
TransRcv (input) set up the ARU_TRANSMITTER,
ARU_RECEIVER, or ARU_DISCRETES
Count (input) for ARU_TRANSMITTER or
ARU_RECEIVER – Number of labels between
interrupts. If zero, no interrupts on “N” labels
received/transmitted or on receive/transmit buffer
over/underflow.
For ARU_DISCRETES, this is the tick count for de-
bouncing the discrete inputs.
Mask (input) for ARU_TRANSMITTER or
ARU_RECEIVER – Unused. For
ARU_DISCRETES, this is the mask for detecting
and interrupting on discrete changes.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com