APCI-/CPCI-1500 Technical
description Chapter 9
66
5) i_APCI1500_TestInterrupt (..)
Syntax:
<Return value> = i_APCI1500_TestInterrupt (PBYTE pb_BoardHandle,
PBYTE pb_InterruptMask,
PBYTE
pb_ChannelNbr)
Parameters:
- Input:
No input signal is to occur.
- Output:
PBYTE pb_BoardHandle
Handle of the board
PCI-1500
which has
generated the interrupt,
PBYTE pb_InterruptMask
Error mask of the event which has
generated the interrupt. Several errors
can occur simultaneously.
PBYTE pb_ChannelNbr
If an interrupt occurs with the mask
0000
000
1
and if you use the OR
PRIORITY logic this variable returns the
input number which has generated the
event.
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
Task:
Checks if a board
xPCI-1500
has generated an interrupt. If yes, the function
returns the board handle and the interrupt source.
IMPORTANT!
This function is only in Visual Basic Dos and Windows available.
Calling convention:
ANSI
C
:
unsigned
char b_BoardHandle;
unsigned
char b_InterruptMask;
unsigned
char b_ChannelNbr;
int
i_Irq;
Irq = i_APCI1500_TestInterrupt
(&b_BoardHandle,
&
b_InterruptMask,
&
b_ChannelNbr);