WPILibC++
2020.3.2
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
25
class
DigitalSource
:
public
InterruptableSensorBase
{
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
A class that enforces constraints on the differential drive kinematics.
Definition:
SPIAccelerometerSim.h:16
frc::DigitalSource
DigitalSource Interface.
Definition:
DigitalSource.h:25
wpilibc
src
main
native
include
frc
DigitalSource.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16