APCI-/CPCI-1500 Technical
description Chapter 9
64
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;
i_ReturnValue = i_APCI1500_SetBoardIntRoutineWin32
(b_BoardHandle,
APCI1500_SYNCHRONOUS_MODE,
sizeof (str_UserStruct),
(void **) &ps_UserSharedMemory,
v_FunctionName);
Visual Basic 5:
Sub
v_FunctionName (ByVal i_BoardHandle
As Integer,
ByVal i _InterruptMask
As Integer,
ByVal i _InputChannelNbr As Integer,
ByVal b_UserCallingMode As Integer,
ByVal l_UserSharedMemory As Long)
End
Sub
Dim i_ReturnValue As Integer
Dim i_BoardHandle As Integer
i_ReturnValue = i_APCI1500_SetBoardIntRoutineWin32
(i_BoardHandle,
APCI1500_ASYNCHRONOUS_MODE,
0,
0,
AddressOf v_FunctionName)
Return value:
0: No error
-1: The handle parameter of the board is wrong
-2: Interrupt already installed
-3: Calling mode selection of the user interrupt routine is wrong
-4: No memory available for the user shared memory