001/*----------------------------------------------------------------------------*/
002/* Copyright (c) FIRST 2016-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.hal;
009
010public class RelayJNI extends DIOJNI {
011  public static native int initializeRelayPort(int halPortHandle, boolean forward);
012
013  public static native void freeRelayPort(int relayPortHandle);
014
015  public static native boolean checkRelayChannel(int channel);
016
017  public static native void setRelay(int relayPortHandle, boolean on);
018
019  public static native boolean getRelay(int relayPortHandle);
020}