Returns the status of the interrupt lines.
Gx6188InterruptGetStatus (nHandle, pwInterruptStatus, pwEnableStatus, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6188 board. |
pwInterruptStatus |
PWORD |
Bitfield for interrupt line status. See comments for details. |
pwEnableStatus |
PWORD |
Bitfield for interrupt enable 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 parameter pwInterruptStatus is a bitfield where bits 0 through 3 contain the status information.
Bit 0: Interrupt 0 Open Relays Enable Status. Returns ‘1’ if interrupt 0 line is enabled to open all relays.
Bit 1: Interrupt 1 Open Relays Enable Status. Returns ‘1’ if interrupt 1 line is enabled to open all relays.
Bit 2: Interrupt 2 Open Relays Enable Status. Returns ‘1’ if interrupt 2 line is enabled to open all relays.
Bit 3: Interrupt 0 PCI Enable Status. Returns ‘1’ if interrupt 0 line is enabled to generate a PCI interrupt.
Bit 4: Interrupt 1 PCI Enable Status. Returns ‘1’ if interrupt 1 line is enabled to generate a PCI interrupt.
Bit 5: Interrupt 2 PCI Enable Status. Returns ‘1’ if interrupt 2 line is enabled to generate a PCI interrupt.
The following retrieves the status of the interrupt.
SHORT nStatus;
WORD wInterruptStatus, wEnableStatus;
Gx6188InterruptGetStatus (nHandle, &wInterruptStatus, &wEnableStatus, &nStatus);