Brian Silverman | 890a32a | 2018-03-11 15:41:56 -0700 | [diff] [blame^] | 1 | package com.ctre.phoenix; |
2 | |||||
3 | public 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 | } |