Now you can download a copy of these docs so you can use them offline! Download now
DigitalSource Class Reference

#include <DigitalSource.h>

Inheritance diagram for DigitalSource:
Collaboration diagram for DigitalSource:

Public Member Functions

virtual ~DigitalSource ()
virtual UINT32 GetChannelForRouting ()=0
virtual UINT32 GetModuleForRouting ()=0
virtual bool GetAnalogTriggerForRouting ()=0
virtual void RequestInterrupts (tInterruptHandler handler, void *param)=0
 Asynchronus handler version.
virtual void RequestInterrupts ()=0
 Synchronus Wait version.
- Public Member Functions inherited from InterruptableSensorBase
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.
- Public Member Functions inherited from SensorBase
 SensorBase ()
virtual ~SensorBase ()
- Public Member Functions inherited from ErrorBase
virtual ErrorGetError ()
 Retrieve the current error. Get the current error information associated with this sensor.
virtual const ErrorGetError () const
virtual void SetErrnoError (const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const
 Set error information associated with a C library call that set an error to the "errno" global variable.
virtual void SetImaqError (int success, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const
 Set the current error information associated from the nivision Imaq API.
virtual void SetError (Error::Code code, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const
 Set the current error information associated with this sensor.
virtual void SetWPIError (const char *errorMessage, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const
 Set the current error information associated with this sensor.
virtual void CloneError (ErrorBase *rhs) const
virtual void ClearError () const
 Clear the current error information associated with this sensor.
virtual bool StatusIsFatal () const
 Check if the current error code represents a fatal error.

Additional Inherited Members

- Static Public Member Functions inherited from SensorBase
static void DeleteSingletons ()
static UINT32 GetDefaultAnalogModule ()
static UINT32 GetDefaultDigitalModule ()
static UINT32 GetDefaultSolenoidModule ()
static bool CheckAnalogModule (UINT8 moduleNumber)
static bool CheckDigitalModule (UINT8 moduleNumber)
static bool CheckPWMModule (UINT8 moduleNumber)
static bool CheckRelayModule (UINT8 moduleNumber)
static bool CheckSolenoidModule (UINT8 moduleNumber)
static bool CheckDigitalChannel (UINT32 channel)
static bool CheckRelayChannel (UINT32 channel)
static bool CheckPWMChannel (UINT32 channel)
static bool CheckAnalogChannel (UINT32 channel)
static bool CheckSolenoidChannel (UINT32 channel)
- Static Public Attributes inherited from SensorBase
static const UINT32 kSystemClockTicksPerMicrosecond = 40
static const UINT32 kDigitalChannels = 14
static const UINT32 kAnalogChannels = 8
static const UINT32 kAnalogModules = 2
static const UINT32 kDigitalModules = 2
static const UINT32 kSolenoidChannels = 8
static const UINT32 kSolenoidModules = 2
static const UINT32 kPwmChannels = 10
static const UINT32 kRelayChannels = 8
static const UINT32 kChassisSlots = 8
- Protected Member Functions inherited from InterruptableSensorBase
void AllocateInterrupts (bool watcher)
- Protected Attributes inherited from InterruptableSensorBase
tInterrupt * m_interrupt
tInterruptManager * m_manager
UINT32 m_interruptIndex
- Static Protected Attributes inherited from ErrorBase
static SEM_ID _globalErrorMutex = semMCreate(SEM_Q_PRIORITY | SEM_DELETE_SAFE | SEM_INVERSION_SAFE)
static Error _globalError

Detailed Description

DigitalSource Interface. The DigitalSource represents all the possible inputs for a counter or a quadrature encoder. The source may be either a digital input or an analog input. If the caller just provides a channel, then a digital input will be constructed and freed when finished for the source. The source can either be a digital input or analog trigger but not both.

Definition at line 19 of file DigitalSource.h.

Constructor & Destructor Documentation

DigitalSource::~DigitalSource ( )
virtual

DigitalSource destructor.

Definition at line 12 of file DigitalSource.cpp.


The documentation for this class was generated from the following files:

Generated on Tue Feb 5 2013 00:55:10 for WPILibC++ by doxygen 1.8.1.2