Instruction manual
AMPDIO DRIVERS
Page 204
6.4.16.4 Check User Interrupt Data Available — TCcheckUserInterruptDataAvailable
Check the amount of user interrupt data available to be read.
SUPPORTED IN VERSION 5.02 ONWARDS.
Counts the amount of data in the current user interrupt data buffer and the amount of data int
the driver's small, internal buffer. It also tries to count the amount of data available in hardware
FIFOs.
The check for the amount of ADC data available in the FIFO is not very accurate for the
original PCI230 and PCI260, but is more accurate for the PCI230+ and PCI260+.
The function will fail for user interrupts that write data to the device, or if the driver version is
too old, or if the user interrupt event is not currently enabled.
i = TCcheckUserInterruptDataAvailable (h, hUsrInt, pDataAvail)
where h short: board handle as issued by the
registerBoardEx function.
hUsrInt short: user interrupt handle as issued by user
interrupt set-up function.
pDataAvail pointer to unsigned long: pointer to unsigned
long variable which will be set to the amount of
user interrupt data available.
Returns short: OK.
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
TCsetUserInterrupt
TCsetUserInterruptAIO
TCsetUserInterrupt2
TCsetBufferUserInterrupt
TCsetBufferUserInterruptAIO
TCsetBufferUserInterrupt2
TCsetNCBufferUserInterrupt
TCsetNCBufferUserInterruptAIO
TCsetNCBufferUserInterrupt2
enableInterrupts
See Also TCexpediteReadUserInterrupt
6.4.16.5 Enable a User Interrupt — TCenableUserInterrupt
Enables a previously set-up interrupt source at the second level. An interrupt source is active
when it is enabled at the first level (enableInterrupts) and at the second level and has been
set-up.
SUPPORTED IN VERSION 4.40 UPWARDS
In versions of the DLL from version 4.40 onwards, all valid interrupt sources are initially
enabled at the second level, so there
is no need to call this function unless the interrupt