001package edu.wpi.first.wpilibj.hal;
002//import com.ochafik.lang.jnaerator.runtime.LibraryExtractor;
003//import com.ochafik.lang.jnaerator.runtime.MangledFunctionMapper;
004//import com.ochafik.lang.jnaerator.runtime.globals.GlobalDouble;
005//import com.ochafik.lang.jnaerator.runtime.globals.GlobalInt;
006//import com.sun.jna.Callback;
007//import com.sun.jna.Library;
008//import com.sun.jna.Native;
009//import com.sun.jna.NativeLibrary;
010//import com.sun.jna.Pointer;
011//import com.sun.jna.PointerType;
012//import com.sun.jna.ptr.IntByReference;
013//import com.sun.jna.ptr.LongByReference;
014import java.nio.ByteBuffer;
015import java.nio.IntBuffer;
016/**
017 * JNA Wrapper for library <b>HAL</b><br>
018 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
019 * a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
020 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
021 */
022public class HALLibrary /* implements Library */ {
023        //public static final String JNA_LIBRARY_NAME = LibraryExtractor.getLibraryPath("HALAthenaJava", true, HALLibrary.class);
024        //public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(HALLibrary.JNA_LIBRARY_NAME, MangledFunctionMapper.DEFAULT_OPTIONS);
025        static {
026                System.loadLibrary("JNIWrappers");
027        //      Native.register(HALLibrary.class, HALLibrary.JNA_NATIVE_LIB);
028        }
029        /**
030         * <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:148</i><br>
031         * enum values
032         */
033        public static interface Mode {
034                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:144</i> */
035                public static final int kTwoPulse = 0;
036                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:145</i> */
037                public static final int kSemiperiod = 1;
038                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:146</i> */
039                public static final int kPulseLength = 2;
040                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:147</i> */
041                public static final int kExternalDirection = 3;
042        };
043        /**
044         * <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:235</i><br>
045         * enum values
046         */
047        public static interface tSPIConstants {
048                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:233</i> */
049                public static final int kReceiveFIFODepth = 512;
050                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:234</i> */
051                public static final int kTransmitFIFODepth = 512;
052        };
053        /**
054         * <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:241</i><br>
055         * enum values
056         */
057        public static interface tFrameMode {
058                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:237</i> */
059                public static final int kChipSelect = 0;
060                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:238</i> */
061                public static final int kPreLatchPulse = 1;
062                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:239</i> */
063                public static final int kPostLatchPulse = 2;
064                /** <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:240</i> */
065                public static final int kPreAndPostLatchPulse = 3;
066        };
067        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
068        public static final String NULL_PARAMETER_MESSAGE = "A pointer parameter to a method is NULL";
069        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
070        public static final String NO_AVAILABLE_RESOURCES_MESSAGE = "No available resources to allocate";
071        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
072        public static final String INCOMPATIBLE_STATE_MESSAGE = "Incompatible State: The operation cannot be completed";
073        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
074        public static final String ANALOG_TRIGGER_PULSE_OUTPUT_ERROR_MESSAGE = "Attempted to read AnalogTrigger pulse output.";
075        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
076        public static final int ANALOG_TRIGGER_LIMIT_ORDER_ERROR = -10;
077        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
078        public static final int SPI_READ_NO_DATA = 14;
079        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
080        public static final String VOLTAGE_OUT_OF_RANGE_MESSAGE = "Voltage to convert to raw value is out of range [-10; 10]";
081        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
082        public static final String ANALOG_TRIGGER_LIMIT_ORDER_ERROR_MESSAGE = "AnalogTrigger limits error.  Lower limit > Upper Limit";
083        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
084        public static final int SPI_WRITE_NO_MOSI = 12;
085        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
086        public static final String PARAMETER_OUT_OF_RANGE_MESSAGE = "A parameter is out of range.";
087        /** <i>native declaration : AthenaJava\target\native\include\HAL\Task.h</i> */
088        public static final int OK = 0;
089        /** <i>native declaration : AthenaJava\target\native\include\HAL\Task.h</i> */
090        public static final int ERROR = (-1);
091        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
092        public static final String SAMPLE_RATE_TOO_HIGH_MESSAGE = "Analog module sample rate is too high";
093        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
094        public static final String SPI_WRITE_NO_MOSI_MESSAGE = "Cannot write to SPI port with no MOSI output";
095        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
096        public static final int SPI_READ_NO_MISO = 13;
097        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
098        public static final String SPI_READ_NO_DATA_MESSAGE = "No data available to read from SPI";
099        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
100        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
101        public static final String SPI_READ_NO_MISO_MESSAGE = "Cannot read from SPI port with no MISO input";
102        /** <i>native declaration : AthenaJava\target\native\include\HAL\Errors.h</i> */
103        public static final String LOOP_TIMING_ERROR_MESSAGE = "Digital module loop timing is not the expected value";
104        /** <i>native declaration : AthenaJava\target\native\include\HAL\Notifier.h:339</i> */
105        //public interface initializeNotifier_ProcessQueue_callback extends Callback {
106        //      void apply(int uint32_t1, Pointer voidPtr1);
107        //};
108        /** <i>native declaration : AthenaJava\target\native\include\HAL\Interrupts.h:342</i> */
109        /** <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:409</i> */
110        //public interface FUNCPTR extends Callback {
111        //      int apply(Object... varargs);
112        //};
113        /**
114         * Original signature : <code>bool checkPWMChannel(void*)</code><br>
115         * <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:84</i>
116         */
117        //public static native byte checkPWMChannel(Pointer digital_port_pointer);
118        /**
119         * Original signature : <code>bool checkRelayChannel(void*)</code><br>
120         * <i>native declaration : AthenaJava\target\native\include\HAL\Digital.h:86</i>
121         */
122        //public static native byte checkRelayChannel(Pointer digital_port_pointer);
123        /**
124         * Original signature : <code>void* initializeNotifier(initializeNotifier_ProcessQueue_callback*, int32_t*)</code><br>
125         * <i>native declaration : AthenaJava\target\native\include\HAL\Notifier.h:334</i><br>
126         * @deprecated use the safer methods {@link #initializeNotifier(edu.wpi.first.wpilibj.hal.HALLibrary.initializeNotifier_ProcessQueue_callback, java.nio.IntBuffer)} and {@link #initializeNotifier(edu.wpi.first.wpilibj.hal.HALLibrary.initializeNotifier_ProcessQueue_callback, com.sun.jna.ptr.IntByReference)} instead
127         */
128        //@Deprecated
129        //public static native Pointer initializeNotifier(HALLibrary.initializeNotifier_ProcessQueue_callback ProcessQueue, IntByReference status);
130        /**
131         * Original signature : <code>void* initializeNotifier(initializeNotifier_ProcessQueue_callback*, int32_t*)</code><br>
132         * <i>native declaration : AthenaJava\target\native\include\HAL\Notifier.h:334</i>
133         */
134        //public static native Pointer initializeNotifier(HALLibrary.initializeNotifier_ProcessQueue_callback ProcessQueue, IntBuffer status);
135        /**
136         * Original signature : <code>void cleanNotifier(void*, int32_t*)</code><br>
137         * <i>native declaration : AthenaJava\target\native\include\HAL\Notifier.h:336</i><br>
138         * @deprecated use the safer methods {@link #cleanNotifier(com.sun.jna.Pointer, java.nio.IntBuffer)} and {@link #cleanNotifier(com.sun.jna.Pointer, com.sun.jna.ptr.IntByReference)} instead
139         */
140        //@Deprecated
141        //public static native void cleanNotifier(Pointer notifier_pointer, IntByReference status);
142        /**
143         * Original signature : <code>void cleanNotifier(void*, int32_t*)</code><br>
144         * <i>native declaration : AthenaJava\target\native\include\HAL\Notifier.h:336</i>
145         */
146        //public static native void cleanNotifier(Pointer notifier_pointer, IntBuffer status);
147        /**
148         * Original signature : <code>void updateNotifierAlarm(void*, uint32_t, int32_t*)</code><br>
149         * <i>native declaration : AthenaJava\target\native\include\HAL\Notifier.h:338</i><br>
150         * @deprecated use the safer methods {@link #updateNotifierAlarm(com.sun.jna.Pointer, int, java.nio.IntBuffer)} and {@link #updateNotifierAlarm(com.sun.jna.Pointer, int, com.sun.jna.ptr.IntByReference)} instead
151         */
152        //@Deprecated
153        //public static native void updateNotifierAlarm(Pointer notifier_pointer, int triggerTime, IntByReference status);
154        /**
155         * Original signature : <code>void updateNotifierAlarm(void*, uint32_t, int32_t*)</code><br>
156         * <i>native declaration : AthenaJava\target\native\include\HAL\Notifier.h:338</i>
157         */
158        //public static native void updateNotifierAlarm(Pointer notifier_pointer, int triggerTime, IntBuffer status);
159        /**
160         * Original signature : <code>void delayTicks(int32_t)</code><br>
161         * <i>native declaration : AthenaJava\target\native\include\HAL\Utilities.h:366</i>
162         */
163        public static native void delayTicks(int ticks);
164        /**
165         * Original signature : <code>void delayMillis(double)</code><br>
166         * <i>native declaration : AthenaJava\target\native\include\HAL\Utilities.h:368</i>
167         */
168        public static native void delayMillis(double ms);
169        /**
170         * Original signature : <code>void delaySeconds(double)</code><br>
171         * <i>native declaration : AthenaJava\target\native\include\HAL\Utilities.h:370</i>
172         */
173        public static native void delaySeconds(double s);
174        /**
175         * Original signature : <code>MUTEX_ID initializeMutex(uint32_t)</code><br>
176         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:385</i>
177         */
178        public static native ByteBuffer initializeMutex(int flags);
179        /**
180         * Original signature : <code>void deleteMutex(MUTEX_ID)</code><br>
181         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:387</i><br>
182         * @deprecated use the safer methods {@link #deleteMutex(edu.wpi.first.wpilibj.hal.HALLibrary.MUTEX_ID)} and {@link #deleteMutex(com.sun.jna.Pointer)} instead
183         */
184        //@Deprecated
185        //public static native void deleteMutex(Pointer sem);
186        /**
187         * Original signature : <code>void deleteMutex(MUTEX_ID)</code><br>
188         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:387</i>
189         */
190        public static native void deleteMutex(ByteBuffer sem);
191        /**
192         * Original signature : <code>int8_t takeMutex(MUTEX_ID, int32_t)</code><br>
193         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:389</i><br>
194         * @deprecated use the safer methods {@link #takeMutex(edu.wpi.first.wpilibj.hal.HALLibrary.MUTEX_ID, int)} and {@link #takeMutex(com.sun.jna.Pointer, int)} instead
195         */
196        //@Deprecated
197        //public static native byte takeMutex(Pointer sem, int timeout);
198        /**
199         * Original signature : <code>int8_t takeMutex(MUTEX_ID, int32_t)</code><br>
200         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:389</i>
201         */
202        public static native byte takeMutex(ByteBuffer sem, int timeout);
203        /**
204         * Original signature : <code>int8_t giveMutex(MUTEX_ID)</code><br>
205         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:391</i><br>
206         * @deprecated use the safer methods {@link #giveMutex(edu.wpi.first.wpilibj.hal.HALLibrary.MUTEX_ID)} and {@link #giveMutex(com.sun.jna.Pointer)} instead
207         */
208        //@Deprecated
209        //public static native byte giveMutex(Pointer sem);
210        /**
211         * Original signature : <code>int8_t giveMutex(MUTEX_ID)</code><br>
212         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:391</i>
213         */
214        //public static native byte giveMutex(HALLibrary.MUTEX_ID sem);
215        /**
216         * Original signature : <code>SEMAPHORE_ID initializeSemaphore(uint32_t, uint32_t)</code><br>
217         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:393</i>
218         */
219        //public static native HALLibrary.SEMAPHORE_ID initializeSemaphore(int flags, int initial_value);
220        /**
221         * Original signature : <code>void deleteSemaphore(SEMAPHORE_ID)</code><br>
222         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:395</i><br>
223         * @deprecated use the safer methods {@link #deleteSemaphore(edu.wpi.first.wpilibj.hal.HALLibrary.SEMAPHORE_ID)} and {@link #deleteSemaphore(com.sun.jna.Pointer)} instead
224         */
225        //@Deprecated
226        //public static native void deleteSemaphore(Pointer sem);
227        /**
228         * Original signature : <code>void deleteSemaphore(SEMAPHORE_ID)</code><br>
229         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:395</i>
230         */
231        //public static native void deleteSemaphore(HALLibrary.SEMAPHORE_ID sem);
232        /**
233         * Original signature : <code>int8_t takeSemaphore(SEMAPHORE_ID, int32_t)</code><br>
234         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:397</i><br>
235         * @deprecated use the safer methods {@link #takeSemaphore(edu.wpi.first.wpilibj.hal.HALLibrary.SEMAPHORE_ID, int)} and {@link #takeSemaphore(com.sun.jna.Pointer, int)} instead
236         */
237        //@Deprecated
238        //public static native byte takeSemaphore(Pointer sem, int timeout);
239        /**
240         * Original signature : <code>int8_t takeSemaphore(SEMAPHORE_ID, int32_t)</code><br>
241         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:397</i>
242         */
243        //public static native byte takeSemaphore(HALLibrary.SEMAPHORE_ID sem, int timeout);
244        /**
245         * Original signature : <code>int8_t giveSemaphore(SEMAPHORE_ID)</code><br>
246         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:399</i><br>
247         * @deprecated use the safer methods {@link #giveSemaphore(edu.wpi.first.wpilibj.hal.HALLibrary.SEMAPHORE_ID)} and {@link #giveSemaphore(com.sun.jna.Pointer)} instead
248         */
249        //@Deprecated
250        //public static native byte giveSemaphore(Pointer sem);
251        /**
252         * Original signature : <code>int8_t giveSemaphore(SEMAPHORE_ID)</code><br>
253         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:399</i>
254         */
255        //public static native byte giveSemaphore(HALLibrary.SEMAPHORE_ID sem);
256        /**
257         * Original signature : <code>MULTIWAIT_ID initializeMultiWait()</code><br>
258         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:401</i>
259         */
260        //public static native HALLibrary.MULTIWAIT_ID initializeMultiWait();
261        /**
262         * Original signature : <code>void deleteMultiWait(MULTIWAIT_ID)</code><br>
263         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:403</i><br>
264         * @deprecated use the safer methods {@link #deleteMultiWait(edu.wpi.first.wpilibj.hal.HALLibrary.MULTIWAIT_ID)} and {@link #deleteMultiWait(com.sun.jna.Pointer)} instead
265         */
266        //@Deprecated
267        //public static native void deleteMultiWait(Pointer sem);
268        /**
269         * Original signature : <code>void deleteMultiWait(MULTIWAIT_ID)</code><br>
270         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:403</i>
271         */
272        //public static native void deleteMultiWait(HALLibrary.MULTIWAIT_ID sem);
273        /**
274         * Original signature : <code>int8_t takeMultiWait(MULTIWAIT_ID, int32_t)</code><br>
275         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:405</i><br>
276         * @deprecated use the safer methods {@link #takeMultiWait(edu.wpi.first.wpilibj.hal.HALLibrary.MULTIWAIT_ID, int)} and {@link #takeMultiWait(com.sun.jna.Pointer, int)} instead
277         */
278        //@Deprecated
279        //public static native byte takeMultiWait(Pointer sem, int timeout);
280        /**
281         * Original signature : <code>int8_t takeMultiWait(MULTIWAIT_ID, int32_t)</code><br>
282         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:405</i>
283         */
284        //public static native byte takeMultiWait(HALLibrary.MULTIWAIT_ID sem, int timeout);
285        /**
286         * Original signature : <code>int8_t giveMultiWait(MULTIWAIT_ID)</code><br>
287         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:407</i><br>
288         * @deprecated use the safer methods {@link #giveMultiWait(edu.wpi.first.wpilibj.hal.HALLibrary.MULTIWAIT_ID)} and {@link #giveMultiWait(com.sun.jna.Pointer)} instead
289         */
290        //@Deprecated
291        //public static native byte giveMultiWait(Pointer sem);
292        /**
293         * Original signature : <code>int8_t giveMultiWait(MULTIWAIT_ID)</code><br>
294         * <i>native declaration : AthenaJava\target\native\include\HAL\Semaphore.h:407</i>
295         */
296        //public static native byte giveMultiWait(HALLibrary.MULTIWAIT_ID sem);
297        /**
298         * Original signature : <code>TASK spawnTask(char*, int, int, int, FUNCPTR, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)</code><br>
299         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:420</i><br>
300         * @deprecated use the safer methods {@link #spawnTask(java.nio.ByteBuffer, int, int, int, edu.wpi.first.wpilibj.hal.HALLibrary.FUNCPTR, int, int, int, int, int, int, int, int, int, int)} and {@link #spawnTask(com.sun.jna.Pointer, int, int, int, edu.wpi.first.wpilibj.hal.HALLibrary.FUNCPTR, int, int, int, int, int, int, int, int, int, int)} instead
301         */
302        //@Deprecated
303        //public static native HALLibrary.TASK spawnTask(Pointer name, int priority, int options, int stackSize, HALLibrary.FUNCPTR entryPt, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9);
304        /**
305         * Original signature : <code>TASK spawnTask(char*, int, int, int, FUNCPTR, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)</code><br>
306         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:420</i>
307         */
308        //public static native HALLibrary.TASK spawnTask(ByteBuffer name, int priority, int options, int stackSize, HALLibrary.FUNCPTR entryPt, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9);
309        /**
310         * Original signature : <code>STATUS restartTask(TASK)</code><br>
311         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:422</i><br>
312         * @deprecated use the safer methods {@link #restartTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} and {@link #restartTask(com.sun.jna.Pointer)} instead
313         */
314        //@Deprecated
315        //public static native int restartTask(Pointer task);
316        /**
317         * Original signature : <code>STATUS restartTask(TASK)</code><br>
318         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:422</i>
319         */
320        //public static native int restartTask(HALLibrary.TASK task);
321        /**
322         * Original signature : <code>STATUS deleteTask(TASK)</code><br>
323         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:424</i><br>
324         * @deprecated use the safer methods {@link #deleteTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} and {@link #deleteTask(com.sun.jna.Pointer)} instead
325         */
326        //@Deprecated
327        //public static native int deleteTask(Pointer task);
328        /**
329         * Original signature : <code>STATUS deleteTask(TASK)</code><br>
330         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:424</i>
331         */
332        //public static native int deleteTask(HALLibrary.TASK task);
333        /**
334         * Original signature : <code>STATUS isTaskReady(TASK)</code><br>
335         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:426</i><br>
336         * @deprecated use the safer methods {@link #isTaskReady(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} and {@link #isTaskReady(com.sun.jna.Pointer)} instead
337         */
338        //@Deprecated
339        //public static native int isTaskReady(Pointer task);
340        /**
341         * Original signature : <code>STATUS isTaskReady(TASK)</code><br>
342         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:426</i>
343         */
344        //public static native int isTaskReady(HALLibrary.TASK task);
345        /**
346         * Original signature : <code>STATUS isTaskSuspended(TASK)</code><br>
347         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:428</i><br>
348         * @deprecated use the safer methods {@link #isTaskSuspended(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} and {@link #isTaskSuspended(com.sun.jna.Pointer)} instead
349         */
350        //@Deprecated
351        //public static native int isTaskSuspended(Pointer task);
352        /**
353         * Original signature : <code>STATUS isTaskSuspended(TASK)</code><br>
354         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:428</i>
355         */
356        //public static native int isTaskSuspended(HALLibrary.TASK task);
357        /**
358         * Original signature : <code>STATUS suspendTask(TASK)</code><br>
359         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:430</i><br>
360         * @deprecated use the safer methods {@link #suspendTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} and {@link #suspendTask(com.sun.jna.Pointer)} instead
361         */
362        //@Deprecated
363        //public static native int suspendTask(Pointer task);
364        /**
365         * Original signature : <code>STATUS suspendTask(TASK)</code><br>
366         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:430</i>
367         */
368        //public static native int suspendTask(HALLibrary.TASK task);
369        /**
370         * Original signature : <code>STATUS resumeTask(TASK)</code><br>
371         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:432</i><br>
372         * @deprecated use the safer methods {@link #resumeTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} and {@link #resumeTask(com.sun.jna.Pointer)} instead
373         */
374        //@Deprecated
375        //public static native int resumeTask(Pointer task);
376        /**
377         * Original signature : <code>STATUS resumeTask(TASK)</code><br>
378         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:432</i>
379         */
380        //public static native int resumeTask(HALLibrary.TASK task);
381        /**
382         * Original signature : <code>STATUS verifyTaskID(TASK)</code><br>
383         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:434</i><br>
384         * @deprecated use the safer methods {@link #verifyTaskID(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} and {@link #verifyTaskID(com.sun.jna.Pointer)} instead
385         */
386        //@Deprecated
387        //public static native int verifyTaskID(Pointer task);
388        /**
389         * Original signature : <code>STATUS verifyTaskID(TASK)</code><br>
390         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:434</i>
391         */
392        //public static native int verifyTaskID(HALLibrary.TASK task);
393        /**
394         * Original signature : <code>STATUS setTaskPriority(TASK, int)</code><br>
395         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:436</i><br>
396         * @deprecated use the safer methods {@link #setTaskPriority(edu.wpi.first.wpilibj.hal.HALLibrary.TASK, int)} and {@link #setTaskPriority(com.sun.jna.Pointer, int)} instead
397         */
398        //@Deprecated
399        //public static native int setTaskPriority(Pointer task, int priority);
400        /**
401         * Original signature : <code>STATUS setTaskPriority(TASK, int)</code><br>
402         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:436</i>
403         */
404        //public static native int setTaskPriority(HALLibrary.TASK task, int priority);
405        /**
406         * Original signature : <code>STATUS getTaskPriority(TASK, int*)</code><br>
407         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:438</i><br>
408         * @deprecated use the safer methods {@link #getTaskPriority(edu.wpi.first.wpilibj.hal.HALLibrary.TASK, java.nio.IntBuffer)} and {@link #getTaskPriority(com.sun.jna.Pointer, com.sun.jna.ptr.IntByReference)} instead
409         */
410        //@Deprecated
411        //public static native int getTaskPriority(Pointer task, IntByReference priority);
412        /**
413         * Original signature : <code>STATUS getTaskPriority(TASK, int*)</code><br>
414         * <i>native declaration : AthenaJava\target\native\include\HAL\Task.h:438</i>
415         */
416        //public static native int getTaskPriority(HALLibrary.TASK task, IntBuffer priority);
417        /**
418         * Original signature : <code>void* getPort(uint8_t)</code><br>
419         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:446</i>
420         */
421        //public static native Pointer getPort(byte pin);
422        /**
423         * Original signature : <code>uint16_t getFPGAVersion(int32_t*)</code><br>
424         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:452</i><br>
425         * @deprecated use the safer methods {@link #getFPGAVersion(java.nio.IntBuffer)} and {@link #getFPGAVersion(com.sun.jna.ptr.IntByReference)} instead
426         */
427        //@Deprecated
428        //public static native short getFPGAVersion(IntByReference status);
429        /**
430         * Original signature : <code>uint16_t getFPGAVersion(int32_t*)</code><br>
431         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:452</i>
432         */
433        //public static native short getFPGAVersion(IntBuffer status);
434        /**
435         * Original signature : <code>uint32_t getFPGARevision(int32_t*)</code><br>
436         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:454</i><br>
437         * @deprecated use the safer methods {@link #getFPGARevision(java.nio.IntBuffer)} and {@link #getFPGARevision(com.sun.jna.ptr.IntByReference)} instead
438         */
439        //@Deprecated
440        //public static native int getFPGARevision(IntByReference status);
441        /**
442         * Original signature : <code>uint32_t getFPGARevision(int32_t*)</code><br>
443         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:454</i>
444         */
445        //public static native int getFPGARevision(IntBuffer status);
446        /**
447         * Original signature : <code>uint32_t getFPGATime(int32_t*)</code><br>
448         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:456</i><br>
449         * @deprecated use the safer methods {@link #getFPGATime(java.nio.IntBuffer)} and {@link #getFPGATime(com.sun.jna.ptr.IntByReference)} instead
450         */
451        //@Deprecated
452        //public static native int getFPGATime(IntByReference status);
453        /**
454         * Original signature : <code>uint32_t getFPGATime(int32_t*)</code><br>
455         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:456</i>
456         */
457        //public static native int getFPGATime(IntBuffer status);
458        /**
459         * Original signature : <code>double testDouble(double)</code><br>
460         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:462</i>
461         */
462        public static native double testDouble(double param);
463        /**
464         * Original signature : <code>int32_t testInt32(int32_t)</code><br>
465         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:464</i>
466         */
467        public static native int testInt32(int param);
468        /**
469         * Original signature : <code>void NumericArrayResize()</code><br>
470         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:470</i>
471         */
472        public static native void NumericArrayResize();
473        /**
474         * Original signature : <code>void RTSetCleanupProc()</code><br>
475         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:472</i>
476         */
477        public static native void RTSetCleanupProc();
478        /**
479         * Original signature : <code>void EDVR_CreateReference()</code><br>
480         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:474</i>
481         */
482        public static native void EDVR_CreateReference();
483        /**
484         * Original signature : <code>void Occur()</code><br>
485         * <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:476</i>
486         */
487        public static native void Occur();
488        /*
489        public static final GlobalDouble kDefaultWatchdogExpiration = new GlobalDouble(HALLibrary.JNA_NATIVE_LIB, "kDefaultWatchdogExpiration");
490        public static final GlobalInt HAL_NO_WAIT = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_NO_WAIT");
491        public static final GlobalInt HAL_WAIT_FOREVER = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_WAIT_FOREVER");
492        public static final GlobalInt SEMAPHORE_Q_FIFO = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_Q_FIFO");
493        */
494        /*
495        public static final GlobalInt SEMAPHORE_DELETE_SAFE = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_DELETE_SAFE");
496        public static final GlobalInt SEMAPHORE_INVERSION_SAFE = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_INVERSION_SAFE");
497        public static final GlobalInt SEMAPHORE_NO_WAIT = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_NO_WAIT");
498        */
499        /*
500        public static final GlobalInt SEMAPHORE_EMPTY = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_EMPTY");
501        public static final GlobalInt SEMAPHORE_FULL = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_FULL");
502        public static final GlobalInt VXWORKS_FP_TASK = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "VXWORKS_FP_TASK");
503        public static final GlobalInt HAL_objLib_OBJ_ID_ERROR = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_objLib_OBJ_ID_ERROR");
504        public static final GlobalInt HAL_objLib_OBJ_DELETED = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_objLib_OBJ_DELETED");
505        public static final GlobalInt HAL_taskLib_ILLEGAL_OPTIONS = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_taskLib_ILLEGAL_OPTIONS");
506        public static final GlobalInt HAL_memLib_NOT_ENOUGH_MEMORY = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_memLib_NOT_ENOUGH_MEMORY");
507        public static final GlobalInt HAL_taskLib_ILLEGAL_PRIORITY = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_taskLib_ILLEGAL_PRIORITY");
508        public static final GlobalInt dio_kNumSystems = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "dio_kNumSystems");
509        public static final GlobalInt solenoid_kNumDO7_0Elements = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "solenoid_kNumDO7_0Elements");
510        public static final GlobalInt interrupt_kNumSystems = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "interrupt_kNumSystems");
511        public static final GlobalInt kSystemClockTicksPerMicrosecond = new GlobalInt(HALLibrary.JNA_NATIVE_LIB, "kSystemClockTicksPerMicrosecond");
512        */
513        /*
514        public static class TASK extends PointerType {
515                public TASK(Pointer address) {
516                        super(address);
517                }
518                public TASK() {
519                        super();
520                }
521        };
522        public static class MUTEX_ID extends PointerType {
523                public MUTEX_ID(Pointer address) {
524                        super(address);
525                }
526                public MUTEX_ID() {
527                        super();
528                }
529        };
530        public static class MULTIWAIT_ID extends PointerType {
531                public MULTIWAIT_ID(Pointer address) {
532                        super(address);
533                }
534                public MULTIWAIT_ID() {
535                        super();
536                }
537        };
538        public static class SEMAPHORE_ID extends PointerType {
539                public SEMAPHORE_ID(Pointer address) {
540                        super(address);
541                }
542                public SEMAPHORE_ID() {
543                        super();
544                }
545        };
546        */
547}