requestInterrupts

public void requestInterrupts()

Request one of the 8 interrupts synchronously on this digital input. Request interrupts in
synchronous mode where the user program will have to explicitly wait for the interrupt to occur
using waitForInterrupt(double, boolean). The default is interrupt on rising edges only.

allocateInterrupts

protected void allocateInterrupts​(boolean watcher)

Allocate the interrupt.

Parameters:

watcher - true if the interrupt should be in synchronous mode where the user program will
have to explicitly wait for the interrupt to occur.

cancelInterrupts

public void cancelInterrupts()

Cancel interrupts on this device. This deallocates all the chipobject structures and disables
any interrupts.

enableInterrupts

Enable interrupts to occur on this input. Interrupts are disabled when the RequestInterrupt
call is made. This gives time to do the setup of the other options before starting to field
interrupts.

disableInterrupts

public void disableInterrupts()

Disable Interrupts without without deallocating structures.

readRisingTimestamp

public double readRisingTimestamp()

Return the timestamp for the rising interrupt that occurred most recently. This is in the same
time domain as getClock(). The rising-edge interrupt should be enabled with setUpSourceEdge(boolean, boolean).

Returns:

Timestamp in seconds since boot.

readFallingTimestamp

public double readFallingTimestamp()

Return the timestamp for the falling interrupt that occurred most recently. This is in the same
time domain as getClock(). The falling-edge interrupt should be enabled with setUpSourceEdge(boolean, boolean).