CyberResearch PCIDIO 96H Computer Hardware User Manual


 
C/C++ Libraries
33
5.4 Digital Input
@ Description
This function is used to read 8-bit digital input data from digital input ports.
You can get the 8 -bit data from _DIO48H_DI by using this function. The written
data and read in data is 8 -bit data. Each data is mapped to a signal as the
table below.
D7 D6 D5 D4 D3 D2 D1 D0
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
@ Syntax
PCIDIO 24H/48H:
C/C++ (DOS)
U16 _DIO48H_DI (U16 cardNo, U16 channelPort, U8
*diData)
U16 _DIO96H_DI (U16 cardNo, U16 channelPort, U8
*diData)
C/C++ (Windows 95)
U16 W_DIO48H_DI (U16 cardNo, U16 channelPort, U16
*diData)
U16 W_DIO96H_DI (U16 cardNo, U16 channelPort, U16
*diData)
Visual Basic (Windows 95)
W_DIO48H_DI (ByVal cardNo As Integer, ByVal
channelPort As Integer, diData As Integer) As
Integer
W_DIO96H_DI (ByVal cardNo As Integer, ByVal
channelPort As Integer, diData As Integer) As
Integer
@ Argument
cardNo: card number to select board
diData: return 8-bit value from digital port.
channelPort: port of each channel