xPCI-1500 API
|
Functions | |
_INT_ | i_PCI1500_SetBoardIntRoutine (HANDLE h_DeviceHandle, void(*v_FunctionName)(HANDLE h_DeviceHandle, BYTE b_FIFOOverflow, BYTE b_InterruptMask, WORD w_InputValues)) |
_INT_ | i_PCI1500_ResetBoardIntRoutine (HANDLE h_DeviceHandle) |
_INT_ i_PCI1500_SetBoardIntRoutine | ( | HANDLE | h_DeviceHandle, |
void(*)(HANDLE h_DeviceHandle, BYTE b_FIFOOverflow, BYTE b_InterruptMask, WORD w_InputValues) | v_FunctionName | ||
) |
Install an interrupt callback function. This function will be called each time the board generate an interruption.
The value of b_InterruptMask will enable you to determine the source of the interruption:
[in] | h_DeviceHandle | : Handle of the board |
[in] | v_FunctionName | : Address of the callback function h_DeviceHandle : Handle of the board b_FIFOOverflow : If uc_FIFOOverflow != 0, there are too many untreated interrupts in the kernel FIFO, and any new information is lost dw_InterruptMask : Source of the interrupt w_InputValues : Values of the input |
The source of the interrupt can be:
_INT_ i_PCI1500_ResetBoardIntRoutine | ( | HANDLE | h_DeviceHandle | ) |
Deinstall the interrupt callback function.
[in] | h_DeviceHandle | : Handle of the board |