WPILib 2012
WPILibRoboticsLibraryforFRC
Public Member Functions | Protected Member Functions | Protected Attributes
InterruptableSensorBase Class Reference
Inheritance diagram for InterruptableSensorBase:
SensorBase ErrorBase DigitalSource AnalogTriggerOutput DigitalInput DigitalOutput

List of all members.

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

tInterruptm_interrupt
tInterruptManagerm_manager
UINT32 m_interruptIndex

Member Function Documentation

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().

Returns:
Timestamp in seconds since boot.
void InterruptableSensorBase::WaitForInterrupt ( float  timeout) [virtual]

Synchronus version.

In synchronous mode, wait for the defined interrupt to occur.

Parameters:
timeoutTimeout in seconds

The documentation for this class was generated from the following files:
 All Classes Functions Variables