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.
Constructor and Description |
---|
NotifierJNI() |
Modifier and Type | Method and Description |
---|---|
static void |
cancelNotifierAlarm(int notifierHandle)
Cancels any pending wakeups set by updateNotifierAlarm().
|
static void |
cleanNotifier(int notifierHandle)
Deletes the notifier object when we are done with it.
|
static int |
initializeNotifier()
Initializes the notifier.
|
static void |
stopNotifier(int notifierHandle)
Wakes up the waiter with time=0.
|
static void |
updateNotifierAlarm(int notifierHandle,
long triggerTime)
Sets the notifier to wakeup the waiter in another triggerTime microseconds.
|
static long |
waitForNotifierAlarm(int notifierHandle)
Block until woken up by an alarm (or stop).
|
getPort, getPortWithModule
public NotifierJNI()
public static int initializeNotifier()
public static void stopNotifier(int notifierHandle)
public static void cleanNotifier(int notifierHandle)
public static void updateNotifierAlarm(int notifierHandle, long triggerTime)
public static void cancelNotifierAlarm(int notifierHandle)
public static long waitForNotifierAlarm(int notifierHandle)