PA 1500
Standard software
i
IMPORTANT!
If you use Visual Basic 4 the following parameters have no meaning. You
must used the „i_PA1500_TestInterrupt“ function
BYTE b_UserCallingMode,
ULONG ul_UserSharedMemorySize,
VOID ** ppv_UserSharedMemory,
VOID v_F
unctionName
(BYTE
b_BoardHandle
,
BYTE
b_InterruptMask
,
BYTE
b_InputChannelNbr,
BYTE
b_UserCallingMode
,
VOID *
pv_UserSharedMemory
)
Calling convention:
ANSI C :
typedef struct
{
.
.
.
}str_UserStruct;
str_UserStruct * ps_UserSharedMemory;
void
v_FunctionName
(unsigned char b_BoardHandle,
unsigned char b_InterruptMask,
unsigned char b_InputChannelNbr,
unsigned char b_UserCallingMode,
void *
pv_UserSharedMemory)
{
str_UserStruct
*
ps_InterruptSharedMemory;
ps_InterruptSharedMemory = (str_UserStruct *)
pv_UserSharedMemory;
.
.
}
int
i_ReturnValue;
unsigned
char
b_BoardHandle;
unsigned
char
b_InterruptNbr;
i_ReturnValue = i_PA1500_SetBoardIntRoutineWin32
(b_BoardHandle,
b_InterruptNbr,
PA1500_SYNCHRONOUS_MODE,
sizeof
(str_UserStruct),
(void
**)
&ps_UserSharedMemory,
v_FunctionName);
55