beautypg.com

3 set_chip – ADLINK ACL-8454/12 User Manual

Page 51

background image

High-Level Programming

43

5.3 Set_Chip

@ Description

This is a macro which is used to select or active one of the four 8254
chips. Refer the 8454.H for the definition of the Set_Chip macro. This
macro is used by other functions in this library, it may not necessary
be used by users.

@ Syntax

Microsoft C/C++ (DOS, Windows, Win95 & Win-NT)

Set_Chip( int ChipNo )

@ Arguments

int ChipNo : chip number, equal 1 to 4.

@ Return Value

No return value

5.4 W_8454_Write_Counter

@ Description

To write a command to a counter. The user can directly assign the
counter number 1~12, therefore it is not necessary to care about the
chips number and other details. The output and response of the
counter is dependent on the ‘Mode’ argument and the configuration
on hardware.

@ Syntax

Microsoft C/C++ (Windows, Win95 & Win-NT)

int W_8454_Write_Counter(int CntrNo,int Mode,unsigned int
CntrVal)

Visual Basic

Windows 3.11 Version:
W_8454_Write_Counter (ByVal CntrNo As Integer, ByVal
Mode As Integer, ByVal CntrVal As Integer) As Integer
Win-95 or Win-NT Version:
W_8454_Write_Counter (ByVal CntrNo As Long, ByVal Mode
As Long, ByVal CntrVal As Long) As Long

C/C++ (DOS)

int _8454_Write_Counter(int CntrNo,int Mode,unsigned int

CntrVal )