ADLINK PCI-7258 User Manual
Page 35
C/C++ Libraries
• 27
5.5 _7258_DI
@ Description
This function is used to read data from the digital input port. There are 2 bits
in the Isolated Digital Input Register for digital inputs purposes. You can read
the input data by using this function.
@ Syntax
U16 _7258_DI (U16 boardID, U16 *diData)
@ Argument
boardID : Board ID for the specific board.
diData :
return 16-bit value from digital input port. Only last 2 bit data are
valid.
@ Return Code
ERR_NoError, ERR_BoardNoInit
5.6 _7258_INT_Control
@ Description
This function is used to control the interrupt source of the PCI-7258. The
interrupt source can be the digital input of channel 0, 1 or both.
@ Syntax
U16 _7258_INT_Control (U16 boardID, U16 int1Flag, U16 int2Flag)
@ Argument
boardID:
Board ID for the specific board.
Int1Flag:
Digital input channel 0 interrupt control, “1” enable and “0”
disable.
Int2Flag:
Digital input channel 1 interrupt control, “1” enable and “0”
disable.
@ Return Code
ERR_NoError, ERR_BoardNoInit