xPCI-1032 API
xPCI-1032 event logic functions

Functions

_INT_ i_PCI1032_InitEventLogic (HANDLE h_DeviceHandle, BYTE b_EventMode, PCHAR pc_EventMask)
 
_INT_ i_PCI1032_StartEventLogic (HANDLE h_DeviceHandle)
 
_INT_ i_PCI1032_StopEventLogic (HANDLE h_DeviceHandle)
 

Detailed Description

Function Documentation

◆ i_PCI1032_InitEventLogic()

_INT_ i_PCI1032_InitEventLogic ( HANDLE  h_DeviceHandle,
BYTE  b_EventMode,
PCHAR  pc_EventMask 
)

Permits to initialize the event logic of the board xPCI-1032
The event logic enables you to receive interrupt when a certain state is reached by the board.

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_EventModeEvent logic mode. Values are 0 for OR or 1 for AND.
[in]pc_EventMaskAn 16-characters string, to set the mask of the event.
Each character gives the state of one input channels and can have one of the following values :
  • "d" : The input is not used for event
  • "h" : The input reacts on high state
  • "l" : The input reacts on low state
  • "b" : The input reacts on both states
    From the left to the right, the first digit of the character string is input 15 and the last digit is input 0.
Return values
0: No error
-1: wrong device handle
-2: Invalid parameter b_EventMode. Must be 0: OR or 1: AND
-3: Parameter pc_EventMask is null
-4: The size of the string pointer by pc_EventMask is not 16
-5: One of the character of the mask is not valid
-6: No interrupt routine is installed
-7: Error while calling IOCTL function (wrong handle ?)

◆ i_PCI1032_StartEventLogic()

_INT_ i_PCI1032_StartEventLogic ( HANDLE  h_DeviceHandle)

Starts the event logic of the board xPCI-1032
You must call the function i_PCI1032_InitEventLogic before calling this function

Parameters
[in]h_DeviceHandleHandle of the board
Return values
0: No Error
-1: wrong device handle
-2: The interrupt routine is not installed
-3: Error while calling IOCTL function (wrong handle ?)

◆ i_PCI1032_StopEventLogic()

_INT_ i_PCI1032_StopEventLogic ( HANDLE  h_DeviceHandle)

Stops the event logic of the board xPCI-1032

Parameters
[in]h_DeviceHandleHandle of the board
Return values
0: No Error
-1: wrong device handle
-2: Error while calling IOCTL function (wrong handle ?)