001/*----------------------------------------------------------------------------*/
002/* Copyright (c) FIRST 2008-2017. All Rights Reserved.                        */
003/* Open Source Software - may be modified and shared by FRC teams. The code   */
004/* must be accompanied by the FIRST BSD license file in the root directory of */
005/* the project.                                                               */
006/*----------------------------------------------------------------------------*/
007
008package edu.wpi.first.wpilibj;
009
010/**
011 * DigitalSource Interface. The DigitalSource represents all the possible inputs for a counter or a
012 * quadrature encoder. The source may be either a digital input or an analog input. If the caller
013 * just provides a channel, then a digital input will be constructed and freed when finished for the
014 * source. The source can either be a digital input or analog trigger but not both.
015 */
016public abstract class DigitalSource extends InterruptableSensorBase {
017  public abstract boolean isAnalogTrigger();
018
019  public abstract int getChannel();
020}