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_DeviceHandle | Handle of the board |
[in] | b_EventMode | Event logic mode. Values are 0 for OR or 1 for AND. |
[in] | pc_EventMask | An 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 ?) |