xPCIe-3021 API
|
Functions | |
_INT_ | i_PCIe3021_SetBoardIntRoutine (HANDLE h_DeviceHandle, void(*v_FunctionName)(HANDLE h_DeviceHandle, BYTE b_FIFOOverflow, DWORD dw_InterruptSource, DWORD dw_InterruptMask, PWORD pw_Args, DWORD dw_ArgsCount)) |
_INT_ | i_PCIe3021_ResetBoardIntRoutine (HANDLE h_DeviceHandle) |
_INT_ i_PCIe3021_SetBoardIntRoutine | ( | HANDLE | h_DeviceHandle, |
void(*)(HANDLE h_DeviceHandle, BYTE b_FIFOOverflow, DWORD dw_InterruptSource, DWORD dw_InterruptMask, PWORD pw_Args, DWORD dw_ArgsCount) | v_FunctionName | ||
) |
Install an interrupt callback function. This function will be called each time the board generate an interruption.
The value of dw_InterruptSource 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_InterruptSource : Source of the interrupt dw_InterruptMask : Source of the interrupt pw_Args : Values read during the interrupt. If DMA interrupt, this pointer will be set to NULL. dw_ArgsCount : Number of values read during the interrupt |
_INT_ i_PCIe3021_ResetBoardIntRoutine | ( | HANDLE | h_DeviceHandle | ) |
Deinstall the interrupt callback function.
[in] | h_DeviceHandle | : Handle of the board |