blob: 8556ea5045c1cf39fedc559387963b2489863a6a [file] [log] [blame]
package com.ctre.phoenix;
public class CTREJNIWrapper {
static boolean libraryLoaded = false;
static {
if (!libraryLoaded) {
try {
System.loadLibrary("CTRE_PhoenixCCI");
} catch (UnsatisfiedLinkError e) {
e.printStackTrace();
System.exit(1);
}
libraryLoaded = true;
}
}
public static native int getPortWithModule(byte module, byte channel);
public static native int getPort(byte channel);
}