Technical description Chapter 9
APCI-/CPCI-1500
49
The following errors are possible
- overtemperature
- short-circuit
- no voltage is available
If several boards are operated and if they have to react to interrupts, the variable
b_BoardHandle
returns the identification number (handle) of the board which
has generated the interrupt.
The user interrupt routine must have the following syntax:
VOID
v_FunctionName
(BYTE
b_BoardHandle
,
BYTE
b_InterruptMask
,
BYTE
b_InputChannelNbr
)
v_FunctionName
Name of the user interrupt routine
b_BoardHandle
Handle of the
xPCI-1500
which has generated the
interrupt
b_InterruptMask
Mask of the events which have generated the interrupt.
b_InputChannelNbr
If an interrupt is generated with a Mask 0000 000
1
and if
you use the OR-PRIORITY logic, this variable gives the
input number, which have generated the interrupt.
Table 9-3: Interrupt mask
Mask
Meaning
0000 000
1
Event 1 has occurred
0000 00
1
0
Event 2 has occurred
0000 0
1
00
Counter/timer 1 has run down
0000
1
000
Counter/timer 2 has run down
000
1
0000
Counter 3 has run down
00
1
0 0000
Watchdog has run down
0
1
00 0000
Voltage error
1
000 0000
Short-circuit error
The user can give another name for
v_FunctionName
,
b_BoardHandle
,
b_InterruptMask, b_InputChannelNbr
.