beautypg.com

ADLINK HSL-DI16DO16-M-NN User Manual

Page 101

background image

88

HSL Function Library

@ Syntax

C/C++ (DOS, Windows 98/NT/2000/XP)

I16 HSL_set_timer (I16 card_ID, I16 c1, I16 c2);
I16 HSL_enable_timer_interrupt (I16 card_ID,

HANDLE *phEvent);

I16 HSL_disable_timer_interrupt (I16 card_ID);
I16 HSL_set_int_timer(I16 card_ID, U16 p1);
I16 HSL_set_int_timer_enable(I16 card_ID, I16

enable);

I16 HSL_wait_timer_interrupt(I16 card_ID, I32

time_out_ms);

Visual Basic (Windows 98/NT/2000/XP)

HSL_set_timer (ByVal card_ID As Integer, ByVal c1

As Integer, ByVal c2 As Integer) As Integer

HSL_enable_timer_interrupt (ByVal card_ID As

Integer, phEvent As Long) As Integer

HSL_disable_timer_interrupt (ByVal card_ID As

Integer) As Integer

HSL_set_int_timer(ByVal card_ID As Integer, ByVal

p1 As Integer)As Integer

HSL_set_int_timer_enable(ByVal card_ID As

Integer, ByVal enable As Integer) As Integer

HSL_wait_timer_interrupt(ByVal card_ID As

Integer, ByVal time_out_ms As Integer)As
Integer

@ Argument

card_ID: Specifies the HSL master card index. Typically, the

board index sequence is assigned by the system. The index starts
from 0.

*phEvent: Returns the handle of the timer interrupt event. The

interrupt event indicates an interrupt which is generated from the
master card’s timer.

c1: Frequency divider of Timer 1.

c2: Frequency divider of Timer 2.

p1: Parameter of timer