DscRegisterRead

Universal Driver Documentation
Reads a BYTE from an internal register on a board. Refer to the board's user manual for the I/O map and register definitions. This function allows for direct access to the board for operations that cannot be implemented with existing driver function calls. This function is equivalent in effect to the common library function inp(). It uses the driver's internals to manage the complications that arise when attempting direct I/O to the hardware in some operating systems.

Function Definition

BYTE dscRegisterRead(DSCB board, WORD address, BYTE* data);

Function Parameters

NameDescription
boardThe handle of the board to operate on
addressI/O port on the board to read from. This is indicated as the offset from the board's base address, starting with 0. On a Diamond-MM-32-AT, whose base address is 768 (0x300), address ranges from 0 to 15, not 768 - 783 (0x300 - 0x30F).
dataThe 8-bit data from the specified register on the board

Return Value

Error code or 0.


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