xPCI-3200 API
|
Functions | |
_INT_ | i_PCI3200_SetBoardIntRoutine (HANDLE h_DeviceHandle, void(*v_FunctionName)(HANDLEh_DeviceHandle, BYTEb_FIFOOverflow, DWORDdw_InterruptSource, DWORDdw_InterruptMask, DOUBLE *pd_Args, DWORDdw_ArgsCount)) |
_INT_ | i_PCI3200_ResetBoardIntRoutine (HANDLE h_DeviceHandle) |
_INT_ i_PCI3200_SetBoardIntRoutine | ( | HANDLE | h_DeviceHandle, |
void(*)(HANDLEh_DeviceHandle, BYTEb_FIFOOverflow, DWORDdw_InterruptSource, DWORDdw_InterruptMask, DOUBLE *pd_Args, DWORDdw_ArgsCount) | v_FunctionName | ||
) |
Install an interrupt callback function. This function will be called each time the board generate an interrupt.
[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. Contains the module which generated the interrupt (0,1,2 or 3) dw_InterruptMask : Ground of the interrupt (0x1 means the scan conversion is available) pd_Args : Values read during the interrupt. If the dw_InterruptMask is 0x1, the array contains the measured temperature (in Celcius) dw_ArgsCount : Number of values read during the interrupt |
0 | : No Error |
-1 | : The device handle parameter is wrong |
-2 | : An interrupt routine was still installed. Remove it with i_PCI3200_ResetBoardIntRoutine and retry |
-3 | : Error while creating kill event |
-4 | : Error while creating interrupt event |
-5 | : Error while creating interrupt thread |
-6 | : Error while changing the priority class of the thread |
-7 | : Error while changing the priority of the thread |
-8 | : Error while calling the IOCTL command |
-9 | : Error in the interrupt callback function |
_INT_ i_PCI3200_ResetBoardIntRoutine | ( | HANDLE | h_DeviceHandle | ) |
Deinstall the interrupt callback function.
[in] | h_DeviceHandle | : Handle of the board |
0 | : No Error |
-1 | : The device handle parameter is wrong |
-2 | : No interrupt routine installed |
-3 | : Error in the reset interrupt callback function |