Instruction manual

AMPDIO DRIVERS
Page 101
TCsetBufferUserInterrupt
TCsetBufferUserInterruptAIO
TCsetBufferUserInterrupt2
See Also TCsetInterruptThreadPriority
6.4.3.4 Set Priority of User Interrupt Thread — TCsetInterruptThreadPriority
Sets the Win32 thread priority value used for the user interrupt callback thread. May be used
even if the user interrupt thread is not currently running (e.g. has not been enabled).
When the interrupt set-up function is called, the user interrupt thread priority is initialized to the
priority of the calling thread. This function may be used to change that value. If the user
interrupt callback thread is currently running, its priority will be changed immediately. If the
user interrupt has not been enabled yet, this priority value will be used when the user interrupt
callback thread is created when the user interrupt is enabled (usually by enableInterrupts).
The function may not be used with non-callback user interrupts, as no separate thread is
created to handle those. The function returns ERRSUPPORT if used with a non-callback user
interrupt or if the function failed to change the priority of a running user interrupt callback
thread.
SUPPORTED IN VERSION 4.23 ONWARDS.
i = TCsetInterruptThreadPriority (h, hUsrInt, Priority)
where h short: board handle as issued by the
registerBoardEx function.
hUsrInt short: user interrupt handle as issued by user
interrupt set-up function.
Priority int: standard Win32 thread priority value to
use. Values defined in the WIn32 SDK are as
follows:
THREAD_PRIORITY_IDLE = 15
THREAD_PRIORITY_LOWEST = –2
THREAD_PRIORITY_BELOW_NORMAL = –1
THREAD_PRIORITY_NORMAL = 0
THREAD_PRIORITY_ABOVE_NORMAL = 1
THREAD_PRIORITY_HIGHEST = 2
THREAD_PRIORITY_TIME_CRITICAL = 15
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRSUPPORT
Prior Calls registerBoardEx
TCsetUserInterrupt
TCsetUserInterruptAIO
TCsetUserInterrupt2
TCsetBufferUserInterrupt
TCsetBufferUserInterruptAIO
TCsetBufferUserInterrupt2