io.silverspoon.bulldog.linux.jni.NativeSpi Maven / Gradle / Ivy
package io.silverspoon.bulldog.linux.jni;
import java.nio.ByteBuffer;
public class NativeSpi {
public static native int spiOpen(String filename, int mode, int speed, int bitsPerWord, boolean lsbFirst);
public static native int spiConfig(int fileDescriptor, int mode, int speed, int bitsPerWord, boolean lsbFirst);
public static native int spiClose(int fileDescriptor);
public static native int spiTransfer(int fileDescriptor, ByteBuffer txBuffer, ByteBuffer rxBuffer, int transferLength, int delay, int speed, int bitsPerWord);
}