001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.wpilibj.counter;
006
007public enum EdgeConfiguration {
008  kNone(false, false),
009  kRisingEdge(true, false),
010  kFallingEdge(false, true),
011  kBoth(true, true);
012
013  @SuppressWarnings("MemberName")
014  public final boolean rising;
015
016  @SuppressWarnings("MemberName")
017  public final boolean falling;
018
019  EdgeConfiguration(boolean rising, boolean falling) {
020    this.rising = rising;
021    this.falling = falling;
022  }
023}