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(IntBuffer status) |
static void |
deleteMultiWait(ByteBuffer sem) |
static void |
deleteMutex(ByteBuffer sem) |
static boolean |
getFPGAButton(IntBuffer status) |
static int |
getFPGARevision(IntBuffer status) |
static long |
getFPGATime(IntBuffer status) |
static short |
getFPGAVersion(IntBuffer status) |
static int |
getHALErrno() |
static String |
getHALErrorMessage(int code) |
static String |
getHALstrerror() |
static String |
getHALstrerror(int errno) |
static ByteBuffer |
initializeMultiWait() |
static ByteBuffer |
initializeMutexNormal() |
static byte |
takeMultiWait(ByteBuffer sem,
ByteBuffer m,
int timeOut) |
static byte |
takeMutex(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 static ByteBuffer initializeMutexNormal()
public static void deleteMutex(ByteBuffer sem)
public static byte takeMutex(ByteBuffer sem)
public static ByteBuffer initializeMultiWait()
public static void deleteMultiWait(ByteBuffer sem)
public static byte takeMultiWait(ByteBuffer sem, ByteBuffer m, int timeOut)
public static short getFPGAVersion(IntBuffer status)
public static int getFPGARevision(IntBuffer status)
public static long getFPGATime(IntBuffer status)
public static boolean getFPGAButton(IntBuffer status)
public static String getHALErrorMessage(int code)
public static int getHALErrno()
public static String getHALstrerror(int errno)
public static String getHALstrerror()
public static void checkStatus(IntBuffer status)
Copyright © 2015. All rights reserved.