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 dscDIOOutputBit(DSCB board, BYTE port, BYTE bit, BYTE bit_value);
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 |
bit_value | Value to write to the bit; 1 or 0 |
Error code or 0.
This page was last modified 11:50, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.