![Omega OMB-PER-488/W95 Скачать руководство пользователя страница 67](http://html1.mh-extra.com/html/omega/omb-per-488-w95/omb-per-488-w95_user-manual_4058772067.webp)
Personal488 User's Manual For Windows 95 and Windows NT
API Command Reference 61
DigSetup
AT488pnp and PCI488 only
Syntax
INT WINAPI DigSetup(DevHandleT devHandle, BOOL bLowOut, BOOL
bHighOut);
devHandle
refers to an interface handle.
bLowOut
refers to the lower nibble setup.
TRUE
= output,
FALSE
= input.
bHighOut
refers to the upper nibble setup.
TRUE
= output,
FALSE
= input.
Returns
-1
if error
Mode
Any
Bus States
None
Examples
DigSetup(devHandle, TRUE , TRUE);
All 8 bits output.
DigSetup(devHandle, FALSE, TRUE);
Lower 4 bits input, upper 4 output.
DigSetup(devHandle, TRUE , FALSE);
Lower 4 bits output, upper 4 input.
DigSetup(devHandle, FALSE, FALSE);
All 8 bits input.
See Also
DigRead, DigWrite
The
DigSetup
command configures the digital I/O port for input and output on a per-nibble basis.
Each of the two nibbles can be set for input or output. All combinations are supported. Once
DigSetup
is called, the configuration of the digital I/O port does not change until the next call to
DigSetup
. The port may be read and written many times without affecting the port setup.
Note:
The digital I/O port must be configured every time the driver is opened. The configuration is
not stored between sessions.
Содержание OMB-PER-488/W95
Страница 1: ......
Страница 4: ...ii Personal488 User s Manual For Windows 95 and Windows NT Notes...
Страница 38: ...32 Personal488 with GP488B Personal488 User s Manual For Windows95 and Windows NT Notes...
Страница 52: ...46 Driver488 W95 Driver488 WNT Personal488 User s Manual For Windows95 and Windows NT Notes...
Страница 136: ...130 Appendix Personal488 User s Manual For Windows95 and Windows NT Notes...
Страница 139: ...Personal488 User s Manual For Windows 95 and Windows NT Index 133 Notes...
Страница 142: ...136 Abbreviations Personal488 User s Manual For Windows95 and Windows NT Notes...