xPCI-3009 API
PCI-3009 incremental counter compare functions

Functions

_INT_ i_PCI3009_InitCompareLogic (DWORD_ dw_BoardHandle, DWORD_ dw_CompareValue)
 
_INT_ i_PCI3009_EnableCompareLogic (DWORD_ dw_BoardHandle)
 
_INT_ i_PCI3009_DisableCompareLogic (DWORD_ dw_BoardHandle)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_InitCompareLogic ( DWORD_  dw_BoardHandle,
DWORD_  dw_CompareValue 
)

Set the 32-Bit compare value. At that moment that the incremental counter arrive to the compare value
(dw_CompareValue) a interrupt is generated.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]dw_CompareValue: 32-Bit compare value
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a counter module
-3: Counter not initialised see function "i_PCI3009_InitCounter"
_INT_ i_PCI3009_EnableCompareLogic ( DWORD_  dw_BoardHandle)

Enable the 32-Bit compare logic. At that moment that the incremental counter arrive to the compare value a
interrupt is generated.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a counter module
-3: Counter not initialised see function "i_PCI3009_InitCounter"
-4: Compare logic not initialised.See function "i_PCI3009_InitCompareLogic"
-5: Interrupt function not initialised.See function "i_PCI3009_SetBoardIntRoutineX"
_INT_ i_PCI3009_DisableCompareLogic ( DWORD_  dw_BoardHandle)

Disable the 32-Bit compare logic.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a counter module
-3: Counter not initialised see function "i_PCI3009_InitCounter"
-4: Compare logic not initialised. See function "i_PCI3009_InitCompareLogic"