WPILib 2012
WPILibRoboticsLibraryforFRC
DigitalSource.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef DIGITAL_SOURCE_H
00008 #define DIGITAL_SOURCE_H
00009 
00010 #include "InterruptableSensorBase.h"
00011 
00019 class DigitalSource: public InterruptableSensorBase
00020 {
00021 public:
00022         virtual ~DigitalSource();
00023         virtual UINT32 GetChannelForRouting() = 0;
00024         virtual UINT32 GetModuleForRouting() = 0;
00025         virtual bool GetAnalogTriggerForRouting() = 0;
00026         virtual void RequestInterrupts(tInterruptHandler handler, void *param) = 0;
00027         virtual void RequestInterrupts() = 0;
00028 };
00029 
00030 #endif
00031 
 All Classes Functions Variables