DscRegisterWrite

Universal Driver Documentation
Writes a BYTE to 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 outp(). 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 dscRegisterWrite(DSCB board, WORD address, BYTE data);

Function Parameters

NameDescription
boardThe handle of the board to operate on
addressI/O port address to write to. 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 to write to 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.