WPILibC++  2018.4.1-20180729123227-1139-ga11fcb6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
DigitalSource.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2008-2018 FIRST. 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 the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <hal/Types.h>
11 
12 #include "frc/InterruptableSensorBase.h"
13 
14 namespace frc {
15 
26  public:
27  virtual HAL_Handle GetPortHandleForRouting() const = 0;
28  virtual AnalogTriggerType GetAnalogTriggerTypeForRouting() const = 0;
29  virtual bool IsAnalogTrigger() const = 0;
30  virtual int GetChannel() const = 0;
31 };
32 
33 } // namespace frc
Definition: SPIAccelerometerSim.h:18
Definition: InterruptableSensorBase.h:18
DigitalSource Interface.
Definition: DigitalSource.h:25