Some boards (Diamond-MM, Diamond-MM-AT, Diamond-MM-16-AT, Opal-MM, Pearl-MM, Quartz-MM) do not have readback capability on the digital output ports. Therefore the driver maintains its own history of the last-written values to these ports, so that it can correctly modify only the bit of interest. In order for this function to work correctly, the driver must always know the present state of the digital output bits. This can only happen if you always use the driver for digital output operations. If you mix driver calls with direct I/O to the digital output ports, the bit operations can fail, since the driver will have no record of what your program has done directly.
BYTE dscDIOClearBit(DSCB board, BYTE port, BYTE bit);
Name | Description |
---|---|
board | The handle of the board to operate on |
port | Selected output port |
bit | Bit location (0-7) to write on the selected input port |
Error code or 0.
This page was last modified 12:44, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.