Instruction manual

AMPDIO DRIVERS
Page 180
i = DIOfreeSwitchMatrix (h)
where h short: board handle as issued by the
registerBoardEx function.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
DIOsetSwitchMatrix
See Also
6.4.13 Basic User Interrupt Callbacks
6.4.13.1 Prepare a Basic User Interrupt — TCsetUserInterrupt
Used to register a callback function that will be called when a particular interrupt event occurs.
This does not support write events due to the interface to the user callback function. For write
events, use the buffered user interrupt functions instead.
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 = TCsetUserInterrupt (h, pfn, wParam, Chip, ISRDATA, Chip1, Chan
1,
Chip2, Chan2)
where h short: board handle as issued by the
registerBoardEx function.
pfn pointer to function (short, unsigned int,
unsigned long) returning void: a pointer to a
function implemented in the user’s code that
has the format of a TCUserCCallback 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
interrupt or first interrupt line on a PPI chip it is
the address offset of the chip. For second
interrupt line on a PPI chip it is the address
offset of the PPI chip plus 4. Corresponds to bit
positions in interrupt enable register if the card
has one, otherwise use the address offset of
the interrupting chip. The following pre-defined