![background image](http://html1.mh-extra.com/html/omega/omb-per-488-w95/omb-per-488-w95_user-manual_4058772068.webp)
62 API Command Reference
Personal488 User's Manual For Windows95 and Windows NT
DigWrite
AT488pnp and PCI488 only
Syntax
INT WINAPI DigWrite(DevHandleT devHandle, BYTE byDigData);
devHandle
refers to an interface handle.
byDigData
refers to a value to write to the digital output port, where the integer range is
between
0
and
255
if the entire digital I/O port is configured for output, or between
0
and
15
if only one nibble (either low or high) is configured for output.
Returns
-1
if no part of the digital I/O port is configured for output.
Mode
Any
Bus States
None
Example
DigRead(devHandle, 0x0A);
Writes the given value to the digital I/O port per
the current configuration.
See Also
DigSetup, DigRead
The
DigWrite
command writes the given value to the digital I/O port per the input/output
configuration of the port. If the entire port is configured for output, then the data value with a range
from
0
to
255
is written to the port. If either the upper or lower nibble is configured for input, and the
other for output, then the data value is truncated to the range from
0
to
15
and it is written to the
appropriate nibble per the current configuration.
Note:
This function does not configure the digital I/O port for output. The caller must use
DigSetup
to configure the port before performing any reads or writes. If neither nibble is
configured for output the function returns
-1
and sets the error code to
IOT_BAD_VALUE2
.
Note:
Outputs do not persist after an interface is closed. At that time, all digital I/O lines are
configured for input.
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...