8 set interrupt control – CyberResearch PCIDIO 48H User Manual

Page 48

Advertising
background image

C/C++ Libraries

• 39

5.8 Set Interrupt Control

@ Description

This function is used to set the interrupt configuration. The interrupt
should be configured before the function starts.

@ Syntax

C/C++ (DOS)

void _

DIO48H

_Set_INT_Control(U16 cardNo, U16

ctrlValue);

void _

DIO96H

_Set_INT_Control(U16 cardNo, U16

ctrlValue);

C/C++ (Windows 95)

void W_

DIO48H

_Set_INT_Control(U16 cardNo, U16

ctrlValue);

void W_

DIO96H

_Set_INT_Control(U16 cardNo, U16

ctrlValue);

Visual Basic (Windows 95)

W_

DIO48H

_Set_INT_Control (ByVal cardNo As Integer,

ByVal ctrlValue As Integer)

W_

DIO96H

_Set_INT_Control (ByVal cardNo As Integer,

ByVal ctrlValue As Integer)

@ Argument

cardNo:

card number to select board

ctrlValue:

the valid values of configuring the

interrupt

are

INT1:

0x00

à disable

0x01

à mode1

0x02

à mode2

0x03

à mode3

INT2:

0x00

à disable

0x04

à mode1

0x08

à mode2

0x0c

à mode3

Please refer to the section 4.3.4 for detailed description.

Advertising
This manual is related to the following products: