Adds TriState JNI entry point (#938)

Also adds missing sim TriState DIO HAL call, and a ToDo for later
This commit is contained in:
Thad House
2018-02-12 16:05:10 -08:00
committed by Peter Johnson
parent 77d6c11743
commit f5a292dadd
3 changed files with 36 additions and 0 deletions

View File

@@ -15,8 +15,11 @@ public class DIOJNI extends JNIWrapper {
public static native void freeDIOPort(int dioPortHandle);
// TODO(Thad): Switch this to use boolean
public static native void setDIO(int dioPortHandle, short value);
public static native void setDIODirection(int dioPortHandle, boolean input);
public static native boolean getDIO(int dioPortHandle);
public static native boolean getDIODirection(int dioPortHandle);