Returns the status of the interrupt lines.
Gx6256InterruptGetStatus (nHandle, pwInterruptStatus, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6256/GX6864/GX6192 board. . |
pwInterruptStatus |
PWORD |
Bitfield for interrupt line status. See comments for details. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The parameter pwInterruptStatus is a bitfield where bits 0 through 3 contain the status information.
Bit 0 (LSB): Delay Status. Returns ‘1’ when delay has expired and all relays are open.
Bit 1: Interrupt 0 Status. Returns the state of interrupt 0 line.
Bit 2: Interrupt 1 Status. Returns the state of interrupt 1 line.
Bit 3: Interrupt 2 Status. Returns the state of interrupt 2 line.
The following retrieves the status of the interrupt.
SHORT nStatus;
WORD wInterruptStatus;
Gx6256InterruptGetStatus (nHandle, &wInterruptStatus, &nStatus);