Standard software
PA 1500
The variable ul_UserSharedMemorySize indicates the size in byte of the
selected user type. A pointer of the variable
ppv_UserSharedMemory
is
given to the user interrupt routine with the variable
pv_UserSharedMemory
.
This is not possible for Visual Basic.
The user interrupt routine must have the following Syntax:
VOID v_FunctionName
(BYTE
b_BoardHandle,
BYTE
b_InterruptMask,
BYTE
b_InputChannelNbr,
BYTE b_UserCallingMode,
VOID * pv_UserSharedMemory)
v_FunctionName
Name of the user interrupt routine
b_BoardHandle
Handle of the
PA 1500
which has
generated the interrupt
b_InterruptMask Mask
of
the events which have
generated the interrupt.
b_InputChannelNbr
Is not used. But stays for compatibility
reasons.
b_UserCallingMode PA1500_SYNCHRONOUS_MODE:
The user routine is directly called by
driver interrupt routine.
PA1500_ASYNCHRONOUS_MODE:
The user routine is called by driver
interrupt thread
pv_UserSharedMemory
Pointer of the user shared memory.
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,
b_UserCallingMode,
pv_UserSharedMemory
.
54