[wpilib] Add new counter implementations (#2447)

This commit is contained in:
Thad House
2021-11-23 20:33:36 -08:00
committed by GitHub
parent b156db400d
commit 3aa54fa027
15 changed files with 1052 additions and 0 deletions

View File

@@ -7,6 +7,11 @@ package edu.wpi.first.hal;
import java.nio.IntBuffer;
public class CounterJNI extends JNIWrapper {
public static final int TWO_PULSE = 0;
public static final int SEMI_PERIOD = 1;
public static final int PULSE_LENGTH = 2;
public static final int EXTERNAL_DIRECTION = 3;
public static native int initializeCounter(int mode, IntBuffer index);
public static native void freeCounter(int counterHandle);

View File

@@ -55,4 +55,6 @@ public class JNIWrapper {
loader.loadLibrary();
libraryLoaded = true;
}
public static void suppressUnused(Object object) {}
}