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 int
ANALOG_TRIGGER_PULSE_OUTPUT_ERROR
static int
INCOMPATIBLE_STATE
static int
LOOP_TIMING_ERROR
static int
NO_AVAILABLE_RESOURCES
static int
NULL_PARAMETER
static int
PARAMETER_OUT_OF_RANGE
static int
RUNTIME_ROBORIO
static int
RUNTIME_ROBORIO2
static int
RUNTIME_SIMULATION
static int
SAMPLE_RATE_TOO_HIGH
static int
VOLTAGE_OUT_OF_RANGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getFPGAButton()
static int
getFPGARevision()
static long
getFPGATime()
static short
getFPGAVersion()
static int
getHALErrno()
static String
getHALErrorMessage(int code)
static int
getHALRuntimeType()
static String
getHALstrerror()
static String
getHALstrerror(int errno)
-
Methods inherited from class edu.wpi.first.hal.JNIWrapper
forceLoad, suppressUnused
-
-
-
-
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
-
RUNTIME_ROBORIO
public static final int RUNTIME_ROBORIO
- See Also:
- Constant Field Values
-
RUNTIME_ROBORIO2
public static final int RUNTIME_ROBORIO2
- See Also:
- Constant Field Values
-
RUNTIME_SIMULATION
public static final int RUNTIME_SIMULATION
- 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()
-
-