Package edu.wpi.first.hal
Class InterruptJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.InterruptJNI
public class InterruptJNI extends JNIWrapper
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static int
HalInvalidHandle
-
Constructor Summary
Constructors Constructor Description InterruptJNI()
-
Method Summary
Modifier and Type Method Description static void
cleanInterrupts(int interruptHandle)
static int
initializeInterrupts()
static long
readInterruptFallingTimestamp(int interruptHandle)
static long
readInterruptRisingTimestamp(int interruptHandle)
static void
releaseWaitingInterrupt(int interruptHandle)
static void
requestInterrupts(int interruptHandle, int digitalSourceHandle, int analogTriggerType)
static void
setInterruptUpSourceEdge(int interruptHandle, boolean risingEdge, boolean fallingEdge)
static int
waitForInterrupt(int interruptHandle, double timeout, boolean ignorePrevious)
-
Field Details
-
HalInvalidHandle
- See Also:
- Constant Field Values
-
-
Constructor Details
-
InterruptJNI
public InterruptJNI()
-
-
Method Details
-
initializeInterrupts
-
cleanInterrupts
-
waitForInterrupt
-
readInterruptRisingTimestamp
-
readInterruptFallingTimestamp
-
requestInterrupts
public static void requestInterrupts(int interruptHandle, int digitalSourceHandle, int analogTriggerType) -
setInterruptUpSourceEdge
public static void setInterruptUpSourceEdge(int interruptHandle, boolean risingEdge, boolean fallingEdge) -
releaseWaitingInterrupt
-