001package edu.wpi.first.wpilibj.hal; 002 003import java.nio.IntBuffer; 004import java.nio.ByteBuffer; 005 006public class DIOJNI extends JNIWrapper { 007 public static native ByteBuffer initializeDigitalPort(ByteBuffer port_pointer, IntBuffer status); 008 public static native byte allocateDIO(ByteBuffer digital_port_pointer, byte input, IntBuffer status); 009 public static native void freeDIO(ByteBuffer digital_port_pointer, IntBuffer status); 010 public static native void setDIO(ByteBuffer digital_port_pointer, short value, IntBuffer status); 011 public static native byte getDIO(ByteBuffer digital_port_pointer, IntBuffer status); 012 public static native byte getDIODirection(ByteBuffer digital_port_pointer, IntBuffer status); 013 public static native void pulse(ByteBuffer digital_port_pointer, double pulseLength, IntBuffer status); 014 public static native byte isPulsing(ByteBuffer digital_port_pointer, IntBuffer status); 015 public static native byte isAnyPulsing(IntBuffer status); 016 public static native short getLoopTiming(IntBuffer status); 017}