xPCI-3001 API
|
Functions | |
_INT_ | i_PCI3001_InitCompiler (BYTE_ b_CompilerDefine) |
_INT_ | i_PCI3001_CheckAndGetPCISlotNumber (PBYTE_ pb_SlotNumberArray) |
_INT_ | i_PCI3001_SetBoardInformation (BYTE_ b_SlotNumber, BYTE_ b_AnalogInputChannelNbr, PBYTE_ pb_BoardHandle) |
_INT_ | i_PCI3001_GetHardwareInformation (BYTE_ b_Boardhandle, PUINT_ pui_BaseAddress, PBYTE_ pb_InterruptNbr, PBYTE_ pb_SlotNumber) |
_INT_ | i_PCI3001_SetBoardIntRoutineWin32 (BYTE_ b_BoardHandle, BYTE_ b_UserCallingMode, ULONG_ ul_GlobalBufferSize, VOID **ppv_UserGlobalBuffer, void(far pascal *v_FunctionName)(BYTE_b_BoardHandle, BYTE_b_InterruptMask, PUINT_ pui_AnalogInputValue, BYTE_b_UserCallingMode, VOID *pv_UserSharedMemory)) |
_INT_ | i_PCI3001_ResetBoardIntRoutine (BYTE_ b_BoardHandle) |
_INT_ | i_PCI3001_CloseBoardHandle (BYTE_ b_BoardHandle) |
_INT_ i_PCI3001_InitCompiler | ( | BYTE_ | b_CompilerDefine | ) |
This function is only available in a windows environment
[in] | b_CompilerDefine | : Program Language selection. |
_INT_ i_PCI3001_CheckAndGetPCISlotNumber | ( | PBYTE_ | pb_SlotNumberArray | ) |
Check all PCI-3001 and return the slot number of each PCI-3001 board.
Each pb_SlotNumberArray member contain the slot
number (1 to 8) from 1 PCI-3001 Board.
[in] | pb_SlotNumberArray | : Slot number list. |
_INT_ i_PCI3001_SetBoardInformation | ( | BYTE_ | b_SlotNumber, |
BYTE_ | b_AnalogInputChannelNbr, | ||
PBYTE_ | pb_BoardHandle | ||
) |
Open board with slot number.
[in] | b_SlotNumber | : Index of the board to open |
[in] | b_AnalogInputChannelNbr | : Not used must be 0 |
[out] | pb_BoardHandle | : Handle of the selected xPCI-3001 board for using the functions |
_INT_ i_PCI3001_GetHardwareInformation | ( | BYTE_ | b_Boardhandle, |
PUINT_ | pui_BaseAddress, | ||
PBYTE_ | pb_InterruptNbr, | ||
PBYTE_ | pb_SlotNumber | ||
) |
Get device information of the board.
[in] | b_Boardhandle | : Index of the board |
[out] | pui_BaseAddress | : Base address of the board |
[out] | pb_InterruptNbr | : Interrupt line of the board |
[out] | pb_SlotNumber | : Slot number. |
_INT_ i_PCI3001_SetBoardIntRoutineWin32 | ( | BYTE_ | b_BoardHandle, |
BYTE_ | b_UserCallingMode, | ||
ULONG_ | ul_GlobalBufferSize, | ||
VOID ** | ppv_UserGlobalBuffer, | ||
void(far pascal *v_FunctionName)(BYTE_b_BoardHandle, BYTE_b_InterruptMask, PUINT_ pui_AnalogInputValue, BYTE_b_UserCallingMode, VOID *pv_UserSharedMemory) | |||
) |
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] | b_BoardHandle | : Handle of the board |
[in] | b_UserCallingMode | : Interrupt calling mode. |
[in] | ul_GlobalBufferSize | : User shared memory size. |
[in] | ppv_UserGlobalBuffer | User shared memory. |
[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 pui_AnalogInputValue : Values of the selected inputs (index 0 is the number of acquisitions) pv_UserSharedMemory : Not used |
The source of the interrupt can be:
_INT_ i_PCI3001_ResetBoardIntRoutine | ( | BYTE_ | b_BoardHandle | ) |
Deinstall the interrupt callback function.
[in] | b_BoardHandle | : Handle of the board |
_INT_ i_PCI3001_CloseBoardHandle | ( | BYTE_ | b_BoardHandle | ) |
Release the handle of the board. Block the access to the board.
[in] | b_BoardHandle | : Handle of the board |