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
007/** Edge configuration. */
008public enum EdgeConfiguration {
009  /** Rising edge configuration. */
010  kRisingEdge(true),
011  /** Falling edge configuration. */
012  kFallingEdge(false);
013
014  /** True if triggering on rising edge. */
015  @SuppressWarnings("MemberName")
016  public final boolean rising;
017
018  EdgeConfiguration(boolean rising) {
019    this.rising = rising;
020  }
021}