public class NotifierJNI extends JNIWrapper
This class is not meant for direct use by teams. Instead, the edu.wpi.first.wpilibj.Notifier class, which corresponds to the C++ Notifier class, should be used.
Modifier and Type | Class and Description |
---|---|
static interface |
NotifierJNI.NotifierJNIHandlerFunction
Callback function.
|
Constructor and Description |
---|
NotifierJNI() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanNotifier(int notifierHandle)
Deletes the notifier object when we are done with it.
|
static int |
initializeNotifier(NotifierJNI.NotifierJNIHandlerFunction func)
Initializes the notifier.
|
static void |
stopNotifierAlarm(int notifierHandle)
Tells the notifier to stop calling the callback.
|
static void |
updateNotifierAlarm(int notifierHandle,
long triggerTime)
Sets the notifier to call the callback in another triggerTime microseconds.
|
getPort, getPortWithModule
public NotifierJNI()
public static int initializeNotifier(NotifierJNI.NotifierJNIHandlerFunction func)
public static void cleanNotifier(int notifierHandle)
public static void updateNotifierAlarm(int notifierHandle, long triggerTime)
public static void stopNotifierAlarm(int notifierHandle)