blob: 8556ea5045c1cf39fedc559387963b2489863a6a [file] [log] [blame]
Brian Silverman890a32a2018-03-11 15:41:56 -07001package com.ctre.phoenix;
2
3public class CTREJNIWrapper {
4 static boolean libraryLoaded = false;
5
6 static {
7 if (!libraryLoaded) {
8 try {
9 System.loadLibrary("CTRE_PhoenixCCI");
10 } catch (UnsatisfiedLinkError e) {
11 e.printStackTrace();
12 System.exit(1);
13 }
14 libraryLoaded = true;
15 }
16 }
17
18 public static native int getPortWithModule(byte module, byte channel);
19
20 public static native int getPort(byte channel);
21}