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 org.wpilib.counter; 006 007/** Edge configuration. */ 008public enum EdgeConfiguration { 009 /** Rising edge configuration. */ 010 RISING_EDGE(true), 011 /** Falling edge configuration. */ 012 FALLING_EDGE(false); 013 014 /** True if triggering on rising edge. */ 015 public final boolean rising; 016 017 EdgeConfiguration(boolean rising) { 018 this.rising = rising; 019 } 020}