Package edu.wpi.first.hal.simulation
Class AddressableLEDDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.AddressableLEDDataJNI
public class AddressableLEDDataJNI extends JNIWrapper
JNI for addressable LED data.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description static void
cancelDataCallback(int index, int uid)
static void
cancelInitializedCallback(int index, int uid)
static void
cancelLengthCallback(int index, int uid)
static void
cancelOutputPortCallback(int index, int uid)
static void
cancelRunningCallback(int index, int uid)
static int
findForChannel(int channel)
static byte[]
getData(int index)
static boolean
getInitialized(int index)
static int
getLength(int index)
static int
getOutputPort(int index)
static boolean
getRunning(int index)
static int
registerDataCallback(int index, ConstBufferCallback callback)
static int
registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerLengthCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerOutputPortCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerRunningCallback(int index, NotifyCallback callback, boolean initialNotify)
static void
resetData(int index)
static void
setData(int index, byte[] data)
static void
setInitialized(int index, boolean initialized)
static void
setLength(int index, int length)
static void
setOutputPort(int index, int outputPort)
static void
setRunning(int index, boolean running)
-
Method Details
-
registerInitializedCallback
public static int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelInitializedCallback
-
getInitialized
-
setInitialized
-
registerOutputPortCallback
public static int registerOutputPortCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelOutputPortCallback
-
getOutputPort
-
setOutputPort
-
registerLengthCallback
public static int registerLengthCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelLengthCallback
-
getLength
-
setLength
-
registerRunningCallback
public static int registerRunningCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelRunningCallback
-
getRunning
-
setRunning
-
registerDataCallback
-
cancelDataCallback
-
getData
-
setData
-
resetData
-
findForChannel
-