001package edu.wpi.first.wpilibj.hal; 002import java.nio.IntBuffer; 003import java.nio.ByteBuffer; 004 005public class SolenoidJNI extends JNIWrapper { 006 public static native ByteBuffer initializeSolenoidPort(ByteBuffer portPointer, IntBuffer status); 007 public static native ByteBuffer getPortWithModule(byte module, byte channel); 008 public static native void setSolenoid(ByteBuffer port, byte on, IntBuffer status); 009 public static native byte getSolenoid(ByteBuffer port, IntBuffer status); 010 011 public static native byte getPCMSolenoidBlackList(ByteBuffer pcm_pointer, IntBuffer status); 012 public static native boolean getPCMSolenoidVoltageStickyFault(ByteBuffer pcm_pointer, IntBuffer status); 013 public static native boolean getPCMSolenoidVoltageFault(ByteBuffer pcm_pointer, IntBuffer status); 014 public static native void clearAllPCMStickyFaults(ByteBuffer pcm_pointer, IntBuffer status); 015}