DisableInterrupt Procedure

Disables an interrupt.

Syntax

[ lStatus = ] DisableInterrupt ( enInterrupt )

The DisableInterrupt procedure syntax has the following parts:

 

Name

Type

Description

lStatus

Long

Return status. 0 upon success and < 0 if the enInterrupt was not disabled.

enInterrupt

enumAInterrupts

An integer specifying the INT_xxx interrupt constant. This can be set at design time and is read-only at run time.

Where

enumAInterrupts can be one of the following values:

 

Name

Value

Description

INT_TIMER1

10

TIMER1 Interrupt

INT_TIMER2

11

TIMER2 Interrupt

INT_COM1

12

COM1 Interrupt

INT_COM2

13

COM2 Interrupt

INT_COM3

14

COM3 Interrupt

INT_COM4

15

COM4 Interrupt

INT_COM5

16

COM5 Interrupt

INT_COM6

17

COM6 Interrupt

INT_COM7

18

COM7 Interrupt

INT_COM8

19

COM8 Interrupt

INT_COM9

20

COM9 Interrupt

INT_GPIB1

22

GPIB1 Interrupt

INT_GPIB2

23

GPIB2 Interrupt

INT_USER1

24

USER1 Interrupt

INT_USER2

25

USER2 Interrupt

INT_USER3

26

USER3 Interrupt

INT_USER4

27

USER4 Interrupt

INT_USER5

28

USER5 Interrupt

INT_USER6

29

USER6 Interrupt

INT_USER7

30

USER7 Interrupt

INT_USER8

31

USER8 Interrupt

Comments

After calling this function, the previously installed interrupt subroutine will no longer be called by ATEasy when the specified interrupt occurs.

Example

DisableInterrupt(INT_USER7)

See Also

EnableInterrupt