Reset an interrupt after it has occurred and resume normal switching operations.
Gx6256InterruptReset (nHandle, wInterrupts, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6256/GX6864/GX6192 board. . |
wInterrupts |
WORD |
Specifies the interrupt(s):1. GX6256_INTERRUPT_02. GX6256_INTERRUPT_14. GX6256_INTERRUPT_2 |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
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.
The following example resets interrupts 0 and 2.
SHORT nStatus;
Gx6256InterruptReset (nHandle, GX6256_INTERRUPT_0 | GX6256_INTERRUPT_2, &nStatus);