WPILibC++  2020.2.2-33-g65eab93
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  DigitalSource() = default;
28  DigitalSource(DigitalSource&&) = default;
29  DigitalSource& operator=(DigitalSource&&) = default;
30 
31  virtual HAL_Handle GetPortHandleForRouting() const = 0;
32  virtual AnalogTriggerType GetAnalogTriggerTypeForRouting() const = 0;
33  virtual bool IsAnalogTrigger() const = 0;
34  virtual int GetChannel() const = 0;
35 };
36 
37 } // namespace frc
frc::InterruptableSensorBase
Definition: InterruptableSensorBase.h:20
frc
WPILib FRC namespace.
Definition: AnalogOutSim.h:16
frc::DigitalSource
DigitalSource Interface.
Definition: DigitalSource.h:25