Package edu.wpi.first.hal.simulation
Class SPIAccelerometerDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.SPIAccelerometerDataJNI
public class SPIAccelerometerDataJNI extends JNIWrapper
JNI for SPI accelerometer data.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description static void
cancelActiveCallback(int index, int uid)
static void
cancelRangeCallback(int index, int uid)
static void
cancelXCallback(int index, int uid)
static void
cancelYCallback(int index, int uid)
static void
cancelZCallback(int index, int uid)
static boolean
getActive(int index)
static int
getRange(int index)
static double
getX(int index)
static double
getY(int index)
static double
getZ(int index)
static int
registerActiveCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerRangeCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerXCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerYCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerZCallback(int index, NotifyCallback callback, boolean initialNotify)
static void
resetData(int index)
static void
setActive(int index, boolean active)
static void
setRange(int index, int range)
static void
setX(int index, double x)
static void
setY(int index, double y)
static void
setZ(int index, double z)
-
Method Details
-
registerActiveCallback
public static int registerActiveCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelActiveCallback
-
getActive
-
setActive
-
registerRangeCallback
-
cancelRangeCallback
-
getRange
-
setRange
-
registerXCallback
-
cancelXCallback
-
getX
-
setX
-
registerYCallback
-
cancelYCallback
-
getY
-
setY
-
registerZCallback
-
cancelZCallback
-
getZ
-
setZ
-
resetData
-