WPILibC++
unspecified
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
CounterBase.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) FIRST 2008-2017. 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
namespace
frc {
11
20
class
CounterBase
{
21
public
:
22
enum
EncodingType { k1X, k2X, k4X };
23
24
virtual
~
CounterBase
() =
default
;
25
virtual
int
Get()
const
= 0;
26
virtual
void
Reset() = 0;
27
virtual
double
GetPeriod()
const
= 0;
28
virtual
void
SetMaxPeriod(
double
maxPeriod) = 0;
29
virtual
bool
GetStopped()
const
= 0;
30
virtual
bool
GetDirection()
const
= 0;
31
};
32
33
}
// namespace frc
frc::CounterBase
Interface for counting the number of ticks on a digital input channel.
Definition:
CounterBase.h:20
athena
include
CounterBase.h
Generated on Mon Jul 24 2017 02:38:53 for WPILibC++ by
1.8.6