DscDIOInputBit

Universal Driver Documentation
Receives a bit value from a given digital input port at a specified bit location (0-7). If port exceeds the board's maximum number of digital ports, the function returns DE_INVALID_PARM. If the board contains only a single digital port, then this value is ignored.

Function Definition

BYTE dscDIOInputBit(DSCB board, BYTE port, BYTE bit, BYTE* digital_value);

Function Parameters

NameDescription
boardThe handle of the board to operate on
portSelected input port
bitBit location (0-7) to read on the selected input port
digital_valuePresent value of the bit read; 1 or 0

Return Value

Error code or 0.


This page was last modified 11:49, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.