Instruction manual

AMPDIO DRIVERS
Page 190
N.B. ADC channels will be read cyclically, one
channel each time; DAC channels will be
written a whole frame (all selected channels) at
a time.
Returns short: User Interrupt handle (>= 0). Use this to free the user interrupt with
TCfreeUserInterrupt when finished.
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCUserCBCallback
TCfreeUserInterrupt
TCsetBufferUserInterrupt
TCsetBufferUserInterrupt2
TCsetUserInterruptAIO
TCsetNCBufferUserInterruptAIO
enableInterrupts
disableInterrupts
6.4.14.3 Prepare a Buffered User Interrupt for Miscellaneous I/O TCsetBufferUserInterrupt2
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. This variant is
used to support types of data transfer that do not fit the parameters of
TCsetBufferUserInterrupt or TCsetBufferUserInterruptAIO.
SUPPORTED IN VERSION 4.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 = TCsetBufferUserInterrupt2 (h, pfn, wParam, Chip, SizeReq,
fContin, ISRDATA, Block1, Port1, Block2, Port2)
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