WPILib  2014.0
WPIRoboticsLibraryforFRC
 All Classes Functions Variables Pages
DigitalSource.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef DIGITAL_SOURCE_H
8 #define DIGITAL_SOURCE_H
9 
10 #include "InterruptableSensorBase.h"
11 
20 {
21 public:
22  virtual ~DigitalSource();
23  virtual uint32_t GetChannelForRouting() = 0;
24  virtual uint32_t GetModuleForRouting() = 0;
25  virtual bool GetAnalogTriggerForRouting() = 0;
26  virtual void RequestInterrupts(tInterruptHandler handler, void *param) = 0;
27  virtual void RequestInterrupts() = 0;
28 };
29 
30 #endif
31 
Definition: DigitalSource.h:19
virtual ~DigitalSource()
Definition: DigitalSource.cpp:12
virtual void RequestInterrupts()=0
Synchronus Wait version.
Definition: InterruptableSensorBase.h:13