WPILib 2012
WPILibRoboticsLibraryforFRC
|
Public Member Functions | |
virtual void | RequestInterrupts (tInterruptHandler handler, void *param)=0 |
Asynchronus handler version. | |
virtual void | RequestInterrupts ()=0 |
Synchronus Wait version. | |
virtual void | CancelInterrupts () |
Free up the underlying chipobject functions. | |
virtual void | WaitForInterrupt (float timeout) |
Synchronus version. | |
virtual void | EnableInterrupts () |
Enable interrupts - after finishing setup. | |
virtual void | DisableInterrupts () |
Disable, but don't deallocate. | |
virtual double | ReadInterruptTimestamp () |
Return the timestamp for the interrupt that occurred. | |
Protected Member Functions | |
void | AllocateInterrupts (bool watcher) |
Protected Attributes | |
tInterrupt * | m_interrupt |
tInterruptManager * | m_manager |
UINT32 | m_interruptIndex |
void InterruptableSensorBase::CancelInterrupts | ( | ) | [virtual] |
Free up the underlying chipobject functions.
Cancel interrupts on this device. This deallocates all the chipobject structures and disables any interrupts.
void InterruptableSensorBase::DisableInterrupts | ( | ) | [virtual] |
Disable, but don't deallocate.
Disable Interrupts without without deallocating structures.
void InterruptableSensorBase::EnableInterrupts | ( | ) | [virtual] |
Enable interrupts - after finishing setup.
Enable interrupts to occur on this input. Interrupts are disabled when the RequestInterrupt call is made. This gives time to do the setup of the other options before starting to field interrupts.
double InterruptableSensorBase::ReadInterruptTimestamp | ( | ) | [virtual] |
Return the timestamp for the interrupt that occurred.
Return the timestamp for the interrupt that occurred most recently. This is in the same time domain as GetClock().
void InterruptableSensorBase::WaitForInterrupt | ( | float | timeout | ) | [virtual] |
Synchronus version.
In synchronous mode, wait for the defined interrupt to occur.
timeout | Timeout in seconds |