Class SimDeviceDataJNI

java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.simulation.SimDeviceDataJNI

public class SimDeviceDataJNI extends JNIWrapper
JNI for sim device data.
  • Method Details

    • setSimDeviceEnabled

      public static void setSimDeviceEnabled(String prefix, boolean enabled)
    • isSimDeviceEnabled

      public static boolean isSimDeviceEnabled(String name)
    • registerSimDeviceCreatedCallback

      public static int registerSimDeviceCreatedCallback(String prefix, SimDeviceCallback callback, boolean initialNotify)
    • cancelSimDeviceCreatedCallback

      public static void cancelSimDeviceCreatedCallback(int uid)
    • registerSimDeviceFreedCallback

      public static int registerSimDeviceFreedCallback(String prefix, SimDeviceCallback callback, boolean initialNotify)
    • cancelSimDeviceFreedCallback

      public static void cancelSimDeviceFreedCallback(int uid)
    • getSimDeviceHandle

      public static int getSimDeviceHandle(String name)
    • getSimDeviceName

      public static String getSimDeviceName(int handle)
    • getSimValueDeviceHandle

      public static int getSimValueDeviceHandle(int handle)
    • enumerateSimDevices

      public static SimDeviceDataJNI.SimDeviceInfo[] enumerateSimDevices(String prefix)
    • registerSimValueCreatedCallback

      public static int registerSimValueCreatedCallback(int device, SimValueCallback callback, boolean initialNotify)
    • cancelSimValueCreatedCallback

      public static void cancelSimValueCreatedCallback(int uid)
    • registerSimValueChangedCallback

      public static int registerSimValueChangedCallback(int handle, SimValueCallback callback, boolean initialNotify)
    • cancelSimValueChangedCallback

      public static void cancelSimValueChangedCallback(int uid)
    • registerSimValueResetCallback

      public static int registerSimValueResetCallback(int handle, SimValueCallback callback, boolean initialNotify)
      Register a callback for SimDeviceJNI.resetSimValue(). The callback is called with the old value.
      Parameters:
      handle - simulated value handle
      callback - callback
      initialNotify - ignored (present for consistency)
      Returns:
      TODO
    • cancelSimValueResetCallback

      public static void cancelSimValueResetCallback(int uid)
    • getSimValueHandle

      public static int getSimValueHandle(int device, String name)
    • enumerateSimValues

      public static SimDeviceDataJNI.SimValueInfo[] enumerateSimValues(int device)
    • getSimValueEnumOptions

      public static String[] getSimValueEnumOptions(int handle)
    • getSimValueEnumDoubleValues

      public static double[] getSimValueEnumDoubleValues(int handle)
    • resetSimDeviceData

      public static void resetSimDeviceData()