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.hal;
006
007public class RelayJNI extends DIOJNI {
008  public static native int initializeRelayPort(int halPortHandle, boolean forward);
009
010  public static native void freeRelayPort(int relayPortHandle);
011
012  public static native boolean checkRelayChannel(int channel);
013
014  public static native void setRelay(int relayPortHandle, boolean on);
015
016  public static native boolean getRelay(int relayPortHandle);
017}