8 set interrupt control – ADLINK cPCI-7249R User Manual

Page 47

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 _7248_Set_INT_Control(U16 cardNo, U16 ctrlValue);

void _7249_Set_INT_Control(U16 cardNo, U16 ctrlValue);

void _7296_Set_INT_Control(U16 cardNo, U16 ctrlValue);

C/C++ (Windows 95)

void W_7248_Set_INT_Control(U16 cardNo, U16 ctrlValue);

void W_7249_Set_INT_Control(U16 cardNo, U16 ctrlValue);

void W_7296_Set_INT_Control(U16 cardNo, U16 ctrlValue);

Visual Basic (Windows 95)

W_7248_Set_INT_Control (ByVal cardNo As Integer, ByVal

ctrlValue As Integer)

W_7249_Set_INT_Control (ByVal cardNo As Integer, ByVal

ctrlValue As Integer)

W_7296_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: