Instruction manual

AMPDIO DRIVERS
Page 96
getIntMask
6.4.2.3 Check whether a Board's Interrupts are Enabled interruptsEnabledP
Reports whether the card's interrupts are enabled or not at the first level.
SUPPORTED IN VERSION 4.40 ONWARDS
Interrupts are initially disabled at the first level.
i = interruptsEnabledP (h)
where h short: board handle as issued by the
registerBoardEx function.
Returns short: FALSE (= 0) if interrupts are not enabled at the first level
TRUE (= 1) if interrupts are enabled at the first level
Prior Calls registerBoardEx
See Also enableInterrupts
disableInterrupts
6.4.2.4 Enable a Board's Interrupt Source(s) — setIntMask
Enables or disables interrupt sources. This provides a second level of enabling and disabling,
the first level being provided by enableInterrupts and disableInterrupts. Each supported card
has up to six interrupt sources. This function says which ones should be enabled and which
ones disabled. An interrupt source is active when it is enabled at the first level
(enableInterrupts) and at the second level and has been set-up (TCsetEventRecorder,
TCsetUserInterrupt, etc.).
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 the interrupt set-up functions.
In versions of the DLL from version 4.40 onwards, all valid interrupt sources are initially
enabled at the second level and are no longer automatically enabled by the interrupt set-up
functions. This allows an interrupt source to be set up without enabling it at the second level.
i = setIntMask (h, mask)
where h short: board handle as issued by the
registerBoardEx function.
mask short: mask bits. Bits 0 to 5 correspond to the
six possible interrupt sources. Set a bit to ‘1’ to
enable and to ‘0’ to disable an interrupt source.
For cards with an interrupt enable (IE) register,
these bits correspond with the matching bits in
the IE register. The interrupt source ‘chip’
parameter used in the interrupt set-up
functions corresponds to the interrupt mask bit
position multiplied by 4 (e.g. ‘chip’ = 8
corresponds to mask bit position of 2 and a
mask value of 2
2
= 100
2
= 4). The bit positions
for the board’s interrupt sources will vary from
board to board. Refer to individual card