PA 1500
Standard software
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
PBYTE pb_ChannelNbr
Is not used. But stays for compatibility
reasons.
Task:
Checks if a board
PA 1500
has generated an interrupt. If yes, the function
returns the board handle and the interrupt source.
i
IMPORTANT!
This function is only available in Visual Basic Dos and Windows.
Calling convention:
ANSI C :
unsigned char b_BoardHandle;
unsigned char b_InterruptMaske;
unsigned char b_ChannelNbr;
int
i_Irq;
Irq = i_PA1500_TestInterrupt (&b_BoardHandle,
&
b_InterruptMaske,
&
b_ChannelNbr);
Return value:
-1: No interrupt
> 0: IRQ number
57