Instruction manual

AMPDIO DRIVERS
Page 97
manuals for a description of the interrupt
sources, and their functionality.
Returns short: OK
or ERRHANDLE
ERRSUPPORT
Prior Calls registerBoardEx
See Also getIntMask
TCenableInterruptChip
TCdisableInterruptChip
enableInterrupts
disableInterrupts
6.4.2.5 Check Which Interrupt Sources are Enabled getIntMask
Reports which interrupt sources are enabled at the second level. The return value is a bit
mask. Interrupt sources that are enabled are not necessarily active. An interrupt source is
active if it is enabled at the first and second levels and is set up.
SUPPORTED IN VERSION 4.40 ONWARDS
mask = getIntMask (h)
where h short: board handle as issued by the
registerBoardEx function.
Returns short: Mask bits. Bits 0 to 5 correspond to the six possible interrupt
sources. A bit set to ‘1’ indicates that the corresponding interrupt
source is enabled, but not necessarily active. 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 component
of 2
2
= 100
2
= 4). Refer to individual card manuals for a description
of the interrupt sources, and their functionality. The returned value
is the sum of the mask value components for each interupt source
enabled at the second level. The bit positions for the board’s
interrupt sources will vary from board to board.
Prior Calls registerBoardEx
See Also setIntMask
6.4.2.6 Read Interrupt Status Register getIntStat
Reads a card’s interrupt status register if it has one. This is not very useful.
i = getIntStat (h)
where h short: board handle as issued by the
registerBoardEx function.
Returns short: interrupt status word (>= 0)