APCI-/CPCI-1500 Technical
description Chapter 9
74
9.3.5
Digital input channel - events
1) i_APCI1500_SetInputEventMask (...)
Syntax:
<Return value> = i_APCI1500_SetInputEventMask
(BYTE
b_BoardHandle,
BYTE b_PortNbr,
BYTE b_Logik,
PCHAR
pc_EventMask)
Parameters:
BYTE
b_BoardHandle
Handle of board
xPCI-1500
BYTE
b_Port
Number of the input port to be masked
(1 or 2)
BYTE b_Logik
Event
logic
Three possibilities for the first port:
APCI1500_AND: This logic connects the
input channels with an AND logic.
APCI1500_OR: This logic connects the
input channels with an OR logic.
APCI1500_OR_PRIORITY:
This logic connects the
input channels with a priority OR logic.
Input 1 has the highest priority
Input 8 has the lowest priority
One possibility for the second port:
APCI1500_OR: This logic connects the
input channels with a OR logic.
PCHAR pc_EventMask
This 8-digit character string (port 1) and
6-digit character string (port 2)
defines the mask of the event. Each digit
indicates the state of the input channel.
The state is identified by one of the
following characters:
"X": This input channel is not used for
event
"0": The input channel must be on "0"
"1": The input channel must be on "1"
"2": The input channel reacts to a falling
edge
"3": The input channel reacts to a rising
edge
"4": The input channel reacts to both edges
Port
1: from the left to the right, the first
digit of the character string is input 8 and
the last digit is input 1.
Port
2: from the left to the right, the
first digit of the character string is input 14
and the last digit is input 9.