60 API Command Reference
Personal488 User's Manual For Windows95 and Windows NT
DigRead
AT488pnp and PCI488 only
Syntax
INT WINAPI DigRead(DevHandleT devHandle);
devHandle
refers to an interface handle.
Returns
-1
if no part of the port is configured for input, or other error
otherwise, integer between
0
and
255
if the entire digital I/O port is configured for input; or
integer between
0
and
15
if only one nibble (either low or high) is configured for input
Mode
Any
Bus States
None
Example
int i = DigRead(devHandle);
Returns the current value of the digital I/O
port per the current configuration.
See Also
DigSetup, DigWrite
The
DigRead
command reads the current value of the digital IO port per the input/output configuration
of the port. If the entire port is configured for input, a value between
0
and
255
is returned. If either
the upper or lower nibble is configured for input, and the other for output, a value between
0
and
15
is
returned.
Note:
This function does not configure the digital I/O port for input. The caller must use
DigSetup
to configure the port for input before performing any reads. If neither nibble is configured for
input the function returns
-1
and sets the error code to
IOT_BAD_VALUE2
.
Summary of Contents for OMB-PER-488/W95
Page 1: ......
Page 4: ...ii Personal488 User s Manual For Windows 95 and Windows NT Notes...
Page 38: ...32 Personal488 with GP488B Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 52: ...46 Driver488 W95 Driver488 WNT Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 136: ...130 Appendix Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 139: ...Personal488 User s Manual For Windows 95 and Windows NT Index 133 Notes...
Page 142: ...136 Abbreviations Personal488 User s Manual For Windows95 and Windows NT Notes...