InterruptMask Variable

The 32-bit mask of the current interrupts that are set or cleared.

Type

DWord Public

Comments

Each bit in the variable represents an interrupt number. If a bit is set to '1' and the interrupt number associated with this bit is Enabled, then ATEasy will call the interrupt procedure associated with the interrupt number.

Calling EnableInterrupt clears (0) the iNum bit in the InterruptMask variable.

You can invoke an interrupt by invoking the command

InterruptMask=InterruptMask or (1 shl INT_USER1)

or by calling the SetInterruptMask internal procedure. This will invoke the interrupt associated with INT_USER1 (if enabled).

You can pass this variable (by Var) to a DLL subroutine procedure. If a DLL wants to interrupt ATEasy it can set (1) the specified bit in the InterruptMask variable.

Use the INT_xxxx constants when accessing InterruptMask. Other values are reserved for future versions and should not be used.

Example

The following example clears the INT_USER2 interrupt:

SetInterruptMask(INT_USER2, False)

See Also

DisableInterrupt, EnableInterrupt, enumAInterrupts, Interrupt Procedures, SetInterruptMask