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 SolenoidJNI extends JNIWrapper {
011  public static native int initializeSolenoidPort(int halPortHandle);
012
013  public static native boolean checkSolenoidModule(int module);
014
015  public static native boolean checkSolenoidChannel(int channel);
016
017  public static native void freeSolenoidPort(int portHandle);
018
019  public static native void setSolenoid(int portHandle, boolean on);
020
021  public static native boolean getSolenoid(int portHandle);
022
023  public static native byte getAllSolenoids(byte module);
024
025  public static native int getPCMSolenoidBlackList(byte module);
026
027  public static native boolean getPCMSolenoidVoltageStickyFault(byte module);
028
029  public static native boolean getPCMSolenoidVoltageFault(byte module);
030
031  public static native void clearAllPCMStickyFaults(byte module);
032}