Notifier Class Reference


Public Member Functions | |
| Notifier (TimerEventHandler handler, void *param=NULL) | |
| virtual | ~Notifier () |
| void | StartSingle (double delay) |
| void | StartPeriodic (double period) |
| void | Stop () |
Detailed Description
Definition at line 15 of file Notifier.h.
Constructor & Destructor Documentation
| Notifier::Notifier | ( | TimerEventHandler | handler, | |
| void * | param = NULL | |||
| ) |
Create a Notifier for timer event notification.
- Parameters:
-
handler The handler is called at the notification time which is set using StartSingle or StartPeriodic.
Definition at line 25 of file Notifier.cpp.
| Notifier::~Notifier | ( | ) | [virtual] |
Free the resources for a timer event. All resources will be freed and the timer event will be removed from the queue if necessary.
Definition at line 62 of file Notifier.cpp.
Member Function Documentation
| void Notifier::StartPeriodic | ( | double | period | ) |
Register for periodic event notification. A timer event is queued for periodic event notification. Each time the interrupt occurs, the event will be immedeatly requeued for the same time interval.
- Parameters:
-
period Period in seconds to call the handler starting one period after the call to this method.
Definition at line 254 of file Notifier.cpp.
| void Notifier::StartSingle | ( | double | delay | ) |
Register for single event notification. A timer event is queued for a single event after the specified delay.
- Parameters:
-
delay Seconds to wait before the handler is called.
Definition at line 239 of file Notifier.cpp.
| void Notifier::Stop | ( | ) |
Stop timer events from occuring. Stop any repeating timer events from occuring. This will also remove any single notification events from the queue. If a timer-based call to the registered handler is in progress, this function will block until the handler call is complete.
Definition at line 270 of file Notifier.cpp.
The documentation for this class was generated from the following files:
Generated on Thu Jan 12 2012 22:35:34 for WPILibC++ by
1.7.1