public class HALUtil extends JNIWrapper
Modifier and Type | Field and 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 |
SAMPLE_RATE_TOO_HIGH |
static int |
VOLTAGE_OUT_OF_RANGE |
Constructor and Description |
---|
HALUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
checkStatus(java.nio.IntBuffer status) |
static void |
deleteMultiWait(java.nio.ByteBuffer sem) |
static void |
deleteMutex(java.nio.ByteBuffer sem) |
static boolean |
getFPGAButton(java.nio.IntBuffer status) |
static int |
getFPGARevision(java.nio.IntBuffer status) |
static long |
getFPGATime(java.nio.IntBuffer status) |
static short |
getFPGAVersion(java.nio.IntBuffer status) |
static int |
getHALErrno() |
static java.lang.String |
getHALErrorMessage(int code) |
static java.lang.String |
getHALstrerror() |
static java.lang.String |
getHALstrerror(int errno) |
static java.nio.ByteBuffer |
initializeMultiWait() |
static java.nio.ByteBuffer |
initializeMutexNormal() |
static byte |
takeMultiWait(java.nio.ByteBuffer sem,
java.nio.ByteBuffer m,
int timeOut) |
static byte |
takeMutex(java.nio.ByteBuffer sem) |
getPort, getPortWithModule
public static final int NULL_PARAMETER
public static final int SAMPLE_RATE_TOO_HIGH
public static final int VOLTAGE_OUT_OF_RANGE
public static final int LOOP_TIMING_ERROR
public static final int INCOMPATIBLE_STATE
public static final int ANALOG_TRIGGER_PULSE_OUTPUT_ERROR
public static final int NO_AVAILABLE_RESOURCES
public static final int PARAMETER_OUT_OF_RANGE
public HALUtil()
public static java.nio.ByteBuffer initializeMutexNormal()
public static void deleteMutex(java.nio.ByteBuffer sem)
public static byte takeMutex(java.nio.ByteBuffer sem)
public static java.nio.ByteBuffer initializeMultiWait()
public static void deleteMultiWait(java.nio.ByteBuffer sem)
public static byte takeMultiWait(java.nio.ByteBuffer sem, java.nio.ByteBuffer m, int timeOut)
public static short getFPGAVersion(java.nio.IntBuffer status)
public static int getFPGARevision(java.nio.IntBuffer status)
public static long getFPGATime(java.nio.IntBuffer status)
public static boolean getFPGAButton(java.nio.IntBuffer status)
public static java.lang.String getHALErrorMessage(int code)
public static int getHALErrno()
public static java.lang.String getHALstrerror(int errno)
public static java.lang.String getHALstrerror()
public static void checkStatus(java.nio.IntBuffer status)