WPILibC++  unspecified
DigitalSource.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2008-2017 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 "InterruptableSensorBase.h"
13 
14 namespace frc {
15 
27  public:
28  virtual ~DigitalSource() = default;
29  virtual HAL_Handle GetPortHandleForRouting() const = 0;
30  virtual AnalogTriggerType GetAnalogTriggerTypeForRouting() const = 0;
31  virtual bool IsAnalogTrigger() const = 0;
32  virtual int GetChannel() const = 0;
33 };
34 
35 } // namespace frc
Definition: Timer.cpp:18
Definition: InterruptableSensorBase.h:17
DigitalSource Interface.
Definition: DigitalSource.h:26