Gx6192/Gx6256/Gx6864InterruptReset

Purpose

Reset an interrupt after it has occurred and resume normal switching operations.

Syntax

Gx6256InterruptReset (nHandle, wInterrupts, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6256/GX6864/GX6192 board. .
wInterrupts
WORD
Specifies the interrupt(s):
1. GX6256_INTERRUPT_0
2. GX6256_INTERRUPT_1
4. GX6256_INTERRUPT_2
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function clears the specified interrupts and then resets the relay clear delay counter. You should call this function if an interrupt has triggered the board to automatically open all of its relays.

Example

The following example resets interrupts 0 and 2.

 

SHORT nStatus;

 

Gx6256InterruptReset (nHandle, GX6256_INTERRUPT_0 | GX6256_INTERRUPT_2, &nStatus);

 

See Also

Gx6256InterruptSetup, GxSWGetErrorString