5.8Set 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.

C/C++ Libraries 39