Instruction manual

AMPDIO DRIVERS
Page 186
hUsrInt short: user interrupt handle as issued by user
interrupt set-up function.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
TCsetUserInterrupt
TCsetUserInterruptAIO
TCsetUserInterrupt2
TCsetBufferUserInterrupt
TCsetBufferUserInterruptAIO
TCsetBufferUserInterrupt2
TCsetNCBufferUserInterrupt
TCsetNCBufferUserInterruptAIO
TCsetNCBufferUserInterrupt2
See Also
6.4.14 Buffered User Interrupt Callbacks
6.4.14.1 Prepare a Buffered User Interrupt — TCsetBufferUserInterrupt
Used to register a callback function that will be called to process a buffers-worth of data that
has been read from or is to be written to the card over a number of interrupts.
SUPPORTED IN VERSION 3.00 ONWARDS
If the interrupt source is enabled at the first and second levels, it will be activated. Interrupts
are initially disabled at the first level; use enableInterrupts to enable them. In versions of the
DLL up to version 4.39, all interrupt sources are initially disabled at the second level but are
automatically enabled by this interrupt set-up function. In versions of the DLL from 4.40
onwards, all valid interrupt sources are initially enabled at the second level but are no longer
automatically enabled by this interrupt set-up function. In either case, if interrupt sources have
not been explicitly disabled at the second level, there is no need to explicitly enable them.
i = TCsetBufferUserInterrupt (h, pfn, wParam, Chip, SizeReq, fContin,
ISRDATA, Chip1, Chan1, Chip2, Chan2)
where h short: board handle as issued by the
registerBoardEx function.
pfn pointer to function (short, unsigned int,
unsigned long, pointer to unsigned long)
returning void: a pointer to a function
implemented in the user’s code that has the
format of a TCUserCBCallback as defined
below.
wParam unsigned integer: user-supplied value passed
to the user’s callback function.
Chip short: determines interrupt source. The
interrupt source number from 0 to 5 multiplied
by 4 (0, 4, 8, 12, 16, 20). For timer/counter