DscCounterDirectSet

Universal Driver Documentation
Sets the configuration for an individual counter on an 82C54 chip. This chip is used on all boards with counter/timers except Quartz-MM and Prometheus. This function provides direct access to the 82C54 configuration register, enabling functionality other than simple rate generator. For information on the possible configuration data, see the 82C54 datasheet included with each board's user manual.

Function Definition

BYTE dscCounterDirectSet(DSCB board, BYTE code, WORD data, BYTE ctr_number);

Function Parameters

NameDescription
boardThe handle of the board to operate on
codeThe configuration code to write to the 82C54 chip; see the 82C54 datasheet at the back of the board's user manual for configuration code information
dataThe initial count to write to the selected counter; range is 0-65535
ctr_numberThe individual counter to set; range is 0-2

Return Value

Error code or 0.


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