Package edu.wpi.first.hal
Class HALUtil
- java.lang.Object
-
- edu.wpi.first.hal.JNIWrapper
-
- edu.wpi.first.hal.HALUtil
-
public final class HALUtil extends JNIWrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.first.hal.JNIWrapper
JNIWrapper.Helper
-
-
Field Summary
Fields Modifier and Type Field Description static intANALOG_TRIGGER_PULSE_OUTPUT_ERRORstatic intINCOMPATIBLE_STATEstatic intLOOP_TIMING_ERRORstatic intNO_AVAILABLE_RESOURCESstatic intNULL_PARAMETERstatic intPARAMETER_OUT_OF_RANGEstatic intSAMPLE_RATE_TOO_HIGHstatic intVOLTAGE_OUT_OF_RANGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetFPGAButton()static intgetFPGARevision()static longgetFPGATime()static shortgetFPGAVersion()static intgetHALErrno()static StringgetHALErrorMessage(int code)static intgetHALRuntimeType()static StringgetHALstrerror()static StringgetHALstrerror(int errno)-
Methods inherited from class edu.wpi.first.hal.JNIWrapper
forceLoad
-
-
-
-
Field Detail
-
NULL_PARAMETER
public static final int NULL_PARAMETER
- See Also:
- Constant Field Values
-
SAMPLE_RATE_TOO_HIGH
public static final int SAMPLE_RATE_TOO_HIGH
- See Also:
- Constant Field Values
-
VOLTAGE_OUT_OF_RANGE
public static final int VOLTAGE_OUT_OF_RANGE
- See Also:
- Constant Field Values
-
LOOP_TIMING_ERROR
public static final int LOOP_TIMING_ERROR
- See Also:
- Constant Field Values
-
INCOMPATIBLE_STATE
public static final int INCOMPATIBLE_STATE
- See Also:
- Constant Field Values
-
ANALOG_TRIGGER_PULSE_OUTPUT_ERROR
public static final int ANALOG_TRIGGER_PULSE_OUTPUT_ERROR
- See Also:
- Constant Field Values
-
NO_AVAILABLE_RESOURCES
public static final int NO_AVAILABLE_RESOURCES
- See Also:
- Constant Field Values
-
PARAMETER_OUT_OF_RANGE
public static final int PARAMETER_OUT_OF_RANGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFPGAVersion
public static short getFPGAVersion()
-
getFPGARevision
public static int getFPGARevision()
-
getFPGATime
public static long getFPGATime()
-
getHALRuntimeType
public static int getHALRuntimeType()
-
getFPGAButton
public static boolean getFPGAButton()
-
getHALErrorMessage
public static String getHALErrorMessage(int code)
-
getHALErrno
public static int getHALErrno()
-
getHALstrerror
public static String getHALstrerror(int errno)
-
getHALstrerror
public static String getHALstrerror()
-
-